Open c9s opened 12 years ago
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 ''
or hypothetically 'es'
) and it will work. The method argument is settings
but is overloaded to support object or string.
@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?