@rpcbase/client 0.141.0 → 0.145.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 +14 -3
package/i18next.js
CHANGED
|
@@ -6,12 +6,12 @@ import resourcesToBackend from "i18next-resources-to-backend"
|
|
|
6
6
|
|
|
7
7
|
import getLocaleFromCode from "@rpcbase/std/get_locale_from_code"
|
|
8
8
|
|
|
9
|
-
import {RB_DEFAULT_LOCALE,
|
|
9
|
+
import {RB_DEFAULT_LOCALE, RB_LOCALES} from "env"
|
|
10
10
|
|
|
11
11
|
const LOCALE_KEY = "rb.i18n_locale"
|
|
12
12
|
|
|
13
13
|
const DEFAULT_LOCALE = RB_DEFAULT_LOCALE || "en"
|
|
14
|
-
const SUPPORTED_LOCALES = !!
|
|
14
|
+
const SUPPORTED_LOCALES = !!RB_LOCALES ? RB_LOCALES.split(",").map((l) => l.trim()) : ["en"]
|
|
15
15
|
|
|
16
16
|
// https://github.com/i18next/i18next-browser-languageDetector
|
|
17
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.145.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"test": "../../node_modules/.bin/wireit"
|
|
6
6
|
},
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"wireit": {
|
|
11
11
|
"install": {
|
|
12
12
|
"command": "NODE_ENV=development yarn install --mutex network --frozen-lockfile",
|
|
13
|
-
"files": [
|
|
13
|
+
"files": [
|
|
14
|
+
"yarn.lock"
|
|
15
|
+
],
|
|
14
16
|
"output": [
|
|
15
17
|
"node_modules/"
|
|
16
18
|
],
|
|
@@ -45,6 +47,10 @@
|
|
|
45
47
|
},
|
|
46
48
|
"apply-version": {
|
|
47
49
|
"command": "node ../../scripts/prflow/apply-prerelease-versions.js $BRANCH_NAME",
|
|
50
|
+
"files": [
|
|
51
|
+
"package.json"
|
|
52
|
+
],
|
|
53
|
+
"output": [],
|
|
48
54
|
"env": {
|
|
49
55
|
"BRANCH_NAME": {
|
|
50
56
|
"external": true
|
|
@@ -62,7 +68,12 @@
|
|
|
62
68
|
],
|
|
63
69
|
"output": [
|
|
64
70
|
"publish-output.txt"
|
|
65
|
-
]
|
|
71
|
+
],
|
|
72
|
+
"env": {
|
|
73
|
+
"NPM_RELEASE_CHANNEL": {
|
|
74
|
+
"external": true
|
|
75
|
+
}
|
|
76
|
+
}
|
|
66
77
|
}
|
|
67
78
|
},
|
|
68
79
|
"dependencies": {
|