2.9.1 (2020-01-18)
- Fix import of typescript package (#611). Thanks to Anton Korzunov
- Fix flow types of withI18n (#605). Thanks to Kamil Tunkiewicz
2.9.0 (2019-12-02)
- Add optional sort by origin/filename (#563). Thanks to Kenneth Skovhus
- Lazily split messages by value tags (#593). Thanks to Danny Sellers
- Optional line numbers for lingui format (#587). Thanks to Martti Roitto
- Moved typescript dependency to peer (#589). Thanks to Daniel K.
- Compile strict skips pseudo locale (#584). Thanks to Daniel Chabr
2.8.3 (2019-05-22)
- Loader: Fix type error when no loader config is provided
- Macro:
babel-plugin-macros
are peer dependency and must be installed manually
2.8.2 (2019-05-22)
- CLI: Don't warn about conflicting default message if it's empty (#502). Thanks to Filip Žmuk.
- Conf: Pass config path to getConfig explicitly instead reading it from process.argv (#509). Thanks to Brandon Croft.
2.8.0 (2019-05-17)
- Conf: Allow loading specific configuration file using --config argument (#501). Thanks to Brandon Croft.
- Macro: Fix escaped backticks in template string (#477). Thanks to Saxon Landers.
2.7.4 (2019-02-19)
- Conf: Allow
extends
androotMode
babel config options (#454). Thanks to Adam Thomas. - React: Fix flow typing with Flow 0.92 (#448). Thanks to Florian Rival.
2.7.3 (2019-01-28)
- Export
@lingui/core/dev
subpackage.
- CLI: Log original info with Babel compatibility info (#401). Thanks to Sam Gluck.
- CLI: Allow pseudolocales which don't start with a known language (#411). Thanks to Eric Plumb.
- CLI: Made pseudolocales to take into account variable names (#419). Thanks to Cornel Stefanache.
- CLI: Fix edge case bug in plural pseudolocalization (#428). Thanks to Eric Plumb.
- CLI: Fix yarn detection with nps (#441). Thanks to MU AOHUA.
2.7.2 (2018-11-14)
- CLI: show more accurate follow-up commands (e.g. show
use (yarn compile) ...
instead ofuse (lingui compile) ...
when CLI is invoked usingyarn extract
) - CLI: add missing export (regression introduced by #381)
2.7.1 (2018-11-12)
- CLI: remove "macros" from the list of babel plugins (#360). Thanks to Jérôme Steunou.
- Macro: fix ICU message for nested selects (#365). Thanks to Maxim Zemskov.
- CLI: allow leading space in i18n description comments (#366). Thanks to Maxim Zemskov.
- Disable Google Clojure Compiler rewritePolyfills behavior (#374). Thanks to Ivan Khilko.
- Show hint for missing babel-core package (#381).
- Fix message extracting when Trans component is missing (#389).
2.7.0 (2018-09-10)
🔥 Babel Macros 🎣 are finally released! After few weeks of fiddling with API, i18n macros are finally out without a breaking release. This is the first part of RFC-001, final form be delivered in next release.
Important: Macros are completely optional and Babel plugins will work until v3. It's not mandatory to migrate to macro, but recommended.
- New package
@lingui/macro
published (#318). Big thanks to Matt Labrum for initial implementation. - Pseudolocalization (#309). Thanks to Martin Cerny.
- Extract description of messages (#197).
- Add
i18n.date
andi18n.number
methods (#299).
2.6.1 (2018-09-03)
@lingui/cli
- Remove opencollective dependency
2.6.0 (2018-08-31)
- Configuration - add
extractBabelOptions
(#287). Thanks to Daniel K.. lingui extract
- add--namespace
option andcompileNamespace
config (#295). Thanks to An Nguyen.
- Update peer-dependency on babel-core (#286).
- Output multiple origins on separate line in PO format (#290).
- Keep headers in PO format (#294). Thanks to Daniel K..
lingui extract
- set default BABEL_ENV (required byreact-app
preset) (#300).- Fix
@lingui/loader
compatibility with Webpack 4 (#297). - Fix
I18n
render prop component to not unmount children component between renders (#302).
2.5.0 (2018-08-24)
- Disable eslint for compiled catalogs (#279). Thanks to Benoît Grélard.
- Add
I18n
render prop component (#282)
- Handle message compile errors in development (#283)
2.4.2 (2018-08-19)
lingui init
- add missing command (#270)
2.4.1 (2018-08-10)
lingui extract
- fix path separator on Windows (#262)lingui extract
- fix extracting from typescript files (#260)
2.4.0 (2018-08-09)
Better support for custom file formats and initial support for Create React App.
- New message catalog format: Gettext PO file (#256)
- New
lingui init
command which detects project type and install all required packages (#253) - Allow customize messages for missing translations (#255)
lingui extract
detectscreate-react-app
projects and extracts messages usingrect-app
babel preset
lingui add-locale
accepts any valid BCP-47 locale (#182)- Flow types are correctly exported for all packages (#250)
2.3.0 (2018-07-23)
Long-awaited backlog grooming.
- Add support for locales (aka cultures) (#170). Thanks to Cristi Ingineru.
- Allow React elements to be used as message variables (#183)
- Support both Babel 6.x and 7.x (#171, #232, #238)
withI18n
hoists statics of wrapped component (#166)Date
andi18n.date
accepts date as a string (#155)lingui extract
shows progress (#180)lingui extract
throws an error when encountering different defaults for the same message (#200)lingui compile
shows useful error when message has syntax errors (#191)
- Fix internal catalog names to avoid collisions. Internal catalogs are named
<original_filename>.json
, eg:App.js.json
(#244)
- React Native Tutorial (#243). Thanks to Vojtech Novak.
- Add draft of Testing Guide
- Add section with external resources
- Several fixes by Vincent Ricard (#242)
2.2.0 (2018-07-04)
Release dedicated to command line interface.
- Load jsLingui configuration from separate file (#209). Thanks to Vincent Ricard.
- Add --overwrite
option which forces overwrite of translations in minimal
format
forsourceLocale
from source code. (#199) - Order messages in catalogs alphabetically by message ID (#230). Thanks to David Reeß.
- Add TypeScript extractor (#228). Thanks to Jeow Li Huan.
- Pass extra Babel options to extractor (#226). Thanks to Jan Willem Henckel.
- Mark all messages in file as obsolete when file is completely removed (#235)
- Support locales with hyphens in cli compile (#231). Thanks to Leonardo Dino.
- Extract with format minimal does not set defaults (#222)
- Use generated message as a default one in sourceLocale catalog (#212)