We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b72a96 commit 08d8c9bCopy full SHA for 08d8c9b
1 file changed
src/i18n.js
@@ -62,8 +62,13 @@ const resources = {
62
},
63
};
64
65
-i18n
66
- .use(LanguageDetector)
+const i18nInstance = i18n;
+
67
+if (typeof window !== "undefined") {
68
+ i18nInstance.use(LanguageDetector);
69
+}
70
71
+i18nInstance
72
.use(initReactI18next)
73
.init({
74
resources,
@@ -80,4 +85,4 @@ i18n
80
85
81
86
});
82
87
83
-export default i18n;
88
+export default i18nInstance;
0 commit comments