Repository navigation
Rewritten LCID parser, ESM + TypeScript support, and a corrected dataset (828 -> 862 locales).
Breaking changes
- Removed 4 keys that were artifacts of the old PDF parser or plain wrong:
tzm-latn-,ccp-cakm-,ca-es-— truncated tags. Replaced by the real
entries:tzm-latn-ma,ccp-cakm-bd,ccp-cakm-in,ca-es-valencia.cd-ru— wrong language code. Chechen isce, so the entry is nowce-ru.
ff-ngandff-latn-ng:idcorrected from4096to1127.- New
exportsmap. Only.,./index.jsonand./package.jsonare
reachable; other deep imports now fail. - Data string fixes in
en-sh,fr-cf,mn-mong-cn,es-us,uz-latn
andcy-gb("Release10"->"Release 10","UnitedStates"->"United States", ...). engines.noderaised to>=18.
Added
- 38 new locales, including
ca-es-valencia,tzm-latn-ma,tzm-arab-ma,
ccp-cakm-bd,ccp-cakm-in,ce-ru,hi-latn,cv-cyrl-ru,sc-latn-it,
kgp-latn-br,yrl-latn-br,bho-deva-in,raj-deva-in,bgc-deva-in. - ESM entry point (
index.mjs) with both a default and a namedlocales
export, in sync withindex.json(verified by the test suite). - TypeScript declarations:
index.d.ts(CommonJS) andindex.d.mts(ESM),
with aLocaleTagunion covering every key. - CI migrated from Travis to GitHub Actions.
Fixed
- Language names are no longer truncated or padded by the PDF parser
("Central Atlas Tamazight (Latin)","Standard Moroccan Tamazight",
"Mongolian (Traditional Mongolian)","Low German"). Closes #2.