Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
i18n: format date #29
First I just want to say that this is a great lib, gets the job done and has great i18n support.
Anyway, I'm dealing with a website that has to show dates both in english and in portuguese (great to see that pt was already implemented!). It was all good, until I found this place where I need to write a full date in both languages.
I realized I would need 2 different formats: one for english (
Is there a way to call
If there isn't, it would be nice to implement it, I could give it a go.
Maybe a new token that contains the whole date and whole time, like
Yeah, I can see how that would be useful.
It should probably work something like this.
Then each language would specify a default format for each length.
By the way, escaping characters should work, but if you're writing as JS strings, you'll need to escape the escape character.
added a commit
Oct 21, 2011
When you've got some time, please take a look. I updated the tests and the docs.
I added support for all languages, but I'm just learning french, not completely sure if it's correct and italian I just added the same as french, some google search showed me it should be similar. But it would be good to have someone native to review those.
Wow, this looks great! You even updated the docs + unit tests!
Please submit a pull request to the dev branch when you get a chance.
I'll send a message to the people who committed the French and Italian language files about the formats.
Thanks for contributing!