sindresorhus/lcid

Incomplete data

Open

#15 aperta il 29 mag 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (11 fork)user submission
enhancementhelp wanted

Metriche repository

Star
 (39 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

The dataset used seems to be both incomplete and unnecessarily limited: I just extracted the current list of locales from the Microsoft LCID 16.0 reference document, which contains 862 individual locales—see this gist for the full JSON output.

It contains separate fields for the language name ("English"), the location ("United States"), the LCID ID ("1033"), and the locale tag ("en-US"). Short locales ("en") have the location set to null; locales without an assigned LCID have the ID set to null.
Using this info, you can get a lot more information that might be useful to applications, at the cost of a larger JSON file.

Would you be open to incorporating that data set into this package? Might even be sensible to just have several conditional exports with different levels of included details.

Guida contributor