5aadd3d4f2
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. |
||
---|---|---|
.. | ||
config | ||
errors | ||
front_matter | ||
imageproc | ||
library | ||
link_checker | ||
rebuild | ||
rendering | ||
search | ||
site | ||
templates | ||
utils |