fnando / i18n-js

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

Add I18nJS::Plugin.after_export. #680

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

Adds I18nJS::Plugin.after_export(files:) to the plugin api. This method is called after i18n-js finishes exporting all translation files.

Why

To enable further processing through plugins.

Known limitations

N/A