Releases: lingui/js-lingui
Releases · lingui/js-lingui
v2.5.0
v2.4.2
v2.4.1
v2.4.0
Better support for custom file formats and initial support for Create React App.
New Features
- 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
Bug Fixes
v2.3.0
Long-awaited backlog grooming.
New Features
- 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)
Bug Fixes
- Fix internal catalog names to avoid collisions. Internal catalogs are named
<original_filename>.json
, eg:App.js.json
(#244)
Docs
- React Native Tutorial (#243). Thanks to Vojtech Novak.
- Add draft of Testing Guide
- Add section with external resources
- Several fixes by Vincent Ricard (#242)
v2.2.0
Release dedicated to command line interface.
New Features
- Load jsLingui configuration from separate file (#209). Thanks to Vincent Ricard.
- Add --overwrite
option which forces overwrite of translations in minimalformat
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.
Bug Fixes
- 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)