zola/components/templates
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
..
src Fix crash of trans() function called on absent translation key (#793) 2019-09-03 10:51:41 +02:00
Cargo.toml Update deps & re-render on anchor-link.html changes 2019-08-08 00:37:38 +02:00