next-intlayer 4.1.3 → 4.1.4

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.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +16 -16
package/README.md CHANGED
@@ -54,7 +54,7 @@ With Intlayer, you can declare your content in a structured way anywhere in your
54
54
 
55
55
  By default, Intlayer scans for files with the extension `.content.{ts,tsx,js,jsx,mjs,cjs}`.
56
56
 
57
- > You can modify the default extension by setting the `contentDir` property in the [configuration file](https://intlayer.org//doc/concept/configuration).
57
+ > You can modify the default extension by setting the `contentDir` property in the [configuration file](https://intlayer.org/doc/concept/configuration).
58
58
 
59
59
  ```bash codeFormat="typescript"
60
60
  .
@@ -158,22 +158,22 @@ const ClientComponentExample = () => {
158
158
  Intlayer provides a lot of features to help you internationalize your Next.js application. Here are some of the key features:
159
159
 
160
160
  - **Internationalization of server components**: Intlayer allows you to internationalize your server components in the same way as your client components. This means that you can use the same content declarations for both client and server components.
161
- - **Middleware for Locale Detection**: Intlayer provides middleware to detect the user's preferred locale. This middleware is used to detect the user's preferred locale and redirect them to the appropriate URL as specified in the [configuration](https://intlayer.org//doc/concept/configuration).
161
+ - **Middleware for Locale Detection**: Intlayer provides middleware to detect the user's preferred locale. This middleware is used to detect the user's preferred locale and redirect them to the appropriate URL as specified in the [configuration](https://intlayer.org/doc/concept/configuration).
162
162
  - **Internationalization of metadata**: Intlayer provides a way to internationalize your metadata, such as the title of your page, using the `generateMetadata` function provided by Next.js. You can use the `getTranslationContent` function to translate your metadata.
163
163
  - **Internationalization of sitemap.xml and robots.txt**: Intlayer allows you to internationalize your sitemap.xml and robots.txt files. You can use the `getMultilingualUrls` function to generate multilingual URLs for your sitemap.
164
164
  - **Internationalization of URLs**: Intlayer allows you to internationalize your URLs by using the `getMultilingualUrls` function. This function generates multilingual URLs for your sitemap.
165
165
 
166
- **To learn more about these features, refer to the [Next.js Internationalization (i18n) with Intlayer and Next.js 15 App Router](https://intlayer.org//doc/environment/nextjs) guide.**
166
+ **To learn more about these features, refer to the [Next.js Internationalization (i18n) with Intlayer and Next.js 15 App Router](https://intlayer.org/doc/environment/nextjs) guide.**
167
167
 
168
168
  ## Functions provided by `next-intlayer` package
169
169
 
170
170
  The `next-intlayer` package also provides some functions to help you to internationalize your application.
171
171
 
172
- - [`t()`](https://intlayer.org//doc/packages/next-intlayer/t)
173
- - [`useIntlayer()`](https://intlayer.org//doc/packages/next-intlayer/useIntlayer)
174
- - [`useDictionary()`](https://intlayer.org//doc/packages/next-intlayer/useDictionary)
175
- - [`useLocale()`](https://intlayer.org//doc/packages/next-intlayer/useLocale)
176
- - [`useIntlayerAsync()`](https://intlayer.org//doc/packages/next-intlayer/useIntlayerAsync)
172
+ - [`t()`](https://intlayer.org/doc/packages/next-intlayer/t)
173
+ - [`useIntlayer()`](https://intlayer.org/doc/packages/next-intlayer/useIntlayer)
174
+ - [`useDictionary()`](https://intlayer.org/doc/packages/next-intlayer/useDictionary)
175
+ - [`useLocale()`](https://intlayer.org/doc/packages/next-intlayer/useLocale)
176
+ - [`useIntlayerAsync()`](https://intlayer.org/doc/packages/next-intlayer/useIntlayerAsync)
177
177
 
178
178
  ## Read about Intlayer
179
179
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-intlayer",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
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": [
@@ -72,12 +72,12 @@
72
72
  ],
73
73
  "dependencies": {
74
74
  "node-loader": "^2.1.0",
75
- "@intlayer/chokidar": "4.1.3",
76
- "react-intlayer": "4.1.3",
77
- "@intlayer/config": "4.1.3",
78
- "@intlayer/dictionaries-entry": "4.1.3",
79
- "@intlayer/webpack": "4.1.3",
80
- "@intlayer/core": "4.1.3"
75
+ "@intlayer/dictionaries-entry": "4.1.4",
76
+ "@intlayer/webpack": "4.1.4",
77
+ "react-intlayer": "4.1.4",
78
+ "@intlayer/core": "4.1.4",
79
+ "@intlayer/config": "4.1.4",
80
+ "@intlayer/chokidar": "4.1.4"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@types/node": "^22.10.6",
@@ -92,19 +92,19 @@
92
92
  "typescript": "^5.7.3",
93
93
  "@utils/ts-config": "1.0.4",
94
94
  "@utils/ts-config-types": "1.0.4",
95
- "intlayer": "4.1.3",
96
- "@utils/eslint-config": "1.0.4",
97
- "@utils/tsup-config": "1.0.4"
95
+ "@utils/tsup-config": "1.0.4",
96
+ "intlayer": "4.1.4",
97
+ "@utils/eslint-config": "1.0.4"
98
98
  },
99
99
  "peerDependencies": {
100
100
  "next": ">=14.0.0",
101
101
  "react": ">=16.0.0",
102
- "@intlayer/config": "4.1.3",
103
- "@intlayer/core": "4.1.3",
104
- "@intlayer/dictionaries-entry": "4.1.3",
105
- "@intlayer/webpack": "4.1.3",
106
- "intlayer": "4.1.3",
107
- "react-intlayer": "^4.1.3"
102
+ "@intlayer/webpack": "4.1.4",
103
+ "intlayer": "4.1.4",
104
+ "react-intlayer": "^4.1.4",
105
+ "@intlayer/core": "4.1.4",
106
+ "@intlayer/config": "4.1.4",
107
+ "@intlayer/dictionaries-entry": "4.1.4"
108
108
  },
109
109
  "engines": {
110
110
  "node": ">=14.18"