This small change expose attributes like locale_en, locale_fr, etc in the template attributes for each supported locale.
This allows to structure templates like this:
<html>
<body>
{{#locale_en}}... english content...{{/locale_en}}
{{#locale_fr}}... contenu en français...{{/locale_fr}}
</body>
</html>
It should be a viable solution for i18n when the amount of locales stays limited.
FTR this is my first foray in the codebase, I hope it fit the overall philosophy and guidelines of the project.
This small change expose attributes like
locale_en
,locale_fr
, etc in the template attributes for each supported locale. This allows to structure templates like this:It should be a viable solution for i18n when the amount of locales stays limited.
FTR this is my first foray in the codebase, I hope it fit the overall philosophy and guidelines of the project.