Moment: Missing locale files en and en-US

Created on 4 Dec 2014  ·  3Comments  ·  Source: moment/moment

I appreciate this may be the default language, but it would be convenient if the source had reference files (even empty ones) for these two locales.

At best one could expect a 404 for some implementations that dynamically switch locales, but in my case I'm having to create a list of the locale subset supported by both AngularJS and MomentJS - unfortunately, "en" and "en-US" don't make the of course.

How about a couple of blank files with the simple text /* default */ ?

Most helpful comment

Where I can check default configuration set for "en" locale?

All 3 comments

I agree its not symmetrical, but I don't think we'll ever put 'en' and 'en-US' separately. Also I don't think putting an empty file is a good idea -- it just happens that your algorithm uses filenames, somebody else's might try to detect defineLocale calls ...

Just add 'en-US' to the list of locales (you're writing the algo). en is just an alias for en-US.

Where I can check default configuration set for "en" locale?

@codemole986 lib/locale/base-config.js

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benhathaway picture benhathaway  ·  3Comments

Shoroh picture Shoroh  ·  3Comments

Delgan picture Delgan  ·  3Comments

RobinvanderVliet picture RobinvanderVliet  ·  3Comments

IbraheemAlSaady picture IbraheemAlSaady  ·  3Comments