@bleedingdev/modern-js-plugin-i18n 3.11.3-ultramodern.16 → 3.11.3-ultramodern.18
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/cli/index.js +7 -5
- package/dist/cjs/cli/locales.js +7 -5
- package/dist/cjs/cli/localisedRoutes.js +7 -5
- package/dist/cjs/runtime/I18nLink.js +7 -5
- package/dist/cjs/runtime/Link.js +7 -5
- package/dist/cjs/runtime/canonicalRoutes.js +7 -5
- package/dist/cjs/runtime/context.js +7 -5
- package/dist/cjs/runtime/contextHelpers.js +7 -5
- package/dist/cjs/runtime/contexts.js +7 -5
- package/dist/cjs/runtime/core.js +7 -5
- package/dist/cjs/runtime/hooks.js +7 -5
- package/dist/cjs/runtime/i18n/backend/config.js +7 -5
- package/dist/cjs/runtime/i18n/backend/defaults.js +7 -5
- package/dist/cjs/runtime/i18n/backend/defaults.node.js +7 -5
- package/dist/cjs/runtime/i18n/backend/index.js +7 -5
- package/dist/cjs/runtime/i18n/backend/middleware.common.js +7 -5
- package/dist/cjs/runtime/i18n/backend/middleware.js +7 -5
- package/dist/cjs/runtime/i18n/backend/middleware.node.js +7 -5
- package/dist/cjs/runtime/i18n/backend/sdk-backend.js +7 -5
- package/dist/cjs/runtime/i18n/backend/sdk-event.js +7 -5
- package/dist/cjs/runtime/i18n/detection/cache.js +7 -5
- package/dist/cjs/runtime/i18n/detection/config.js +7 -5
- package/dist/cjs/runtime/i18n/detection/detector.js +7 -5
- package/dist/cjs/runtime/i18n/detection/index.js +7 -5
- package/dist/cjs/runtime/i18n/detection/initOptions.js +7 -5
- package/dist/cjs/runtime/i18n/detection/language.js +7 -5
- package/dist/cjs/runtime/i18n/detection/middleware.js +7 -5
- package/dist/cjs/runtime/i18n/detection/middleware.node.js +7 -5
- package/dist/cjs/runtime/i18n/detection/path.js +7 -5
- package/dist/cjs/runtime/i18n/detection/priority.js +7 -5
- package/dist/cjs/runtime/i18n/detection/ssr.js +7 -5
- package/dist/cjs/runtime/i18n/detection/types.js +7 -5
- package/dist/cjs/runtime/i18n/index.js +7 -5
- package/dist/cjs/runtime/i18n/instance.js +7 -5
- package/dist/cjs/runtime/i18n/react-i18next.js +7 -5
- package/dist/cjs/runtime/i18n/utils.js +7 -5
- package/dist/cjs/runtime/index.js +9 -16
- package/dist/cjs/runtime/linkHelpers.js +7 -5
- package/dist/cjs/runtime/localizedPaths.js +7 -5
- package/dist/cjs/runtime/navigation.js +7 -5
- package/dist/cjs/runtime/no-react-i18next.js +9 -16
- package/dist/cjs/runtime/pluginSetup.js +7 -5
- package/dist/cjs/runtime/providerComposition.js +7 -5
- package/dist/cjs/runtime/reactI18next.js +7 -5
- package/dist/cjs/runtime/routerAdapter.js +7 -5
- package/dist/cjs/runtime/sharedContexts.js +7 -5
- package/dist/cjs/runtime/types.js +7 -5
- package/dist/cjs/runtime/utils.js +7 -5
- package/dist/cjs/server/apiPrefix.js +7 -5
- package/dist/cjs/server/defaultUrlStrategy.js +7 -5
- package/dist/cjs/server/detectorOptions.js +7 -5
- package/dist/cjs/server/index.js +7 -5
- package/dist/cjs/server/mappedUrlStrategy.js +7 -5
- package/dist/cjs/server/redirectPolicy.js +7 -5
- package/dist/cjs/shared/deepMerge.js +7 -5
- package/dist/cjs/shared/detection.js +7 -5
- package/dist/cjs/shared/mappedUrlStrategy.js +7 -5
- package/dist/cjs/shared/type.js +7 -5
- package/dist/cjs/shared/urlStrategy.js +7 -5
- package/dist/cjs/shared/utils.js +7 -5
- package/dist/esm/runtime/context.mjs +2 -2
- package/dist/esm/runtime/index.mjs +1 -1
- package/dist/esm/server/index.mjs +1 -1
- package/dist/esm-node/runtime/context.mjs +2 -2
- package/dist/esm-node/runtime/index.mjs +1 -1
- package/dist/esm-node/server/index.mjs +1 -1
- package/package.json +12 -12
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import * as __rspack_external__modern_js_server_core_hono_0af3baa7 from "@modern-js/server-core/hono";
|
|
1
2
|
import { asI18nUrlStrategy } from "../shared/urlStrategy.mjs";
|
|
2
3
|
import { getLocaleDetectionOptions } from "../shared/utils.mjs";
|
|
3
4
|
import { collectApiPrefixes, matchesApiPrefix } from "./apiPrefix.mjs";
|
|
4
5
|
import { resolveDefaultUrlStrategy } from "./defaultUrlStrategy.mjs";
|
|
5
6
|
import { convertToHonoLanguageDetectorOptions } from "./detectorOptions.mjs";
|
|
6
7
|
import { buildLocalizedUrl, createLocaleRedirectResponse, getLanguageFromPath, isStaticResourceRequest, shouldIgnoreRedirect } from "./redirectPolicy.mjs";
|
|
7
|
-
import * as __rspack_external__modern_js_server_core_hono_0af3baa7 from "@modern-js/server-core/hono";
|
|
8
8
|
const { languageDetector } = __rspack_external__modern_js_server_core_hono_0af3baa7;
|
|
9
9
|
const i18nServerPlugin = (options)=>({
|
|
10
10
|
name: '@modern-js/plugin-i18n/server',
|
|
@@ -3,8 +3,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { RuntimeComponentResolverContext } from "@modern-js/runtime/context";
|
|
4
4
|
import { useCallback, useContext, useEffect, useMemo } from "react";
|
|
5
5
|
import { changeModernI18nLanguage, getPathLanguage, isI18nLanguageSupported, isI18nResourcesReady } from "./contextHelpers.mjs";
|
|
6
|
-
|
|
6
|
+
export { getActualI18nextInstance } from "./i18n/instance.mjs";
|
|
7
7
|
import { useI18nRouterAdapter } from "./routerAdapter.mjs";
|
|
8
|
+
import { ModernI18nContext, ReactI18nextProviderContext } from "./sharedContexts.mjs";
|
|
8
9
|
const ModernI18nProvider = ({ children, i18nextProvider, value })=>{
|
|
9
10
|
const content = /*#__PURE__*/ jsx(ModernI18nContext.Provider, {
|
|
10
11
|
value: value,
|
|
@@ -88,5 +89,4 @@ function useModernI18n() {
|
|
|
88
89
|
isResourcesReady
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
|
-
export { getActualI18nextInstance } from "./i18n/instance.mjs";
|
|
92
92
|
export { FederatedI18nBoundary, ModernI18nContext, ModernI18nProvider, ReactI18nextProviderContext, useModernI18n };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "node:module";
|
|
2
2
|
import { createI18nPlugin } from "./core.mjs";
|
|
3
|
-
import { getReactI18nextIntegration } from "./i18n/react-i18next.mjs";
|
|
4
3
|
export * from "./core.mjs";
|
|
4
|
+
import { getReactI18nextIntegration } from "./i18n/react-i18next.mjs";
|
|
5
5
|
const i18nPlugin = createI18nPlugin(getReactI18nextIntegration);
|
|
6
6
|
const runtime = i18nPlugin;
|
|
7
7
|
export default runtime;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
+
import * as __rspack_external__modern_js_server_core_hono_0af3baa7 from "@modern-js/server-core/hono";
|
|
2
3
|
import { asI18nUrlStrategy } from "../shared/urlStrategy.mjs";
|
|
3
4
|
import { getLocaleDetectionOptions } from "../shared/utils.mjs";
|
|
4
5
|
import { collectApiPrefixes, matchesApiPrefix } from "./apiPrefix.mjs";
|
|
5
6
|
import { resolveDefaultUrlStrategy } from "./defaultUrlStrategy.mjs";
|
|
6
7
|
import { convertToHonoLanguageDetectorOptions } from "./detectorOptions.mjs";
|
|
7
8
|
import { buildLocalizedUrl, createLocaleRedirectResponse, getLanguageFromPath, isStaticResourceRequest, shouldIgnoreRedirect } from "./redirectPolicy.mjs";
|
|
8
|
-
import * as __rspack_external__modern_js_server_core_hono_0af3baa7 from "@modern-js/server-core/hono";
|
|
9
9
|
const { languageDetector } = __rspack_external__modern_js_server_core_hono_0af3baa7;
|
|
10
10
|
const i18nServerPlugin = (options)=>({
|
|
11
11
|
name: '@modern-js/plugin-i18n/server',
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.11.3-ultramodern.
|
|
20
|
+
"version": "3.11.3-ultramodern.18",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
@@ -132,13 +132,13 @@
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
"dependencies": {
|
|
135
|
-
"@modern-js/i18n-runtime-extensions": "npm:@bleedingdev/modern-js-i18n-runtime-extensions@3.11.3-ultramodern.
|
|
136
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.11.3-ultramodern.
|
|
137
|
-
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.11.3-ultramodern.
|
|
138
|
-
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.11.3-ultramodern.
|
|
139
|
-
"@modern-js/server-runtime": "npm:@bleedingdev/modern-js-server-runtime@3.11.3-ultramodern.
|
|
140
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.11.3-ultramodern.
|
|
141
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.11.3-ultramodern.
|
|
135
|
+
"@modern-js/i18n-runtime-extensions": "npm:@bleedingdev/modern-js-i18n-runtime-extensions@3.11.3-ultramodern.18",
|
|
136
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.11.3-ultramodern.18",
|
|
137
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.11.3-ultramodern.18",
|
|
138
|
+
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.11.3-ultramodern.18",
|
|
139
|
+
"@modern-js/server-runtime": "npm:@bleedingdev/modern-js-server-runtime@3.11.3-ultramodern.18",
|
|
140
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.11.3-ultramodern.18",
|
|
141
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.11.3-ultramodern.18",
|
|
142
142
|
"@swc/helpers": "^0.5.24",
|
|
143
143
|
"i18next-browser-languagedetector": "^8.3.1",
|
|
144
144
|
"i18next-chained-backend": "^5.0.8",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"i18next-http-middleware": "^3.10.3"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
|
-
"@modern-js/runtime": "3.11.3-ultramodern.
|
|
150
|
+
"@modern-js/runtime": "3.11.3-ultramodern.18",
|
|
151
151
|
"i18next": ">=25.10.10",
|
|
152
152
|
"react": "^19.3.1",
|
|
153
153
|
"react-dom": "^19.3.1",
|
|
@@ -162,9 +162,9 @@
|
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
"devDependencies": {
|
|
165
|
-
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.11.3-ultramodern.
|
|
166
|
-
"@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.11.3-ultramodern.
|
|
167
|
-
"@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.11.3-ultramodern.
|
|
165
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.11.3-ultramodern.18",
|
|
166
|
+
"@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.11.3-ultramodern.18",
|
|
167
|
+
"@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.11.3-ultramodern.18",
|
|
168
168
|
"@rslib/core": "1.0.7",
|
|
169
169
|
"@scripts/rstest-config": "2.66.7",
|
|
170
170
|
"@types/node": "^26.6.6",
|