Skip to content

Commit

Permalink
fix: preload languages also on cimode, if configured, #2027
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Sep 5, 2023
1 parent e8e5911 commit 8d04e22
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 23.4.8

- fix: preload languages also on cimode, if configured

## 23.4.7

- preload languages also on cimode, if configured
Expand Down
1 change: 1 addition & 0 deletions i18next.js
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,7 @@
const toLoad = [];
const append = lng => {
if (!lng) return;
if (lng === 'cimode') return;
const lngs = this.services.languageUtils.toResolveHierarchy(lng);
lngs.forEach(l => {
if (toLoad.indexOf(l) < 0) toLoad.push(l);
Expand Down
2 changes: 1 addition & 1 deletion i18next.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/i18next.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ class I18n extends EventEmitter {

const append = lng => {
if (!lng) return;
if (lng === 'cimode') return
const lngs = this.services.languageUtils.toResolveHierarchy(lng);
lngs.forEach(l => {
if (toLoad.indexOf(l) < 0) toLoad.push(l);
Expand Down

0 comments on commit 8d04e22

Please sign in to comment.