-
-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow client side translation loading (#1726)
* feat: allow client side translation loading * use typeof window instead of process.browser * update deps * update react-i18next * update i18next dep * Update src/appWithTranslation.tsx Co-authored-by: Isaac Hinman <[email protected]> * use older next.js version also in this example * update react-i18next * update react-i18next * move client-loading example out of here * remove extra readme * revert simple/yarn.lock * Update src/appWithTranslation.client.test.tsx Co-authored-by: Isaac Hinman <[email protected]> * Update src/appWithTranslation.tsx Co-authored-by: Isaac Hinman <[email protected]> * bring back missing test for configOverride.resources * next version seems to be major * update react-i18next Co-authored-by: Isaac Hinman <[email protected]>
- Loading branch information
1 parent
7bbefd9
commit 8132efd
Showing
6 changed files
with
167 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1874,12 +1874,12 @@ [email protected]: | |
agent-base "6" | ||
debug "4" | ||
|
||
i18next-fs-backend@^1.0.7: | ||
version "1.0.7" | ||
resolved "https://registry.yarnpkg.com/i18next-fs-backend/-/i18next-fs-backend-1.0.7.tgz#00ca4587e306f8948740408389dda73461a5d07f" | ||
integrity sha512-aAZ3rvshe1Zbl6JSCWrWWqbZS5JpmVNG+84YqLcgdYcm9uAxzw4xWxnA/a3044Nm2PKXE62CT+pIZjk7OEYtTw== | ||
i18next-fs-backend@^1.1.4: | ||
version "1.1.4" | ||
resolved "https://registry.yarnpkg.com/i18next-fs-backend/-/i18next-fs-backend-1.1.4.tgz#d0e9b9ed2fa7a0f11002d82b9fa69c3c3d6482da" | ||
integrity sha512-/MfAGMP0jHonV966uFf9PkWWuDjPYLIcsipnSO3NxpNtAgRUKLTwvm85fEmsF6hGeu0zbZiCQ3W74jwO6K9uXA== | ||
|
||
i18next@^21.6.12: | ||
i18next@^21.6.14: | ||
version "21.6.14" | ||
resolved "https://registry.yarnpkg.com/i18next/-/i18next-21.6.14.tgz#2bc199fba7f4da44b5952d7df0a3814a6e5c3943" | ||
integrity sha512-XL6WyD+xlwQwbieXRlXhKWoLb/rkch50/rA+vl6untHnJ+aYnkQ0YDZciTWE78PPhOpbi2gR0LTJCJpiAhA+uQ== | ||
|
@@ -2483,15 +2483,8 @@ neo-async@^2.5.0, neo-async@^2.6.1, neo-async@^2.6.2: | |
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== | ||
|
||
"next-i18next@link:../..": | ||
version "10.5.0" | ||
dependencies: | ||
"@babel/runtime" "^7.13.17" | ||
"@types/hoist-non-react-statics" "^3.3.1" | ||
core-js "^3" | ||
hoist-non-react-statics "^3.2.0" | ||
i18next "^21.6.12" | ||
i18next-fs-backend "^1.0.7" | ||
react-i18next "^11.15.5" | ||
version "0.0.0" | ||
uid "" | ||
|
||
next-tick@~1.0.0: | ||
version "1.0.0" | ||
|
@@ -3080,7 +3073,7 @@ rc@^1.2.7: | |
minimist "^1.2.0" | ||
strip-json-comments "~2.0.1" | ||
|
||
react-i18next@^11.15.5: | ||
react-i18next@^11.16.1: | ||
version "11.16.2" | ||
resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-11.16.2.tgz#650b18c12a624057ee2651ba4b4a989b526be554" | ||
integrity sha512-1iuZduvARUelL5ux663FvIoDZExwFO+9QtRAAt4uvs1/aun4cUZt8XBrVg7iiDgNls9cOSORAhE7Ri5KA9RMvg== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters