Skip to content

Commit

Permalink
optimize/fix last change for turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Dec 6, 2023
1 parent 36202e3 commit bae5324
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@
## 15.1.1

- optimize/fix last change for turbo

## 15.1.0

- try to fix for turbo [#2222](https://github.com/i18next/next-i18next/issues/2222)
Expand Down
2 changes: 1 addition & 1 deletion src/appWithTranslation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const addResourcesToI18next = (instance: I18NextClient, resources: Resource) =>
for (const ns of Object.keys(resources[locale])) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (instance.hasLoadedNamespace(ns, { lng: locale })) {
if (!instance?.store?.data || !instance.store.data[locale] || !instance.store.data[locale][ns]) {
instance.addResourceBundle(
locale,
ns,
Expand Down

0 comments on commit bae5324

Please sign in to comment.