Skip to content

Releases: lingui/js-lingui

v4.0.0-next.8

21 Apr 14:48
Compare
Choose a tag to compare
v4.0.0-next.8 Pre-release
Pre-release

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

v4.0.0-next.7

18 Apr 09:22
Compare
Choose a tag to compare
v4.0.0-next.7 Pre-release
Pre-release

v4.0.0-next.7 (2023-04-18)

Changelog

Fixes

  • cli: resolve package.json with relative path (#1597)

Links

Credits

@taozhou-glean

v4.0.0-next.6

14 Apr 09:12
Compare
Choose a tag to compare
v4.0.0-next.6 Pre-release
Pre-release

v4.0.0-next.6 (2023-04-14)

Changelog

Features

  • core: support extracting from all forms of i18n._ / i18n.t calls + "Message Extraction" article (#1586)

Fixes and Refactoring

  • macro!: remove arg macro (#1581)
  • cli: produce TS typings for @lingui/cli (#1579)
  • cli/api: update pseudolocale package (#1582, #1585)
  • react: support array of react components in values (#1593)

Links

Credits

@thekip @taozhou-glean

v4.0.0-next.5

31 Mar 13:03
Compare
Choose a tag to compare
v4.0.0-next.5 Pre-release
Pre-release

v4.0.0-next.5 (2023-03-31)

Changelog

Features

  • core (Experimental): add new core API for Node/JS usage without macros (#1564)

Fixes and Refactoring

  • trans: align render callback and 'component' prop (#1539)
  • po-formatter: save explicit id flag in comments instead of flags (#1574)
  • core: improve MessageDescriptor typings. id is always present (#1570)
  • build: remove legacy build system (#1555)
  • build: fix @lingui/message-utils package (#1569)
  • require should use cjs instead of mjs (#1576)

Links

Credits

@thekip @j4hr3n @vonovak @taozhou-glean

v4.0.0-next.4

24 Mar 15:50
05eeed5
Compare
Choose a tag to compare
v4.0.0-next.4 Pre-release
Pre-release

v4.0.0-next.4 (2023-03-24)

Changelog

Fixes and Refactoring

  • formatters: fix typing inconsistency and add tsd test for each package (#1547)
  • build: migrate to unbuild (#1545)
  • cli/catalog: decouple catalog type from PO message shape (#1549)

Docs

  • examples: update examples (nextjs-babel, nextjs-swc, js, create-react-app) (#1550)
  • examples: add vite-react-babel example (#1558)
  • docs: vite: add missing dependencies and show ts configuration (#1556)
  • docs: improve formats documentation (#1548)
  • docs: fix react pattern docs (#1562)
  • docs: Update lingui import statement in setup-vite.md (#1552)
  • docs: fix small typos in excluding build file docs (#1554)

Links

Credits

@thekip @taozhou-glean @andrii-bodnar @goibon @j4hr3n

v4.0.0-next.3

21 Mar 14:49
Compare
Choose a tag to compare
v4.0.0-next.3 Pre-release
Pre-release

v4.0.0-next.3 (2023-03-21)

Changelog

Features

  • formats: extract formats into separate packages, Custom Formatters (#1536)
  • core: add i18n.setCatalogAndActivate for easier nextjs integration (#1541)

New packages

Fixes

  • react: do not remount children of I18nProvider (#1501)

Refactoring

  • cli: make getFormats asynchronous, prepare for ESM (#1533)
  • formatter-po: ability to disable lingui-id, make it false by default (#1540)
  • cli: extend formatters API with source language (#1542)

Links

Thanks

@thekip @vonovak

v4.0.0-next.2

17 Mar 12:28
Compare
Choose a tag to compare
v4.0.0-next.2 Pre-release
Pre-release

v4.0.0-next.2 (2023-03-17)

Changelog

Features

  • extractor: experimental Deps extractor (#1469)
  • extractor: support TS experimental decorators (#1517)
  • format: initial support for external formatters (#1511)
  • webpack-loader: support json catalogs. Improve coverage (#1525)
  • vite-plugin: support different extensions for catalogs. Improve coverage (#1526)
  • macro: support tagged templates in defineMessage + short alias (#1495)
  • conf: clarify the order by messageId and support order by message (#1515)
  • conf: change default orderBy to message (#1519)

Breaking Changes

  • delete Snowpack plugin (#1532)
  • react: remove withI18n (#1503)

Fixes

  • extractor: allow i18._(foo.bar) without warning (#1492)
  • 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)

Links

Thanks

@thekip @taozhou-glean @vonovak

v4.0.0-next.1

09 Mar 12:13
Compare
Choose a tag to compare
v4.0.0-next.1 Pre-release
Pre-release

v4.0.0-next.1 (2023-03-09)

Changelog

Fixes

  • macro: more precise check for macro with custom i18n (#1488)

Refactoring

  • core: use Intl.PluralRules instead of i18n.loadLocaleData (#1486, docs)
  • update LinguiConfig typings, add tsd test (#1485)

Links


@thekip

v4.0.0-next.0

06 Mar 10:16
637f5cf
Compare
Choose a tag to compare
v4.0.0-next.0 Pre-release
Pre-release

v4.0.0-next.0 (2023-03-06)

Changelog

Features

  • Hash-based message ID + Context (#1440)
  • macro: support JSX macro inside conditional expressions (#1436)
  • macro: support renamed identifiers in macro (#1463)
  • extractor: respect sourcemaps (#1459)

Fixes

  • macro: Trans inside Plural has leading whitespace (#1437)
  • macro: allow passing any expression as custom i18n instance (#1475)
  • cli: exclude pseudo locale during sync (#1455)
  • always honor process.env.LINGUI_CONFIG (#1447)

Refactoring

  • extractor/babel: non-fragile babel extractor options (#1367)
  • extractor: don't use intermediate catalogs (#1358)
  • macro: more accurate typings for macro + testing (#1340)
  • macro: pass config directly to macro (#1442)
  • catalog: read template extension from formatter (#1468)
  • catalog: split to separate files, add tests (#1467)
  • conf: split code, generate typings (#1415)
  • conf: delete migrations for deprecated fields (#1439)
  • cli: add TS typings, remove code duplication in po / po-gettext formats (#1430)
  • cli: update commander + remove deprecated commands (#1444)
  • cli: no console.error on informational output (#1429)

Docs

Visit the js-lingui-git-next-lingui.vercel.app to see the relevant docs, including the migration guide from 3.x to 4.x.

Discussion

Visit the related discussion if you have any questions about this release or feedback. We'll highly appreciate it!


@thekip @Martin005 @andrii-bodnar @taozhou-glean @janicduplessis

v3.17.2

24 Feb 14:48
Compare
Choose a tag to compare

3.17.2 (2023-02-24)

Bug Fixes