Skip to content

Update i18n-tasks requirement from ~> 1.1.0 to ~> 1.2.1 - #279

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/i18n-tasks-tw-1.2.1
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/i18n-tasks-tw-1.2.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on i18n-tasks to permit the latest version.

Release notes

Sourced from i18n-tasks's releases.

v1.2.1

  • RailsModelMatcher and the Prism scanner keep the namespace of a namespaced model in Foo::Bar.model_name.human (activerecord.models.foo/bar), and RailsModelMatcher also in Foo::Bar.human_attribute_name(:name) (activerecord.attributes.foo/bar.name), instead of using only the class name. #725
  • Fix PluralKeys for languages using OneFewOther rule #807
  • With search.strict: false, the plural forms of a key matched by a dynamic expression, e.g. t("category.#{key}", count: n), are no longer reported as unused. #270
Changelog

Sourced from i18n-tasks's changelog.

v1.2.1

  • RailsModelMatcher and the Prism scanner keep the namespace of a namespaced model in Foo::Bar.model_name.human (activerecord.models.foo/bar), and RailsModelMatcher also in Foo::Bar.human_attribute_name(:name) (activerecord.attributes.foo/bar.name), instead of using only the class name. #725
  • Fix PluralKeys for languages using OneFewOther rule #807
  • With search.strict: false, the plural forms of a key matched by a dynamic expression, e.g. t("category.#{key}", count: n), are no longer reported as unused. #270

v1.2.0

  • Behaviour change: unused and remove-unused now follow search.strict (default true) when neither --strict nor --no-strict is passed, as documented. They used to infer dynamic keys such as t("category.#{key}") regardless of the config, so keys only matched by such an expression are now reported as unused. Set search.strict: false or pass --no-strict to keep the previous output. #779
  • Adds the prune command, with -k / --keep-order to preserve the original key ordering in locale files, consistent with remove-unused. #695, #724
  • ignore_missing now supports per-locale syntax (just like ignore_eq_base), allowing you to ignore different keys for different locales. Backward compatible with the array syntax. #697
  • Prism:
    • Supports ViewComponents and their relative translations. #694
    • Supports Prism 2.0 (bundled with Ruby head), which attaches comments while parsing and removed ParseResult#attach_comments! and ConstantPathNode#child. #770
    • Reads magic comments on more nodes. #717
    • Handles model_name called with safe navigation. #733
    • Handles telling apart scope being falsey or not included in a translation call. #731
    • Fixes a crash when human_attribute_name is called with an interpolated string argument, and RailsModelMatcher producing spurious keys for non-static attribute arguments. #728
    • Fixes find crashing on some Ruby files, and on ERB files with multibyte characters before a call, and restores key highlighting: occurrences store the whole source line, like the Parser and ERB scanners, and count positions in characters. Requires Prism >= 0.28. #788, #789, #794
    • ERB: Code inside ERB comments (<%# ... %>) is no longer reported as used keys; only i18n-tasks-use magic comments are read. #746, #763
    • ERB: Reads ERB files as UTF-8 regardless of the locale, fixing invalid byte sequence in US-ASCII errors when LANG is unset. #793
  • Rails partials allow relative keys, now it is supported by both Parser and Prism scanners and is covered by tests. #692
  • check-prism makes better comparison between parsers for candidate keys. #692
  • The OpenAI translator supports openai_reasoning_effort, and omits the temperature for reasoning efforts other than none.
  • Locale files are written atomically. #780
  • The config template documents which value wins when a key is defined in several data.read files: the file read last. #371
  • The conservative router keeps blank keys ('') and keys containing a dot in their file, instead of moving them to the file of the pattern router. #579, #796
  • Keys split across adjacent string literals, e.g. t("some.very_long" \ ".key"), are now found by both the Parser and Prism scanners instead of being reported as unused, including in scope: and human_attribute_name. With Parser in strict mode, a string literal spanning several lines is now read as a static key or default too, as Prism already did. #356, #798
  • add-missing keeps array, number and boolean values as they are in the base locale, instead of writing them as strings such as '["a", "b"]', or replacing false and [] with the humanized key. #727, #795
  • search.only and search.exclude patterns such as *.rb or app/** now match the files found under search.paths: ["."], whose paths start with ./, so the Ruby and ERB scanners and the built-in exclusions apply there too. #784, #786
  • Unused keys are no longer reported as unused if their parent key is used. #721
  • ::I18n.t calls are found like I18n.t calls, instead of their keys being reported as unused.
  • Rails model attribute translations written with slash notation are recognized by RailsModelMatcher and the Prism scanner. #703
  • Fixes reading JSON locale files with json 3.x, which accepts JSON.parse options only as keyword arguments.
  • Translators retain completed request batches when a later batch fails, without writing untranslated source values to the target locale. #767
  • The Google translator works on JRuby again.
  • check-consistent-interpolations compares plural forms as a group, using the locale's plural rule from rails-i18n: a form used for several counts (e.g. Russian one, used for 1, 21, 31, …) must keep %{count}, and a form used for one count may spell the number out. Forms the base locale does not have, such as few, are now checked too. #801
  • Performance: faster missing, unused, normalize and check-normalized (e.g. ~5x for normalize), faster key splitting and loading of locale data.

v1.1.2

  • Prism: Missing require 'prism' in the scanners fixed.

v1.1.1

  • Prism: Fixes translate calls on non-I18n receivers being processed. (glebm/i18n-tasks#684)
  • Prism: Adds candidate keys for model_name.human and human_attribute_name. (glebm/i18n-tasks#684)
    • Event.human_attribute_name(:title) will now match activerecord.attributes.event.title or attributes.title.
  • Prism: Candidate keys were not added to the used_tree. (glebm/i18n-tasks#684)

... (truncated)

Commits
  • 7e5f44a Bump to v1.2.1
  • f3e1c34 chore(deps): bump actions/download-artifact from 7 to 8 (#808)
  • cc4f075 fix PluralKeys for languages using OneFewOther rule (#807)
  • d9232c8 Don't report plural forms of dynamically used keys as unused (#805)
  • 5dac486 Keep the namespace of namespaced models in Rails model keys (#806)
  • 960bae2 Bump to v1.2.0
  • 5071bf6 chore: Rubocop fix (#804)
  • 0612722 [Prism Scanner] fix wrongfully reported missing keys in nested models (#744)
  • 813afd1 Plural forms in check-consistent-interpolations
  • 16a6f47 Tidy up the Unreleased section of CHANGES.md for the release (#800)
  • Additional commits viewable in compare view

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Updates the requirements on [i18n-tasks](https://github.com/glebm/i18n-tasks) to permit the latest version.
- [Release notes](https://github.com/glebm/i18n-tasks/releases)
- [Changelog](https://github.com/glebm/i18n-tasks/blob/main/CHANGES.md)
- [Commits](glebm/i18n-tasks@v1.1.0...v1.2.1)

---
updated-dependencies:
- dependency-name: i18n-tasks
  dependency-version: 1.2.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants