-
Notifications
You must be signed in to change notification settings - Fork 44
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 support #42
Comments
If you make a pull request, I'll merge it. |
I would like to propose a different mechanism for I18N support in KOstache: Use language-specific template files. As an example, take the following directory tree:
A user with British locale (en-GB) would get "templates/en/GB/foo.mustache". It is then up to the developers to decide which views could benefit from I18N and to provide the relevant translated templates. |
I think implementing i18n is best left to the developer in a way that makes sense to them. |
It would be great, if KOstache supported i18n (internationalization).
It's very easy to implement. Just add this function to the Kohana_Kostache class:
Then it will be possible to use i18n in templates:
The text was updated successfully, but these errors were encountered: