zola/components/templates/src/global_fns
zdenek-crha 5aadd3d4f2 Fix crash of trans() function called on absent translation key (#793)
Add method get_translation(lang, key) into Config struct that retrieves
translated term from parsed configuration or error when either
desired language or key is missing.

Use the new method in Trans struct implementing global Tera function
trans().

Add unit test to cover both happy and error path for translation
retrieval in both config and templates crate.
2019-09-03 10:51:41 +02:00
..
load_data.rs Set up CI with Azure Pipelines (#750) 2019-07-19 10:35:31 +02:00
macros.rs rustfmt 2018-10-31 08:18:57 +01:00
mod.rs Fix crash of trans() function called on absent translation key (#793) 2019-09-03 10:51:41 +02:00