@rpcbase/client 0.90.0 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/i18next.js +2 -2
- package/package.json +1 -1
package/i18next.js
CHANGED
|
@@ -11,7 +11,7 @@ import {RB_DEFAULT_LOCALE, RB_SUPPORTED_LOCALES} from "env"
|
|
|
11
11
|
const LOCALE_KEY = "rb.i18n_locale"
|
|
12
12
|
|
|
13
13
|
const DEFAULT_LOCALE = RB_DEFAULT_LOCALE || "en"
|
|
14
|
-
const SUPPORTED_LOCALES = RB_SUPPORTED_LOCALES
|
|
14
|
+
const SUPPORTED_LOCALES = !!RB_SUPPORTED_LOCALES ? RB_SUPPORTED_LOCALES.split(",").map((l) => l.trim()) : ["en"]
|
|
15
15
|
|
|
16
16
|
// https://github.com/i18next/i18next-browser-languageDetector
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@ if (!locale) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// Do not call this code directly, it is injected from babel-plugin-i18next-client by the bundler
|
|
25
|
-
export default (
|
|
25
|
+
export default () => {
|
|
26
26
|
|
|
27
27
|
i18n
|
|
28
28
|
.use(ChainedBackend)
|