Releases: lingui/js-lingui
Releases · lingui/js-lingui
v4.0.0-next.8
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
v4.0.0-next.7
v4.0.0-next.7 (2023-04-18)
Changelog
Fixes
- cli: resolve
package.json
with relative path (#1597)
Links
Credits
v4.0.0-next.6
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
v4.0.0-next.5
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
v4.0.0-next.4
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
v4.0.0-next.3
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 itfalse
by default (#1540) - cli: extend formatters API with source language (#1542)
Links
Thanks
v4.0.0-next.2
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 bymessage
(#1515) - conf: change default
orderBy
tomessage
(#1519)
Breaking Changes
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 forChoiceOptions
(#1527) - react: remove deprecated
defaultProps
from Trans component (#1494)
Links
Thanks
v4.0.0-next.1
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 ofi18n.loadLocaleData
(#1486, docs) - update LinguiConfig typings, add tsd test (#1485)
Links
v4.0.0-next.0
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
3.17.2 (2023-02-24)
Bug Fixes
- vite: externalize macro imports (#1466) (1719430)
- vite-plugin: change default export to named export (#1465) (15510c1), closes #1450
- vite-plugin: ship in dual package format for compatibility with Vite (#1450) (e3a2b39)
- chain extract on watched file changes (#1435) (5dd50d3)
- param name for
missing
insetupI18nProps
(#1411) (6459f02) - cli: fix version command (#1413) (8bc212d)