• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

i18next / react-i18next / 34764615523
96%

Build:
DEFAULT BRANCH: master
Ran 13 Sep 2026 03:07PM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Sep 2026 03:06PM UTC coverage: 96.379% (+0.008%) from 96.371%
34764615523

push

github

adrai
fix: refresh the returned i18n wrapper when resolvedLanguage changes

The wrapper is a snapshot of the instance (#1863), cached since #1885 so its
identity only changes when the language state does. That cache was keyed on
i18n.language alone, narrower than the three fields the surrounding useMemo
depends on, so a resolvedLanguage (or languages) change of its own kept handing
components the previous snapshot.

That happens whenever the translations for the current language arrive after the
switch: i18next resolves to the fallback while its store is still empty for it,
and re-resolves once the resources are there without language changing again.
Components reading i18n.resolvedLanguage - language switchers, for example -
then stayed one switch behind.

The cache key now covers language, resolvedLanguage and languages, so wrapper
identity still only changes when the language state changes and the caching from
#1885 is unaffected.

Reported via i18next/next-i18next#2348

769 of 843 branches covered (91.22%)

3 of 3 new or added lines in 1 file covered. (100.0%)

905 of 939 relevant lines covered (96.38%)

75.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34764615523.1 13 Sep 2026 03:07PM UTC 21
96.38
GitHub Action Run
Source Files on build 34764615523
  • Tree
  • List 21
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34764615523
  • 6def81a7 on github
  • Prev Build on master (#33802039239)
  • Next Build on master (#34764617686)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc