@koine/i18n 2.0.0-beta.209 → 2.0.0-beta.210
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.
|
@@ -45,7 +45,7 @@ export const I18nTranslateContext = createContext<I18nTranslateContextValue>({
|
|
|
45
45
|
import React, { useContext } from "react";
|
|
46
46
|
import type { I18nUtils } from "./internal/types";
|
|
47
47
|
import { I18nTranslateContext } from "./internal/I18nTranslateContext";
|
|
48
|
-
import {
|
|
48
|
+
import { setLocale } from "./setLocale";
|
|
49
49
|
import { createT } from "./createT";
|
|
50
50
|
import { defaultLocale } from "./defaultLocale";
|
|
51
51
|
import type { I18n } from "./types";
|
|
@@ -69,7 +69,7 @@ export const I18nTranslateProvider = ({
|
|
|
69
69
|
// (the "rsc" webpack layer), while here we set it in a client component (the
|
|
70
70
|
// "ssr" webpack layer) making the locale available in all client components
|
|
71
71
|
// and in the webpack-define implementation
|
|
72
|
-
|
|
72
|
+
setLocale(locale);${createAdapter.createGenerator.log(t, "I18nTranslateProvider", "setLocale", "locale")}
|
|
73
73
|
|
|
74
74
|
const parentCtx = useContext(I18nTranslateContext);
|
|
75
75
|
const _d = { ...parentCtx._d, ...dictionaries };
|
|
@@ -43,7 +43,7 @@ export const I18nTranslateContext = createContext<I18nTranslateContextValue>({
|
|
|
43
43
|
import React, { useContext } from "react";
|
|
44
44
|
import type { I18nUtils } from "./internal/types";
|
|
45
45
|
import { I18nTranslateContext } from "./internal/I18nTranslateContext";
|
|
46
|
-
import {
|
|
46
|
+
import { setLocale } from "./setLocale";
|
|
47
47
|
import { createT } from "./createT";
|
|
48
48
|
import { defaultLocale } from "./defaultLocale";
|
|
49
49
|
import type { I18n } from "./types";
|
|
@@ -67,7 +67,7 @@ export const I18nTranslateProvider = ({
|
|
|
67
67
|
// (the "rsc" webpack layer), while here we set it in a client component (the
|
|
68
68
|
// "ssr" webpack layer) making the locale available in all client components
|
|
69
69
|
// and in the webpack-define implementation
|
|
70
|
-
|
|
70
|
+
setLocale(locale);${createGenerator.log(t, "I18nTranslateProvider", "setLocale", "locale")}
|
|
71
71
|
|
|
72
72
|
const parentCtx = useContext(I18nTranslateContext);
|
|
73
73
|
const _d = { ...parentCtx._d, ...dictionaries };
|
package/package.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"node": ">=18.0.0"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@koine/dom": "2.0.0-beta.
|
|
9
|
-
"@koine/node": "2.0.0-beta.
|
|
10
|
-
"@koine/utils": "2.0.0-beta.
|
|
8
|
+
"@koine/dom": "2.0.0-beta.210",
|
|
9
|
+
"@koine/node": "2.0.0-beta.210",
|
|
10
|
+
"@koine/utils": "2.0.0-beta.210",
|
|
11
11
|
"comment-json": "^4.2.4",
|
|
12
12
|
"consola": "^3.2.3",
|
|
13
13
|
"glob": "^11.0.0",
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
"module": "./index.esm.js",
|
|
131
131
|
"main": "./index.cjs.js",
|
|
132
132
|
"types": "./index.d.ts",
|
|
133
|
-
"version": "2.0.0-beta.
|
|
133
|
+
"version": "2.0.0-beta.210"
|
|
134
134
|
}
|