x/text/message: documentation for i18n HTML template example? #39954
Labels
Documentation
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Hi,
I would like to see an example for translated
html/template
withx/text/message
.Here's my current attempt with two different calling styles (free to use):
Which calling style is recommended or is there third option?
Style 1 also doesn't evaluate
{{.User}}
totest user
(I don't know how).I would like to see style 1 to be used.
Also the parser for
html/template
is hidden asinternal
so you can't build nice automated translated token gatherer script for these kind of tasks to find allT
calling functions and dump those to a translation file. Are there plans to open it up?I would also like to see example for when you have to add some HTML to a translation such as:
and
%s
is for example<a href="/foo">{{.User}}</a>
.The text was updated successfully, but these errors were encountered: