Skip to content

chore(deps-dev): Bump i18next-cli from 1.53.2 to 1.56.9#1856

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/i18next-cli-1.56.9
Closed

chore(deps-dev): Bump i18next-cli from 1.53.2 to 1.56.9#1856
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/i18next-cli-1.56.9

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 4, 2026

Bumps i18next-cli from 1.53.2 to 1.56.9.

Changelog

Sourced from i18next-cli's changelog.

1.56.9 - 2026-04-29

  • extract now propagates namespace/keyPrefix from a useTranslationNames-listed call when its result is stored on a class field and later destructured inside a method, e.g. #ctx = getTranslationContext('settings') followed by const { t } = this.#ctx (or this.#ctx()) inside a class method. Previously, only top-level VariableDeclarator initializers were tracked, so t('hello') reached through this.#ctx was extracted without its namespace. The scope manager now keeps a per-class field registry (public and private fields, including the () invocation form) and resolves this.<field> references against it during destructuring. The non-class form const { t } = getTranslationContext(...) is unchanged. Fixes #251.

1.56.8 - 2026-04-29

  • extract --sync-primary now updates <Trans> defaults when the key contains an underscore but is not actually a plural or context variant. Previously, the "is this a variant key?" check used a loose key.includes(pluralSeparator) || key.includes(contextSeparator) heuristic, which (with the default _ separator) misclassified ordinary keys like abc_123 as variants and preserved the existing translation instead of adopting the new default from code. The check now treats a key as a synthesized plural variant only when the extractor flagged it with hasCount AND its suffix matches a CLDR plural form; context variants are unaffected because they were already handled by the derived-default detection. Fixes #250.

1.56.7 - 2026-04-23

  • extract no longer mis-extracts arbitrary method calls on a scoped i18n (or other useTranslation-derived) object as translation keys. Previously, code like const { i18n } = useTranslation(); i18n.language.substring(0, 2) or i18n.languages.join('|') leaked bogus entries such as "0": "0" and "|": "|" into the output. The scope-propagation fallback introduced in #239 ran before the configured functions pattern check, so any call whose callee had an in-scope prefix was promoted to a translation call, bypassing the ['t', '*.t'] match entirely. The fallback now runs after the pattern check: *.t consistently means "member expression whose final property is literally t", and scope (namespace/keyPrefix) is only propagated into calls that already matched a configured pattern. The #239 behaviour is preserved — emailError.t(...) with const emailError = useTranslateKeyState('auth') still picks up its namespace, including through deeper chains like wrapper.i18n.t(...). Fixes

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels May 4, 2026
@github-actions github-actions Bot enabled auto-merge (squash) May 4, 2026 17:38
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.45%. Comparing base (5862d81) to head (b073310).
⚠️ Report is 4 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (5862d81) and HEAD (b073310). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (5862d81) HEAD (b073310)
2 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1856       +/-   ##
===========================================
- Coverage   70.25%   46.45%   -23.81%     
===========================================
  Files         102        3       -99     
  Lines        6442      127     -6315     
  Branches     1881       35     -1846     
===========================================
- Hits         4526       59     -4467     
+ Misses       1914       55     -1859     
- Partials        2       13       +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/i18next-cli-1.56.9 branch from 62e3169 to b7d3635 Compare May 4, 2026 17:49
Bumps [i18next-cli](https://github.com/i18next/i18next-cli) from 1.53.2 to 1.56.9.
- [Changelog](https://github.com/i18next/i18next-cli/blob/main/CHANGELOG.md)
- [Commits](i18next/i18next-cli@v1.53.2...v1.56.9)

---
updated-dependencies:
- dependency-name: i18next-cli
  dependency-version: 1.56.9
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/i18next-cli-1.56.9 branch from b7d3635 to b073310 Compare May 8, 2026 13:54
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 11, 2026

Superseded by #1875.

@dependabot dependabot Bot closed this May 11, 2026
auto-merge was automatically disabled May 11, 2026 21:33

Pull request was closed

@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/i18next-cli-1.56.9 branch May 11, 2026 21:33
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 javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant