-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i18n with mustache [like: {{_i}}..{{/i}}]? #24
Comments
Lambdas are definitely the preferred method for this at this time. Various implementations offer tricks to help you with this, as well. In the Ruby version of Mustache, you can add methods to the Milk gives you the Internationalizing interpolated data can also be done, though it's not universally supported. http://bit.ly/pZgdAq |
I have two different kinds of lambdas in my implementation, ones that take template text and return template text and ones that take output text and return output text. It appears that the current spec module only supports the first case. |
Closing this as the question seems to have been answered. |
Hello.
What's the preferred strategy to i18nalize a mustache template?
Twitter's fork of Mustache.js uses {{_i}} {{/i}} sections to callout to gettext.
Will this be ported to main mustache spec? Or should One just provide a lambda and use it like {{#i}}Some text{{/i}} ?
The text was updated successfully, but these errors were encountered: