next-intlayer 9.5.1 → 9.5.2
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 +5 -5
- package/dist/esm/server/index.mjs +6 -6
- package/dist/types/@intlayer/babel/dist/types/babel-plugin-intlayer-extract.d.ts +1 -1
- package/dist/types/@intlayer/babel/dist/types/babel-plugin-intlayer-purge.d.ts +2 -2
- package/dist/types/@intlayer/babel/dist/types/extractContent/contentWriter.d.ts +2 -2
- package/dist/types/@intlayer/babel/dist/types/extractContent/extractContent.d.ts +2 -2
- package/dist/types/@intlayer/babel/dist/types/extractContent/utils/extractDictionaryInfo.d.ts +1 -1
- package/dist/types/generateStaticParams.d.ts +2 -1
- package/dist/types/generateStaticParams.d.ts.map +1 -1
- package/dist/types/intlayer/dist/types/index.d.ts +14 -0
- package/dist/types/server/prepareSwcOptimization.d.ts +1 -1
- package/dist/types/server/useDictionary.d.ts +1 -1
- package/dist/types/server/useDictionaryAsync.d.ts +1 -1
- package/dist/types/server/useDictionaryDynamic.d.ts +1 -1
- package/package.json +8 -8
package/dist/esm/rsc/index.mjs
CHANGED
|
@@ -3,15 +3,15 @@ import { usePathname } from "../client/usePathname.mjs";
|
|
|
3
3
|
import { useLocalePageRouter } from "../client/useLocalePageRouter.mjs";
|
|
4
4
|
import { useRewriteURL } from "../client/useRewriteURL.mjs";
|
|
5
5
|
import { generateStaticParams } from "../generateStaticParams.mjs";
|
|
6
|
-
import { IntlayerProvider } from "../server/IntlayerProvider.mjs";
|
|
7
6
|
import { t } from "../server/t.mjs";
|
|
8
|
-
import { useDictionary } from "../server/useDictionary.mjs";
|
|
9
|
-
import { useDictionaryAsync } from "../server/useDictionaryAsync.mjs";
|
|
10
|
-
import { useDictionaryDynamic } from "../server/useDictionaryDynamic.mjs";
|
|
11
7
|
import { useI18n } from "../server/useI18n.mjs";
|
|
12
|
-
import { useIntl } from "../server/useIntl.mjs";
|
|
13
8
|
import { useIntlayer } from "../server/useIntlayer.mjs";
|
|
9
|
+
import { useDictionaryAsync } from "../server/useDictionaryAsync.mjs";
|
|
14
10
|
import { useLocale } from "../server/useLocale.mjs";
|
|
11
|
+
import { IntlayerProvider } from "../server/IntlayerProvider.mjs";
|
|
12
|
+
import { useIntl } from "../server/useIntl.mjs";
|
|
13
|
+
import { useDictionaryDynamic } from "../server/useDictionaryDynamic.mjs";
|
|
14
|
+
import { useDictionary } from "../server/useDictionary.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,15 +1,15 @@
|
|
|
1
|
-
import { IntlayerProvider } from "./IntlayerProvider.mjs";
|
|
2
1
|
import { getLocale } from "./getLocale.mjs";
|
|
3
2
|
import { t } from "./t.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { useDictionaryAsync } from "./useDictionaryAsync.mjs";
|
|
6
|
-
import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
|
|
3
|
+
import { withIntlayer, withIntlayerSync } from "./withIntlayer.mjs";
|
|
7
4
|
import { useI18n } from "./useI18n.mjs";
|
|
8
|
-
import { useIntl } from "./useIntl.mjs";
|
|
9
5
|
import { useIntlayer } from "./useIntlayer.mjs";
|
|
6
|
+
import { useDictionaryAsync } from "./useDictionaryAsync.mjs";
|
|
10
7
|
import { useLocale } from "./useLocale.mjs";
|
|
11
|
-
import {
|
|
8
|
+
import { IntlayerProvider } from "./IntlayerProvider.mjs";
|
|
9
|
+
import { useIntl } from "./useIntl.mjs";
|
|
10
|
+
import { useDictionaryDynamic } from "./useDictionaryDynamic.mjs";
|
|
12
11
|
import { IntlayerServerProvider } from "./IntlayerServerProvider.mjs";
|
|
12
|
+
import { useDictionary } from "./useDictionary.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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
1
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
2
3
|
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@babel+core@8.0.1/node_modules/@babel/core/lib/index.js";
|
|
3
4
|
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@babel+types@8.0.4/node_modules/@babel/types/lib/index.js";
|
|
4
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
5
|
import "@intlayer/types/filePathPattern";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./pruneContext.js";
|
|
2
2
|
import "./babel-plugin-intlayer-usage-analyzer.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
4
|
import "@intlayer/core/dictionaryManipulator";
|
|
4
5
|
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@babel+core@8.0.1/node_modules/@babel/core/lib/index.js";
|
|
5
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@babel+types@8.0.4/node_modules/@babel/types/lib/index.js";
|
|
6
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
6
|
+
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@babel+types@8.0.4/node_modules/@babel/types/lib/index.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./utils/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
+
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Locale } from "./intlayer/dist/types/index.js";
|
|
1
2
|
//#region src/generateStaticParams.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Generates static parameters for Next.js's dynamic routes based on the configured locales.
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
* ```
|
|
19
20
|
*/
|
|
20
21
|
export declare const generateStaticParams: () => {
|
|
21
|
-
locale:
|
|
22
|
+
locale: Locale;
|
|
22
23
|
}[];
|
|
23
24
|
//#endregion
|
|
24
25
|
//# sourceMappingURL=generateStaticParams.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateStaticParams.d.ts","names":[],"sources":["../../src/generateStaticParams.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generateStaticParams.d.ts","names":[],"sources":["../../src/generateStaticParams.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAsBa;UAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DeclaredLocales } from "@intlayer/types/module_augmentation";
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
+
import { Locale as Locale$1 } from "@intlayer/types/allLocales";
|
|
5
|
+
import "@intlayer/types/locales";
|
|
6
|
+
import "@intlayer/config/built";
|
|
7
|
+
import "@intlayer/core/file";
|
|
8
|
+
import "@intlayer/core/formatters";
|
|
9
|
+
import "@intlayer/core/interpreter";
|
|
10
|
+
import "@intlayer/core/localization";
|
|
11
|
+
import "@intlayer/core/markdown";
|
|
12
|
+
import "@intlayer/core/transpiler";
|
|
13
|
+
import "@intlayer/core/utils";
|
|
14
|
+
export type { Locale$1 as Locale };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SerializedFieldRenameMap } from "../@intlayer/babel/dist/types/babel-plugin-intlayer-field-rename.js";
|
|
2
2
|
import "../@intlayer/babel/dist/types/index.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
4
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
5
|
import { CallerDescriptor } from "@intlayer/config/callers";
|
|
5
6
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
6
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
7
7
|
//#region src/server/prepareSwcOptimization.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Field-rename tables keyed by dictionary key, forwarded to the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import { useDictionary as useDictionary$1 } from "react-intlayer/server";
|
|
3
2
|
import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup } from "@intlayer/types/dictionary";
|
|
3
|
+
import { useDictionary as useDictionary$1 } from "react-intlayer/server";
|
|
4
4
|
//#region src/server/useDictionary.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* On the server side, hook that transforms a dictionary (or qualified
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeclaredLocales, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import { useDictionaryAsync as useDictionaryAsync$1 } from "react-intlayer/server";
|
|
3
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { useDictionaryAsync as useDictionaryAsync$1 } from "react-intlayer/server";
|
|
4
4
|
//#region src/server/useDictionaryAsync.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* On the server side, hook that transforms a dictionary and returns the content
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeclaredLocales, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
|
|
2
|
-
import { useDictionaryDynamic as useDictionaryDynamic$1 } from "react-intlayer/server";
|
|
3
2
|
import { Dictionary, DictionarySelector } from "@intlayer/types/dictionary";
|
|
3
|
+
import { useDictionaryDynamic as useDictionaryDynamic$1 } from "react-intlayer/server";
|
|
4
4
|
import { QualifiedDynamicLoaderMap } from "@intlayer/core/dictionaryManipulator";
|
|
5
5
|
//#region src/server/useDictionaryDynamic.d.ts
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-intlayer",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.2",
|
|
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": [
|
|
@@ -146,17 +146,17 @@
|
|
|
146
146
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
147
147
|
},
|
|
148
148
|
"dependencies": {
|
|
149
|
-
"@intlayer/config": "9.5.
|
|
150
|
-
"@intlayer/core": "9.5.
|
|
151
|
-
"@intlayer/dictionaries-entry": "9.5.
|
|
152
|
-
"@intlayer/engine": "9.5.
|
|
153
|
-
"@intlayer/types": "9.5.
|
|
149
|
+
"@intlayer/config": "9.5.2",
|
|
150
|
+
"@intlayer/core": "9.5.2",
|
|
151
|
+
"@intlayer/dictionaries-entry": "9.5.2",
|
|
152
|
+
"@intlayer/engine": "9.5.2",
|
|
153
|
+
"@intlayer/types": "9.5.2",
|
|
154
154
|
"defu": "6.1.7",
|
|
155
155
|
"node-loader": "2.1.0",
|
|
156
|
-
"react-intlayer": "9.5.
|
|
156
|
+
"react-intlayer": "9.5.2"
|
|
157
157
|
},
|
|
158
158
|
"devDependencies": {
|
|
159
|
-
"@types/node": "
|
|
159
|
+
"@types/node": "^22",
|
|
160
160
|
"@types/react": ">=16.0.0",
|
|
161
161
|
"@types/react-dom": ">=16.0.0",
|
|
162
162
|
"@utils/ts-config": "1.0.4",
|