next-intlayer 9.5.12 → 9.7.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/dist/esm/rsc/index.mjs
CHANGED
|
@@ -3,15 +3,15 @@ import { IntlayerClientProvider } from "../client/IntlayerClientProvider.mjs";
|
|
|
3
3
|
import { usePathname } from "../client/usePathname.mjs";
|
|
4
4
|
import { useLocalePageRouter } from "../client/useLocalePageRouter.mjs";
|
|
5
5
|
import { useRewriteURL } from "../client/useRewriteURL.mjs";
|
|
6
|
+
import { useIntlayer } from "../server/useIntlayer.mjs";
|
|
7
|
+
import { useIntl } from "../server/useIntl.mjs";
|
|
8
|
+
import { useDictionaryDynamic } from "../server/useDictionaryDynamic.mjs";
|
|
9
|
+
import { useLocale } from "../server/useLocale.mjs";
|
|
6
10
|
import { IntlayerProvider } from "../server/IntlayerProvider.mjs";
|
|
7
11
|
import { t } from "../server/t.mjs";
|
|
8
12
|
import { useDictionary } from "../server/useDictionary.mjs";
|
|
9
13
|
import { useDictionaryAsync } from "../server/useDictionaryAsync.mjs";
|
|
10
|
-
import { useDictionaryDynamic } from "../server/useDictionaryDynamic.mjs";
|
|
11
14
|
import { useI18n } from "../server/useI18n.mjs";
|
|
12
|
-
import { useIntl } from "../server/useIntl.mjs";
|
|
13
|
-
import { useIntlayer } from "../server/useIntlayer.mjs";
|
|
14
|
-
import { useLocale } from "../server/useLocale.mjs";
|
|
15
15
|
import { IntlayerClientContext, getDictionary, getIntlayer, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage } from "react-intlayer";
|
|
16
16
|
import { useLoadDynamic } from "react-intlayer/server";
|
|
17
17
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getLocale } from "./getLocale.mjs";
|
|
2
2
|
import { createSuspendingReader } from "./suspendingReader.mjs";
|
|
3
|
-
import { IntlayerServer, getServerContext } from "react-intlayer/server";
|
|
4
3
|
import { registerAsyncAmbientLocaleResolver } from "@intlayer/core/interpreter";
|
|
4
|
+
import { IntlayerServer, getServerContext } from "react-intlayer/server";
|
|
5
5
|
|
|
6
6
|
//#region src/server/ambientLocale.ts
|
|
7
7
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { withIntlayer, withIntlayerSync } from "./withIntlayer.mjs";
|
|
1
2
|
import { getLocale } from "./getLocale.mjs";
|
|
3
|
+
import { useIntlayer } from "./useIntlayer.mjs";
|
|
4
|
+
import { useIntl } from "./useIntl.mjs";
|
|
5
|
+
import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
|
|
6
|
+
import { useLocale } from "./useLocale.mjs";
|
|
2
7
|
import { IntlayerProvider } from "./IntlayerProvider.mjs";
|
|
8
|
+
import { IntlayerServerProvider } from "./IntlayerServerProvider.mjs";
|
|
3
9
|
import { t } from "./t.mjs";
|
|
4
10
|
import { useDictionary } from "./useDictionary.mjs";
|
|
5
11
|
import { useDictionaryAsync } from "./useDictionaryAsync.mjs";
|
|
6
|
-
import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
|
|
7
12
|
import { useI18n } from "./useI18n.mjs";
|
|
8
|
-
import { useIntl } from "./useIntl.mjs";
|
|
9
|
-
import { useIntlayer } from "./useIntlayer.mjs";
|
|
10
|
-
import { useLocale } from "./useLocale.mjs";
|
|
11
|
-
import { withIntlayer, withIntlayerSync } from "./withIntlayer.mjs";
|
|
12
|
-
import { IntlayerServerProvider } from "./IntlayerServerProvider.mjs";
|
|
13
13
|
import { getServerContext, locale, setLocale, setVariant, useLoadDynamic } from "react-intlayer/server";
|
|
14
14
|
|
|
15
15
|
export { IntlayerProvider, IntlayerServerProvider, getLocale, getServerContext, locale, setLocale, setVariant, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntl, useIntlayer, useLoadDynamic, useLocale, withIntlayer, withIntlayerSync };
|
|
@@ -6,8 +6,8 @@ import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
|
6
6
|
import { getConfiguration } from "@intlayer/config/node";
|
|
7
7
|
import { compareVersions, getAlias, getHasDictionarySelector, getProjectRequire, getUnusedNodeTypes, normalizePath } from "@intlayer/config/utils";
|
|
8
8
|
import { buildComponentFilesList, runOnce, startContentWatcher } from "@intlayer/engine/utils";
|
|
9
|
-
import { COMPILER_ENABLED, IMPORT_MODE } from "@intlayer/config/defaultValues";
|
|
10
9
|
import { toSwcExtraCallers } from "@intlayer/config/callers";
|
|
10
|
+
import { COMPILER_ENABLED, IMPORT_MODE } from "@intlayer/config/defaultValues";
|
|
11
11
|
import { formatDictionarySelectorEnvVar, formatNodeTypeToEnvVar, formatOptimizedNestingEnvVar, getConfigEnvVars } from "@intlayer/config/envVars";
|
|
12
12
|
import { getNestedDictionaryGraph } from "@intlayer/core/dictionaryManipulator";
|
|
13
13
|
import { getDictionaries } from "@intlayer/dictionaries-entry";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-intlayer",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Simplify internationalization i18n in Next.js with context providers, hooks, locale detection, and multilingual content integration.",
|
|
6
6
|
"keywords": [
|
|
@@ -147,17 +147,17 @@
|
|
|
147
147
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"@intlayer/config": "9.
|
|
151
|
-
"@intlayer/core": "9.
|
|
152
|
-
"@intlayer/dictionaries-entry": "9.
|
|
153
|
-
"@intlayer/engine": "9.
|
|
154
|
-
"@intlayer/types": "9.
|
|
150
|
+
"@intlayer/config": "9.7.0",
|
|
151
|
+
"@intlayer/core": "9.7.0",
|
|
152
|
+
"@intlayer/dictionaries-entry": "9.7.0",
|
|
153
|
+
"@intlayer/engine": "9.7.0",
|
|
154
|
+
"@intlayer/types": "9.7.0",
|
|
155
155
|
"defu": "6.1.7",
|
|
156
156
|
"node-loader": "2.1.0",
|
|
157
|
-
"react-intlayer": "9.
|
|
157
|
+
"react-intlayer": "9.7.0"
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
|
-
"@types/node": "^
|
|
160
|
+
"@types/node": "^26",
|
|
161
161
|
"@types/react": ">=16.0.0",
|
|
162
162
|
"@types/react-dom": ">=16.0.0",
|
|
163
163
|
"@utils/ts-config": "1.0.4",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"rimraf": "6.1.3",
|
|
167
167
|
"tsdown": "0.23.0",
|
|
168
168
|
"typescript": "7.0.2",
|
|
169
|
-
"vitest": "5.0.
|
|
169
|
+
"vitest": "5.0.3"
|
|
170
170
|
},
|
|
171
171
|
"peerDependencies": {
|
|
172
172
|
"next": ">=14.0.0",
|