zola/components
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
..
config Fix crash of trans() function called on absent translation key (#793) 2019-09-03 10:51:41 +02:00
errors Use fixed version for syntect 2019-08-12 22:48:39 +02:00
front_matter Add --drafts flag + rustfmt 2019-08-24 22:23:08 +02:00
imageproc Add --drafts flag + rustfmt 2019-08-24 22:23:08 +02:00
library Add --drafts flag + rustfmt 2019-08-24 22:23:08 +02:00
link_checker rustfmt 2018-10-31 08:18:57 +01:00
rebuild Fix the issue when checking the changes for multiple language section index file (#787) 2019-08-30 15:44:57 +02:00
rendering Add --drafts flag + rustfmt 2019-08-24 22:23:08 +02:00
search Update deps & re-render on anchor-link.html changes 2019-08-08 00:37:38 +02:00
site Add --drafts flag + rustfmt 2019-08-24 22:23:08 +02:00
templates Fix crash of trans() function called on absent translation key (#793) 2019-09-03 10:51:41 +02:00
utils Fix clippy warnings (#744) 2019-07-12 22:54:18 +02:00