fnando / i18n-js

It's a small library to provide the I18n translations on the Javascript. It comes with Rails support.
MIT License
3.77k stars 520 forks source link

Add plugin API that allows transforming translations. #676

Closed fnando closed 1 year ago

fnando commented 1 year ago
PR Checklist ### PR Structure - [x] This PR has reasonably narrow scope (if not, break it down into smaller PRs). - [x] This PR avoids mixing refactoring changes with feature changes (split into two PRs otherwise). - [x] This PR's title starts is concise and descriptive. ### Thoroughness - [x] This PR adds tests for the most critical parts of the new functionality or fixes. - [x] I've updated any docs, `.md` files, etc… affected by this change.

What

  1. Add a stable plugin API that allows transforming translations before files are saved.
  2. Add a plugin to embed fallback translations based on the default locale.

Why

Close #658

Known limitations

N/A