@modern-js/plugin-i18n 3.1.3-alpha.0 → 3.1.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/runtime/hooks.js +1 -1
- package/dist/esm/runtime/hooks.mjs +1 -1
- package/dist/esm-node/runtime/hooks.mjs +1 -1
- package/package.json +12 -12
- package/log/app/app.access.log +0 -0
- package/log/app.call.log +0 -0
- package/log/app.log +0 -0
- package/log/rpc/app.call.log +0 -3
|
@@ -31,8 +31,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
31
31
|
});
|
|
32
32
|
const runtime_namespaceObject = require("@modern-js/runtime");
|
|
33
33
|
const external_react_namespaceObject = require("react");
|
|
34
|
-
const index_js_namespaceObject = require("./i18n/detection/index.js");
|
|
35
34
|
const sdk_event_js_namespaceObject = require("./i18n/backend/sdk-event.js");
|
|
35
|
+
const index_js_namespaceObject = require("./i18n/detection/index.js");
|
|
36
36
|
const external_utils_js_namespaceObject = require("./utils.js");
|
|
37
37
|
function createMinimalI18nInstance(language) {
|
|
38
38
|
const minimalInstance = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isBrowser } from "@modern-js/runtime";
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
|
-
import { cacheUserLanguage } from "./i18n/detection/index.mjs";
|
|
4
3
|
import { I18N_SDK_RESOURCES_LOADED_EVENT, getI18nSdkBackendId } from "./i18n/backend/sdk-event.mjs";
|
|
4
|
+
import { cacheUserLanguage } from "./i18n/detection/index.mjs";
|
|
5
5
|
import { buildLocalizedUrl, detectLanguageFromPath, getEntryPath, getPathname, shouldIgnoreRedirect, useRouterHooks } from "./utils.mjs";
|
|
6
6
|
function createMinimalI18nInstance(language) {
|
|
7
7
|
const minimalInstance = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "node:module";
|
|
2
2
|
import { isBrowser } from "@modern-js/runtime";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
|
-
import { cacheUserLanguage } from "./i18n/detection/index.mjs";
|
|
5
4
|
import { I18N_SDK_RESOURCES_LOADED_EVENT, getI18nSdkBackendId } from "./i18n/backend/sdk-event.mjs";
|
|
5
|
+
import { cacheUserLanguage } from "./i18n/detection/index.mjs";
|
|
6
6
|
import { buildLocalizedUrl, detectLanguageFromPath, getEntryPath, getPathname, shouldIgnoreRedirect, useRouterHooks } from "./utils.mjs";
|
|
7
7
|
function createMinimalI18nInstance(language) {
|
|
8
8
|
const minimalInstance = {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.3
|
|
18
|
+
"version": "3.1.3",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=20"
|
|
21
21
|
},
|
|
@@ -85,19 +85,19 @@
|
|
|
85
85
|
"i18next-fs-backend": "^2.6.3",
|
|
86
86
|
"i18next-http-backend": "^3.0.2",
|
|
87
87
|
"i18next-http-middleware": "^3.9.2",
|
|
88
|
-
"@modern-js/plugin": "3.1.
|
|
89
|
-
"@modern-js/runtime-utils": "3.1.
|
|
90
|
-
"@modern-js/server-core": "3.1.
|
|
91
|
-
"@modern-js/
|
|
92
|
-
"@modern-js/
|
|
93
|
-
"@modern-js/utils": "3.1.
|
|
88
|
+
"@modern-js/plugin": "3.1.3",
|
|
89
|
+
"@modern-js/runtime-utils": "3.1.3",
|
|
90
|
+
"@modern-js/server-core": "3.1.3",
|
|
91
|
+
"@modern-js/types": "3.1.3",
|
|
92
|
+
"@modern-js/server-runtime": "3.1.3",
|
|
93
|
+
"@modern-js/utils": "3.1.3"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"react": ">=17.0.2",
|
|
97
97
|
"react-dom": ">=17.0.2",
|
|
98
98
|
"i18next": ">=25.7.4",
|
|
99
99
|
"react-i18next": ">=15.7.4",
|
|
100
|
-
"@modern-js/runtime": "^3.1.
|
|
100
|
+
"@modern-js/runtime": "^3.1.3"
|
|
101
101
|
},
|
|
102
102
|
"peerDependenciesMeta": {
|
|
103
103
|
"i18next": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@rslib/core": "0.
|
|
111
|
+
"@rslib/core": "0.21.0",
|
|
112
112
|
"@types/node": "^20",
|
|
113
113
|
"i18next": "25.7.4",
|
|
114
114
|
"react": "^19.2.4",
|
|
@@ -116,9 +116,9 @@
|
|
|
116
116
|
"react-i18next": "15.7.4",
|
|
117
117
|
"ts-node": "^10.9.2",
|
|
118
118
|
"typescript": "^5",
|
|
119
|
-
"@modern-js/app-tools": "3.1.
|
|
120
|
-
"@modern-js/
|
|
121
|
-
"@modern-js/
|
|
119
|
+
"@modern-js/app-tools": "3.1.3",
|
|
120
|
+
"@modern-js/rslib": "2.68.10",
|
|
121
|
+
"@modern-js/runtime": "3.1.3"
|
|
122
122
|
},
|
|
123
123
|
"sideEffects": false,
|
|
124
124
|
"publishConfig": {
|
package/log/app/app.access.log
DELETED
|
File without changes
|
package/log/app.call.log
DELETED
|
File without changes
|
package/log/app.log
DELETED
|
File without changes
|
package/log/rpc/app.call.log
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
TRACE 2025-11-11 14:57:06,552 v1(7) call.js:0 10.91.112.88 - 021762844226351fe800000000000000cf9cee0d62d65ddb132e8 default - - psm=- spanId=311573918650071 parentSpanId=0 costInUs=177889 remoteMethod=byted_service_fetch_unknown_to_method remoteCluster=default remoteService=galaxy-api.bytedance.net remoteAddress=- statusCode=200 startAt=1762844226373111 env=prod stress_tag=- to=galaxy-api.bytedance.net to_cluster=default to_idc=- retry=0 http.method=GET http.url=/auth/api/v1/jwt http.host=galaxy-api.bytedance.net http.status_code=200 http.param= mesh=0 to_env=prod remote_protocol=https sampled=true localMethod=byted_service_fetch_unknown_to_method type=rpcCall
|
|
2
|
-
TRACE 2025-11-11 14:57:40,453 v1(7) call.js:0 10.91.112.88 - 021762844260256fe800000000000000cf9cee0d62d65dd47eac7 default - - psm=- spanId=911184692546025 parentSpanId=0 costInUs=175395 remoteMethod=byted_service_fetch_unknown_to_method remoteCluster=default remoteService=galaxy-api.bytedance.net remoteAddress=- statusCode=200 startAt=1762844260276605 env=prod stress_tag=- to=galaxy-api.bytedance.net to_cluster=default to_idc=- retry=0 http.method=GET http.url=/auth/api/v1/jwt http.host=galaxy-api.bytedance.net http.status_code=200 http.param= mesh=0 to_env=prod remote_protocol=https sampled=true localMethod=byted_service_fetch_unknown_to_method type=rpcCall
|
|
3
|
-
TRACE 2025-11-11 14:58:01,872 v1(7) call.js:0 10.91.112.88 - 021762844281704fe800000000000000cf9cee0d62d65ddc5dbdc default - - psm=- spanId=1584335362867424 parentSpanId=0 costInUs=146941 remoteMethod=byted_service_fetch_unknown_to_method remoteCluster=default remoteService=galaxy-api.bytedance.net remoteAddress=- statusCode=200 startAt=1762844281724059 env=prod stress_tag=- to=galaxy-api.bytedance.net to_cluster=default to_idc=- retry=0 http.method=GET http.url=/auth/api/v1/jwt http.host=galaxy-api.bytedance.net http.status_code=200 http.param= mesh=0 to_env=prod remote_protocol=https sampled=true localMethod=byted_service_fetch_unknown_to_method type=rpcCall
|