Skip to content

v2.0.0

Latest

Choose a tag to compare

@TiagoDanin TiagoDanin released this 06 Sep 17:18

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 is ce, so the entry is now ce-ru.
  • ff-ng and ff-latn-ng: id corrected from 4096 to 1127.
  • New exports map. Only ., ./index.json and ./package.json are
    reachable; other deep imports now fail.
  • Data string fixes in en-sh, fr-cf, mn-mong-cn, es-us, uz-latn
    and cy-gb ("Release10" -> "Release 10", "UnitedStates" -> "United States", ...).
  • engines.node raised 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 named locales
    export, in sync with index.json (verified by the test suite).
  • TypeScript declarations: index.d.ts (CommonJS) and index.d.mts (ESM),
    with a LocaleTag union 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.