🌍 📖 A readable, automated, and optimized (3 kb) internationalization for JavaScript
MIT License
Bot releases are hidden (Show)
extends
and rootMode
babel config options (#454). Thanks to Adam Thomas.@lingui/core/dev
subpackage.use (yarn compile) ...
instead of use (lingui compile) ...
when CLI is invoked using yarn extract
)🔥 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).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).I18n
render prop component (#282)lingui init
- add missing command (#270)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 presetLong-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)Release dedicated to command line interface.
format
for sourceLocale
from source code. (#199)