@lingui/react
Advanced tools
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>