sindresorhus/lcid

Incomplete data

開放

#15 建立於 2025年5月29日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (11 個分叉)user submission
enhancementhelp wanted

倉庫指標

星標
 (39 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南