zola/components/config
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
..
examples rustfmt 2018-10-31 08:18:57 +01:00
src Fix crash of trans() function called on absent translation key (#793) 2019-09-03 10:51:41 +02:00
Cargo.toml Use fixed version for syntect 2019-08-12 22:48:39 +02:00