@lingui/core
Advanced tools
Changelog
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.
@lingui/macro
published (#318).
Big thanks to Matt Labrum for initial implementation.i18n.date
and i18n.number
methods (#299).<a name="2.6.1"></a>
Changelog
2.6.0 (2018-08-31)
extractBabelOptions
(#287). Thanks to Daniel K..lingui extract
- add --namespace
option and compileNamespace
config (#295). Thanks to An Nguyen.lingui extract
- set default BABEL_ENV (required by react-app
preset) (#300).@lingui/loader
compatibility with Webpack 4 (#297).I18n
render prop component to not
unmount children component between renders (#302).<a name="2.5.0"></a>
Changelog
2.4.0 (2018-08-09)
Better support for custom file formats and initial support for Create React App.
lingui init
command
which detects project type and install all required packages (#253)lingui extract
detects create-react-app
projects and extracts messages using
rect-app
babel presetlingui add-locale
accepts any valid BCP-47 locale (#182)<a name="2.3.0"></a>
Changelog
2.3.0 (2018-07-23)
Long-awaited backlog grooming.
withI18n
hoists statics of wrapped component (#166)Date
and i18n.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)<original_filename>.json
, eg: App.js.json
(#244)<a name="2.2.0"></a>