js-lingui

🌍 📖 A readable, automated, and optimized (3 kb) internationalization for JavaScript

MIT License

Downloads
7.1M
Stars
4.2K
Committers
219

Bot releases are visible (Hide)

js-lingui - v4.10.0 Latest Release

Published by lingui-bot 6 months ago

4.10.0 (2024-04-12)

Features


⚠️ There was an accident during the 4.9.0 release, so this version was skipped in the release process.

js-lingui - v4.8.0

Published by lingui-bot 7 months ago

4.8.0 (2024-04-03)

Features

  • react: add "use client" for react bundle (#1902) (5cf50ff)
js-lingui - v4.7.2

Published by lingui-bot 7 months ago

4.7.2 (2024-03-26)

Bug Fixes

Other changes

  • refactor: improve error message in Trans (#1880) (8d96c7d)
  • typo: Correct typo in build script of nextjs-swc example (#1885) (7473bc4)
js-lingui - v4.8.0-next.1

Published by lingui-bot 8 months ago

4.8.0-next.1 (2024-03-06)

Features

js-lingui - v4.8.0-next.0

Published by lingui-bot 8 months ago

4.8.0-next.0 (2024-03-04)

Features

js-lingui - v4.7.1

Published by lingui-bot 8 months ago

4.7.1 (2024-02-20)

Bug Fixes

  • compile should generate a TS file (#1851) (e4fbd59)
  • core: use named instead of default export for unraw lib (#1837) (85f0944)
  • don't replace octothorpe coming from variable (#1850) (e321729)
js-lingui - v4.7.0

Published by lingui-bot 10 months ago

4.7.0 (2024-01-05)

Bug Fixes

Features

js-lingui - v4.6.0 ❄️

Published by lingui-bot 11 months ago

4.6.0 (2023-12-01)

Bug Fixes

  • cli: import type as type (#1802) (960aadb)
  • cli: sorting issue when different locales are used on host machines (#1808) (4b8b2a7)
  • experimental-extractor: fix ERR_IMPORT_ASSERTION_TYPE_MISSING issue (#1775) (efcd405)

Features

  • format-json: ability to set indentation (#1807) (6ee7e63)
  • message-utils: make generateMessageId to be working in browser (#1776) (f879ddb)
js-lingui - v4.5.0

Published by lingui-bot about 1 year ago

4.5.0 (2023-09-14)

Features

  • react: export react server sub-entry (#1762) (fa77d82)
  • build: update unbuild, and expose mts / mjs typings (#1751) (5838d2d)
js-lingui - v4.4.2

Published by lingui-bot about 1 year ago

4.4.2 (2023-08-31)

Reverts

  • Revert "refactor: use useSyncExternalStore to subscribe for context updates (#1746)" (#1755) (4164893), closes #1746 #1755
js-lingui - v4.4.1

Published by lingui-bot about 1 year ago

4.4.1 (2023-08-30)

Bug Fixes

Features

js-lingui - v4.4.0

Published by lingui-bot about 1 year ago

4.4.0 (2023-08-08)

Bug Fixes

  • webpack-loader: fix invalid dependencies have been reported by plugins (#1735) (1521ae7)

Features

  • memoizable react translations (#1721) (96e7def)
  • introduce TransNoContext component for future RSC support (#1738) (8c1c70c)
js-lingui - v4.3.0

Published by lingui-bot over 1 year ago

4.3.0 (2023-06-29)

Bug Fixes

  • format-po-gettext: bad return during mapping with serializePlurals (#1707) (993bd2a)

Features

  • allow comment prop on React Trans component (#1718) (3477c32)
  • extractor: expose extractFromFileWithBabel function for better flexibility (#1719) (43486dc)
  • vite-plugin: report user-friendly error when macro used without transformation (#1720) (53f6a7c)
js-lingui - v4.2.1

Published by lingui-bot over 1 year ago

4.2.1 (2023-06-07)

Bug Fixes

  • core: don't crash on escaped unicode symbols in messages (#1692) (461c2fc)
  • extractor: support jsx in js files (#1678) (e335458)
js-lingui - v4.2.0

Published by lingui-bot over 1 year ago

4.2.0 (2023-05-26)

Bug Fixes

  • fallback to other only when undefined (#1665) (a79de75)
  • webpack + vite: fix dependency watching in loader (#1671) (f06cdf5)

Features

  • po-format: add explicitIdAsDefault for po-format for easier migration (#1672) (3303228)
js-lingui - v4.1.2

Published by lingui-bot over 1 year ago

4.1.2 (2023-05-17)

Bug Fixes

  • webpack + vite: fix dependency watching in loader (#1662) (ce660d7)
js-lingui - v4.1.1

Published by lingui-bot over 1 year ago

4.1.1 (2023-05-17)

Features

  • webpack + vite: ensure that bundlers respect catalog dependencies (#1654) (b5083d1)

Bug Fixes

  • message-utils: workaround package.json exports field for older runtimes (#1657) (e3ff138)
js-lingui - v4.1.0

Published by lingui-bot over 1 year ago

4.1.0 (2023-05-15)

Features

Bug Fixes

  • format should follow locale order (#1619) (4d53b7b)
  • just use require to import services (#1647) (388c77b)
  • message-utils: workaround package.json exports field (#1650) (3bee00c)
  • react macro types (#1620) (8a48b9f)
  • vue-extractor: don't crash when there is no in an SFC (#1623) (9e6ea70)
  • vue-extractor: fix default export burden with /api/extractors/babel (#1626) (045eb21)
js-lingui - v4.0.0

Published by andrii-bodnar over 1 year ago

v4.0.0 (2023-04-26)

Changelog

Features

  • Hash-based message ID + Context (#1440)
  • Custom Formatters
  • Custom Extractors
  • Message Extraction guide, experimental dependency tree crawling
  • Vue.js Extractor
  • macro: support JSX macro inside conditional expressions (#1436)
  • macro: support renamed identifiers in macro (#1463)
  • extractor: (Experimental): Deps extractor (#1469)
  • core (Experimental): add new core API for Node/JS usage without macros (#1564)
  • core: support extracting from all forms of i18n._ / i18n.t calls (#1586)
  • extractor: support TS experimental decorators (#1517)
  • webpack-loader: support JSON catalogs (#1525)
  • formats: extract formats into separate packages (#1536)
  • macro: support tagged templates in defineMessage + short alias (#1495)
  • conf: clarify the order by messageId and support order by message (#1515)
  • extractor: allow i18._(foo.bar) without warning (#1492)
  • core: add i18n.setCatalogAndActivate for easier nextjs integration (#1541)
  • macro: allow passing any expression as custom i18n instance (#1475)
  • extractor: respect sourcemaps (#1459)
  • examples: update examples (nextjs-babel, nextjs-swc, js, create-react-app) (#1550)
  • examples: add vite-react-babel example (#1558)

Fixes and refactoring

  • always honor process.env.LINGUI_CONFIG (#1447)
  • core: use Intl.PluralRules instead of i18n.loadLocaleData (#1486)
  • core: do not ignore empty plural values (#1504)
  • macro: expression only choices / select options (#1523)
  • macro: mark other as required for ChoiceOptions (#1527)
  • react: remove deprecated defaultProps from Trans component (#1494)
  • cli: exclude pseudo locale during sync (#1455)
  • react: do not remount children of I18nProvider (#1501)
  • react: support array of react components in values (#1593)
  • build: migrate to unbuild (#1545)

Breaking Changes

  • extractor/babel: non-fragile babel extractor options (#1367)
  • extractor: don't use intermediate catalogs (#1358)
  • macro: Trans inside Plural has leading whitespace (#1437)
  • react: remove withI18n (#1503)
  • macro: remove arg macro (#1581)
  • delete Snowpack plugin (#1532)

Links

Credits

@thekip @taozhou-glean @vonovak @j4hr3n @bravo-kernel @andrii-bodnar @Martin005 @janicduplessis

js-lingui - v4.0.0-next.8

Published by andrii-bodnar over 1 year ago

v4.0.0-next.8 (2023-04-21)

Changelog

Features

  • extractor: add new package with Vue.js extractor (#1578)

Fixes

  • extractor: fix extracting from random i18n. members (#1602)
  • cli: allow import from ESM context, add tests (#1605)

Links

Credits

@j4hr3n @thekip