next-intl 3.12.1 → 3.12.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/README.md
CHANGED
|
@@ -22,7 +22,7 @@ function getLocaleFromHeaderImpl() {
|
|
|
22
22
|
}
|
|
23
23
|
if (!locale) {
|
|
24
24
|
{
|
|
25
|
-
console.error("
|
|
25
|
+
console.error("\nUnable to find `next-intl` locale because the middleware didn't run on this request. See https://next-intl-docs.vercel.app/docs/routing/middleware#unable-to-find-locale. The `notFound()` function will be called as a result.\n");
|
|
26
26
|
}
|
|
27
27
|
navigation.notFound();
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{headers as
|
|
1
|
+
import{headers as e}from"next/headers";import{notFound as t}from"next/navigation";import{cache as n}from"react";import{HEADER_LOCALE_NAME as o}from"../../shared/constants.js";const r=n((function(){let n;try{n=e().get(o)}catch(e){throw e instanceof Error&&"DYNAMIC_SERVER_USAGE"===e.digest?new Error("Usage of next-intl APIs in Server Components currently opts into dynamic rendering. This limitation will eventually be lifted, but as a stopgap solution, you can use the `unstable_setRequestLocale` API to enable static rendering, see https://next-intl-docs.vercel.app/docs/getting-started/app-router-server-components#static-rendering",{cause:e}):e}return n||(console.error("\nUnable to find `next-intl` locale because the middleware didn't run on this request. See https://next-intl-docs.vercel.app/docs/routing/middleware#unable-to-find-locale. The `notFound()` function will be called as a result.\n"),t()),n}));const i=n((function(){return{locale:void 0}}));function s(e){i().locale=e}function a(){return i().locale||r()}export{a as getRequestLocale,s as setRequestLocale};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-intl",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"author": "Jan Amann <jan@amann.work>",
|
|
6
6
|
"funding": [
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@formatjs/intl-localematcher": "^0.2.32",
|
|
84
84
|
"negotiator": "^0.6.3",
|
|
85
|
-
"use-intl": "^3.12.
|
|
85
|
+
"use-intl": "^3.12.2"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"next": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"eslint": "^8.54.0",
|
|
101
101
|
"eslint-config-molindo": "^7.0.0",
|
|
102
102
|
"eslint-plugin-deprecation": "^1.4.1",
|
|
103
|
-
"next": "^14.2.
|
|
103
|
+
"next": "^14.2.3",
|
|
104
104
|
"path-to-regexp": "^6.2.1",
|
|
105
105
|
"publint": "^0.2.7",
|
|
106
106
|
"react": "^18.3.0",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
"limit": "6.19 KB"
|
|
142
142
|
}
|
|
143
143
|
],
|
|
144
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "96a000cc40aedf802e8ed5f70396c6d8d4fcb4a3"
|
|
145
145
|
}
|