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