Better way to handle HTML templates combined with translations #14631
bjarnef
started this conversation in
Features and ideas
Replies: 1 comment 1 reply
-
There's definitely pros and cons to both solutions. The current solution allows very different HTML to be used for the languages, but I also see the issue when you only wanna do pure translations. It would be cool with someway to override the mail bodies with razor templates. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we have some HTML snippets in language files, which may be okay for smaller HTML snippets.
However it is also used for larger HTML templates like in user invite flow:
Umbraco-CMS/src/Umbraco.Core/EmbeddedResources/Lang/en.xml
Line 2149 in b923c32
but then in Danish translation file it isn't consistent.
Umbraco-CMS/src/Umbraco.Core/EmbeddedResources/Lang/da.xml
Lines 1919 to 1920 in b923c32
Also if any changes are made to the HTML document (in this case an email template), it need to be adjusted in each language file.
Could we instead use static HTML templates and static embed resource or maybe razor template like in Vendr / Umbraco Commerce?
Then the translation files are responsible to translate the actual text parts either using dictionary items or replacing the template variables (as known from different newsletter systems).
Beta Was this translation helpful? Give feedback.
All reactions