next-language-selector 0.2.5 β 0.2.6
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 +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ import { LanguageSelector } from "next-language-selector";
|
|
|
32
32
|
|
|
33
33
|
const locales = [
|
|
34
34
|
{ name: "English", code: "en", flag: "πΊπΈ" },
|
|
35
|
-
{ name: "Deutsch", code: "de", flag: "π©πͺ" },
|
|
35
|
+
{ name: "Deutsch", code: "de", flag: "π©πͺ" }, // flags are optional
|
|
36
36
|
];
|
|
37
37
|
|
|
38
38
|
export default function Footer() {
|
|
@@ -81,7 +81,7 @@ Use the `renderCustom` prop to take full control over the rendering while keepin
|
|
|
81
81
|
|
|
82
82
|
To make sure Next.js detects the language from the cookie set by this component, update your `middleware.ts` or `proxy.ts`:
|
|
83
83
|
|
|
84
|
-
```
|
|
84
|
+
```tsx
|
|
85
85
|
import createMiddleware from "next-intl/middleware";
|
|
86
86
|
import { routing } from "./i18n/routing";
|
|
87
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-language-selector",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Configurable language selector for Next.js",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"next": "^
|
|
29
|
+
"next": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
30
30
|
"react": "^18.0.0 || ^19.0.0"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|