andrewplummer / Sugar

A Javascript library for working with native objects.
https://sugarjs.com/
MIT License
4.53k stars 306 forks source link

hu (Hungarian - magyar) locale #658

Open ovari opened 4 years ago

ovari commented 4 years ago

The hu (Hungarian - magyar) locale is not shown at https://github.com/andrewplummer/Sugar/tree/master/lib/locales

Also the default locale, i.e. en-US, is not shown there either; and, we don't know where it is.

Could you please advise how we can add the hu locale?

Thank you

andrewplummer commented 4 years ago

Hungarian doesn't exist yet but I would be very happy if you would like to add it! See the "Adding custom locales" in the readme or if you look at one of the other locales the format should be fairly straightforward! Let me know if you have issues.

ovari commented 4 years ago

Could not see "Adding custom locales" in the https://github.com/andrewplummer/Sugar/blob/master/README.md. Can you please provide a direct link? Thank you

Edit: Is there an "en-US" file we can look at? Thank you once again

andrewplummer commented 4 years ago

Sorry it's this one: https://github.com/andrewplummer/Sugar/blob/master/README.md#addingcustomizing-locales

should have linked to it above

en-US file is embedded in date.js ... it's the same format but a little bit specialized... the other locale files are probably simpler

ovari commented 4 years ago

@andrewplummer thank you for your advise. Hopefully the pull request https://github.com/andrewplummer/Sugar/pull/659 can be merged.

ovari commented 3 years ago

@andrewplummer can you accept https://github.com/andrewplummer/Sugar/pull/659?

If not, can you please advise what you require?

Thank you