next-intlayer 7.2.2 → 7.3.0-canary.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/README.md CHANGED
@@ -24,6 +24,8 @@
24
24
  <a href="https://github.com/aymericzip/intlayer/blob/main/LICENSE" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/license/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="license"/></a>
25
25
  <a href="https://github.com/aymericzip/intlayer/commits/main" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/last-commit/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="last commit"/>
26
26
  </a>
27
+ <a href="https://bountyhub.dev/bounties?repo=intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/badge/Bounties-on%20BountyHub-yellow?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="Bounties on BountyHub"/>
28
+ </a>
27
29
  </p>
28
30
 
29
31
  ![Watch the video](https://github.com/aymericzip/intlayer/blob/main/docs/assets/demo_video.gif)
@@ -19,6 +19,18 @@ Object.defineProperty(exports, 'MarkdownProvider', {
19
19
  }
20
20
  });
21
21
  exports.generateStaticParams = require_generateStaticParams.generateStaticParams;
22
+ Object.defineProperty(exports, 'getDictionary', {
23
+ enumerable: true,
24
+ get: function () {
25
+ return react_intlayer.getDictionary;
26
+ }
27
+ });
28
+ Object.defineProperty(exports, 'getIntlayer', {
29
+ enumerable: true,
30
+ get: function () {
31
+ return react_intlayer.getIntlayer;
32
+ }
33
+ });
22
34
  Object.defineProperty(exports, 'localeCookie', {
23
35
  enumerable: true,
24
36
  get: function () {
@@ -2,6 +2,6 @@ import { generateStaticParams } from "./generateStaticParams.mjs";
2
2
  import { useLocale } from "./client/useLocale.mjs";
3
3
  import { IntlayerClientProvider } from "./client/IntlayerClientProvider.mjs";
4
4
  import { useLocalePageRouter } from "./client/useLocalePageRouter.mjs";
5
- import { IntlayerClientContext, MarkdownProvider, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntlayer, useLoadDynamic, useLocaleCookie, useLocaleStorage } from "react-intlayer";
5
+ import { IntlayerClientContext, MarkdownProvider, getDictionary, getIntlayer, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntlayer, useLoadDynamic, useLocaleCookie, useLocaleStorage } from "react-intlayer";
6
6
 
7
- export { IntlayerClientContext, IntlayerClientProvider, MarkdownProvider, generateStaticParams, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntlayer, useLoadDynamic, useLocale, useLocaleCookie, useLocalePageRouter, useLocaleStorage };
7
+ export { IntlayerClientContext, IntlayerClientProvider, MarkdownProvider, generateStaticParams, getDictionary, getIntlayer, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntlayer, useLoadDynamic, useLocale, useLocaleCookie, useLocalePageRouter, useLocaleStorage };
@@ -1 +1 @@
1
- {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"sourcesContent":[],"mappings":";;;;KAQK,cAAA;4CACuC;;AADvC,cAkBQ,SAlBM,EACyB,CAAA;EAAA;AAAa,CAAA,CAAA,EAiBjB,cAjBiB,EAAA,GAAA;EAiB5C,iBAiCZ,EAAA,MAAA;EAjCyB,MAAA,EAAiC,gBAAA,CAAA,eAAjC;EAAc,aAAA,kCAAA;EAAmB,gBAAA,oCAAA"}
1
+ {"version":3,"file":"useLocale.d.ts","names":[],"sources":["../../../src/client/useLocale.ts"],"sourcesContent":[],"mappings":";;;;KAQK,cAAA;4CACuC;;AADvC,cAkBQ,SAlBM,EAAA,CACyB;EAAA;AAAa,CAAA,CAAb,EAiBJ,cAjBiB,EAAA,GAAA;EAiB5C,iBAiCZ,EAAA,MAAA;EAjCyB,MAAA,EAAiC,gBAAA,CAAA,eAAjC;EAAc,aAAA,kCAAA;EAAmB,gBAAA,oCAAA"}
@@ -1,8 +1,8 @@
1
- import * as _intlayer_types0 from "@intlayer/types";
1
+ import * as _intlayer_types2 from "@intlayer/types";
2
2
 
3
3
  //#region src/generateStaticParams.d.ts
4
4
  declare const generateStaticParams: () => {
5
- locale: _intlayer_types0.Locale;
5
+ locale: _intlayer_types2.Locale;
6
6
  }[];
7
7
  //#endregion
8
8
  export { generateStaticParams };
@@ -5,5 +5,5 @@ import "./client/index.js";
5
5
  import { generateStaticParams } from "./generateStaticParams.js";
6
6
  import { LocalParams, LocalPromiseParams, Next14LayoutIntlayer, Next14PageIntlayer, Next15LayoutIntlayer, Next15PageIntlayer, NextLayoutIntlayer, NextPageIntlayer } from "./types/NextPage.js";
7
7
  import "./types/index.js";
8
- import { IntlayerClientContext, IntlayerNode, MarkdownProvider, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntlayer, useLoadDynamic, useLocaleCookie, useLocaleStorage } from "react-intlayer";
9
- export { IntlayerClientContext, IntlayerClientProvider, type IntlayerClientProviderProps, type IntlayerNode, type LocalParams, type LocalPromiseParams, MarkdownProvider, type Next14LayoutIntlayer, type Next14PageIntlayer, type Next15LayoutIntlayer, type Next15PageIntlayer, type NextLayoutIntlayer, type NextPageIntlayer, generateStaticParams, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntlayer, useLoadDynamic, useLocale, useLocaleCookie, useLocalePageRouter, useLocaleStorage };
8
+ import { IntlayerClientContext, IntlayerNode, MarkdownProvider, getDictionary, getIntlayer, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntlayer, useLoadDynamic, useLocaleCookie, useLocaleStorage } from "react-intlayer";
9
+ export { IntlayerClientContext, IntlayerClientProvider, IntlayerClientProviderProps, type IntlayerNode, type LocalParams, type LocalPromiseParams, MarkdownProvider, type Next14LayoutIntlayer, type Next14PageIntlayer, type Next15LayoutIntlayer, type Next15PageIntlayer, type NextLayoutIntlayer, type NextPageIntlayer, generateStaticParams, getDictionary, getIntlayer, localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntlayer, useLoadDynamic, useLocale, useLocaleCookie, useLocalePageRouter, useLocaleStorage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-intlayer",
3
- "version": "7.2.2",
3
+ "version": "7.3.0-canary.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": [
@@ -117,16 +117,16 @@
117
117
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
118
118
  },
119
119
  "dependencies": {
120
- "@intlayer/chokidar": "7.2.2",
121
- "@intlayer/config": "7.2.2",
122
- "@intlayer/core": "7.2.2",
123
- "@intlayer/dictionaries-entry": "7.2.2",
124
- "@intlayer/types": "7.2.2",
125
- "@intlayer/webpack": "7.2.2",
120
+ "@intlayer/chokidar": "7.3.0-canary.0",
121
+ "@intlayer/config": "7.3.0-canary.0",
122
+ "@intlayer/core": "7.3.0-canary.0",
123
+ "@intlayer/dictionaries-entry": "7.3.0-canary.0",
124
+ "@intlayer/types": "7.3.0-canary.0",
125
+ "@intlayer/webpack": "7.3.0-canary.0",
126
126
  "deepmerge": "4.3.1",
127
127
  "fast-glob": "3.3.3",
128
128
  "node-loader": "2.1.0",
129
- "react-intlayer": "7.2.2"
129
+ "react-intlayer": "7.3.0-canary.0"
130
130
  },
131
131
  "devDependencies": {
132
132
  "@types/node": "24.10.1",
@@ -138,7 +138,7 @@
138
138
  "rimraf": "6.1.2",
139
139
  "tsdown": "0.16.6",
140
140
  "typescript": "5.9.3",
141
- "vitest": "4.0.12"
141
+ "vitest": "4.0.13"
142
142
  },
143
143
  "peerDependencies": {
144
144
  "next": ">=14.0.0",