Replies: 1 comment
-
I hope this will do it: #485 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I read the documentation of Heist template syntax and emanote templates, and I realized that emanote seems to lack some mechanisms for checking and generating multilingual content.
emanote's default template cannot rigorously generate pages for specific languages, it does not have extra handling for language tags (BCP 47). We cannot generate pages or html blocks with correct tags, for example, the base theme uses a hard-coded value.
emanote/emanote/default/templates/base.tpl
Line 2 in 5807f69
We expect to get HTML like this in a localized website:
I think this might be possible by allowing explicit specification of
page.lang
to make the template get the correct value.Perhaps consider allowing a design like this.
This way we seem to get some extra benefits, such as using templates in different languages, like
<apply template="components/foo/bar.${value:lang}.tpl" />
.Beta Was this translation helpful? Give feedback.
All reactions