[Added] Add I18nJS::Plugin.after_export(files:, config:) method, that's
called whenever whenever I18nJS finishes exporting files. You can use it to
further process files, or generate new files based on the exported files.
[Added] Bult-in plugin I18nJS::ExportFilesPlugin, which allows exporting
files out of the translations file by using a custom template.
v4.1.0 - Dec 09, 2022
[Added] Parse configuration files as erb.
[Changed] I18n.listen(run_on_start:) was added to control if files should be
exported during I18n.listen's boot. The default value is true.
[Added] Now it's possible to transform translations before exporting them
using a stable plugin api.
[Added] Built-in plugin I18nJS::EmbedFallbackTranslationsPlugin, which
allows embedding missing translations on exported files.
[Deprecated] The i18n check has been deprecated. Use
i18n lint:translations instead.
[Added] Use i18n lint:scripts to lint JavaScript/TypeScript.
[Fixed] Expand paths passed to I18nJS.listen(locales_dir:).
v4.0.1 - Aug 25, 2022
[Fixed] Shell out export to avoid handling I18n reloading heuristics.
[Changed] I18nJS.listen now accepts a directories list to watch.
[Changed] I18nJS.listen now accepts
listen options via :options.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps i18n-js from 3.8.0 to 4.2.0.
Changelog
Sourced from i18n-js's changelog.
Commits
447aeab
Bump up version (v4.2.0)0e1d314
Rename bin.ad5c9e0
Add export files plugin to generate files out of translations. (#682)1dbaf1d
Pass configuration toI18nJS::Plugin.after_export(files:, config:)
. (#681)93ebbc3
Add I18nJS::Plugin.after_export. (#680)4ffc194
Update readme.6f28bf2
Bump up version (v4.1.0)cd1df62
Expand paths passed toI18nJS.listen(locales_dir:)
. (#678)2ac3bdf
Add command to lint JavaScript/TypeScript files. (#677)b427db4
Add plugin API that allows transforming translations. (#676)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)