js-lingui

🌍 📖 A readable, automated, and optimized (3 kb) internationalization for JavaScript

MIT License

Downloads
7.1M
Stars
4.2K
Committers
219

Bot releases are hidden (Show)

js-lingui -

Published by tricoder42 over 5 years ago

Bug Fixes

  • Loader: Fix type error when no loader config is provided
  • Macro: babel-plugin-macros are peer dependency and must be installed manually
js-lingui -

Published by tricoder42 over 5 years ago

Bug Fixes

  • 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.
js-lingui -

Published by tricoder42 over 5 years ago

New features

  • Conf: Allow loading specific configuration file using --config argument (#501). Thanks to Brandon Croft.

Bug Fixes

js-lingui -

Published by tricoder42 over 5 years ago

Bug Fixes

js-lingui -

Published by tricoder42 over 5 years ago

  • Export @lingui/core/dev subpackage.

Bug Fixes

  • 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.
js-lingui -

Published by tricoder42 almost 6 years ago

Bug Fixes

  • CLI: show more accurate follow-up commands (e.g. show use (yarn compile) ... instead of use (lingui compile) ... when CLI is invoked using yarn extract)
  • CLI: add missing export (regression introduced by #381)
js-lingui -

Published by tricoder42 almost 6 years ago

Bug Fixes

  • 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).
js-lingui -

Published by tricoder42 about 6 years ago

🔥 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 Features

Bug Fixes

  • CLI: how help for unrecognized commands (#308). Thanks to An Nguyen.
  • Fix Flow types (#306).
js-lingui -

Published by tricoder42 about 6 years ago

Bug Fixes

  • @lingui/cli - Remove opencollective dependency
js-lingui -

Published by tricoder42 about 6 years ago

New Features

Bug Fixes

  • 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 by react-app preset) (#300).
  • Fix @lingui/loader compatibility with Webpack 4 (#297).
  • Fix I18n render prop component to not unmount children component between renders (#302).
js-lingui -

Published by tricoder42 about 6 years ago

New Features

Bug Fixes

  • Handle message compile errors in development (#283)
js-lingui -

Published by tricoder42 about 6 years ago

Bug Fixes

  • lingui init - add missing command (#270)
js-lingui -

Published by tricoder42 about 6 years ago

Bug Fixes

  • lingui extract - fix path separator on Windows (#262)
  • lingui extract - fix extracting from typescript files (#260)
js-lingui -

Published by tricoder42 about 6 years ago

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 detects create-react-app projects and extracts messages using rect-app babel preset

Bug Fixes

  • lingui add-locale accepts any valid BCP-47 locale (#182)
  • Flow types are correctly exported for all packages (#250)
js-lingui -

Published by tricoder42 about 6 years ago

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 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)

Bug Fixes

  • Fix internal catalog names to avoid collisions. Internal catalogs are named <original_filename>.json, eg: App.js.json (#244)

Docs

js-lingui -

Published by tricoder42 over 6 years ago

Release dedicated to command line interface.

New Features

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)