-
Notifications
You must be signed in to change notification settings - Fork 76
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 #9
Comments
It looks like you can pass a locale definition in toString(). Search for "January" in the source code to see an example of the JSON object format for a locale. You could save some CPU by extending that existing array/map that only has one element for the default '' key, then you should be able to just pass the key to the toString(), rather than the whole JSON mess. (The docs hint at that... I haven't tried it.) |
above pull request #17 implements es |
@janicki, currently, you can just pass in the key (like |
@c9s, you are correct, XDate is very lacking on the i18n and it should ideally have a load of external JS files, each specifying it's own settings. |
This would be a great feature for the roadmap. |
Hi,
does this library support i18n ? or any way to define i18n texts?
The text was updated successfully, but these errors were encountered: