@next-core/i18n 2.0.1-alpha.0 → 2.0.2-alpha.3
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/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -2
- package/package.json +7 -7
package/dist/cjs/index.js
CHANGED
|
@@ -33,5 +33,6 @@ Object.keys(_text).forEach(function (key) {
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
|
+
// Todo(steve): browser compatibility for new version of i18next
|
|
36
37
|
const i18n = exports.i18n = process.env.NODE_ENV === "test" ? _i18next.default : /* istanbul ignore next */_i18next.default.default;
|
|
37
38
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_i18next","_interopRequireDefault","require","_init","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_text","i18n","process","env","NODE_ENV","i18next","default"],"sources":["../../src/index.ts"],"sourcesContent":["import i18next from \"i18next\";\n\nexport const i18n =\n process.env.NODE_ENV === \"test\"\n ?
|
|
1
|
+
{"version":3,"file":"index.js","names":["_i18next","_interopRequireDefault","require","_init","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_text","i18n","process","env","NODE_ENV","i18next","default"],"sources":["../../src/index.ts"],"sourcesContent":["import i18next from \"i18next\";\n// Todo(steve): browser compatibility for new version of i18next\nexport const i18n =\n process.env.NODE_ENV === \"test\"\n ? i18next\n : /* istanbul ignore next */ (\n i18next as unknown as { default: typeof i18next }\n ).default;\n\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AASA,IAAAC,KAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,KAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,KAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,KAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,KAAA,GAAAd,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAW,KAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,KAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,KAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AATA;AACO,MAAMU,IAAI,GAAAL,OAAA,CAAAK,IAAA,GACfC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM,GAC3BC,gBAAO,GACP,0BACEA,gBAAO,CACPC,OAAO","ignoreList":[]}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["i18next","i18n","process","env","NODE_ENV","default"],"sources":["../../src/index.ts"],"sourcesContent":["import i18next from \"i18next\";\n\nexport const i18n =\n process.env.NODE_ENV === \"test\"\n ?
|
|
1
|
+
{"version":3,"file":"index.js","names":["i18next","i18n","process","env","NODE_ENV","default"],"sources":["../../src/index.ts"],"sourcesContent":["import i18next from \"i18next\";\n// Todo(steve): browser compatibility for new version of i18next\nexport const i18n =\n process.env.NODE_ENV === \"test\"\n ? i18next\n : /* istanbul ignore next */ (\n i18next as unknown as { default: typeof i18next }\n ).default;\n\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,SAAS;AAC7B;AACA,OAAO,MAAMC,IAAI,GACfC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM,GAC3BJ,OAAO,GACP,0BACEA,OAAO,CACPK,OAAO;AAEf,cAAc,WAAW;AACzB,cAAc,WAAW","ignoreList":[]}
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/i18n",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2-alpha.3",
|
|
4
4
|
"description": "Internationalization for next bricks",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/i18n",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@next-core/types": "^1.14.0",
|
|
45
|
-
"@next-core/utils": "^1.7.
|
|
46
|
-
"i18next": "^
|
|
47
|
-
"i18next-browser-languagedetector": "^
|
|
45
|
+
"@next-core/utils": "^1.7.31-alpha.0",
|
|
46
|
+
"i18next": "^23.16.8",
|
|
47
|
+
"i18next-browser-languagedetector": "^8.0.2",
|
|
48
48
|
"react": "^19.0.0",
|
|
49
|
-
"react-i18next": "^
|
|
49
|
+
"react-i18next": "^15.4.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@next-core/build-next-libs": "^1.0.22",
|
|
53
|
-
"@next-core/test-next": "^1.1.
|
|
53
|
+
"@next-core/test-next": "^1.1.8-alpha.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "31601bf1179aa7359938c2154193c6e3b52f7bfe"
|
|
56
56
|
}
|