refactor: remove German language support from i18n configuration
This commit is contained in:
parent
7931200b36
commit
cf8b0402a9
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"i18n-ally.localesPaths": [
|
||||
"messages",
|
||||
"src/i18n"
|
||||
]
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
{
|
||||
"Error": {
|
||||
"description": "<p>Es ist leider ein Problem aufgetreten.</p><p>Du kannst versuchen <retry>diese Seite neu zu laden</retry>.</p>",
|
||||
"title": "Etwas ist schief gelaufen!"
|
||||
},
|
||||
"IndexPage": {
|
||||
"description": "Dies ist ein Beispiel, das die Verwendung von <code>next-intl</code> mit dem Next.js App Router demonstriert. Bei Ändern der Sprache rechts oben ändert sich der Inhalt dieser Seite.",
|
||||
"title": "next-intl Beispiel"
|
||||
},
|
||||
"LocaleLayout": {
|
||||
"title": "next-intl Beispiel"
|
||||
},
|
||||
"LocaleSwitcher": {
|
||||
"label": "Sprache ändern",
|
||||
"locale": "{locale, select, de {🇩🇪 Deutsch} en {🇺🇸 English} zh {🇨🇳 中文} other {Unbekannt}}"
|
||||
},
|
||||
"Manifest": {
|
||||
"name": ""
|
||||
},
|
||||
"Navigation": {
|
||||
"home": "Start",
|
||||
"pathnames": "Pfadnamen"
|
||||
},
|
||||
"NotFoundPage": {
|
||||
"description": "Bitte überprüfe die Addressleiste deines Browsers oder verwende die Navigation um zu einer bekannten Seite zu wechseln.",
|
||||
"title": "Seite nicht gefunden"
|
||||
},
|
||||
"PageLayout": {
|
||||
"links": {
|
||||
"docs": {
|
||||
"description": "Erfahre mehr über next-intl in der offiziellen Dokumentation.",
|
||||
"href": "https://next-intl.dev",
|
||||
"title": "Dokumentation"
|
||||
},
|
||||
"source": {
|
||||
"description": "Sieh dir den Quellcode dieses Beispiels auf GitHub an.",
|
||||
"href": "https://github.com/amannn/next-intl/tree/main/examples/example-app-router",
|
||||
"title": "Quellcode"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PathnamesPage": {
|
||||
"description": "<p>Auch die Pfadnamen sind internationalisiert.</p><p>Wenn du die Standardsprache Englisch verwendest, siehst du <code>/en/pathnames</code> in der Adressleiste des Browsers auf dieser Seite.</p><p>Wenn du die Sprache auf Deutsch änderst, wird die URL entsprechend lokalisiert (<code>/de/pfadnamen</code>).</p>",
|
||||
"title": "Pfadnamen"
|
||||
}
|
||||
}
|
@ -12,7 +12,7 @@
|
||||
},
|
||||
"LocaleSwitcher": {
|
||||
"label": "Change language",
|
||||
"locale": "{locale, select, de {🇩🇪 Deutsch} en {🇺🇸 English} zh {🇨🇳 中文} other {Unknown}}"
|
||||
"locale": "{locale, select, en {🇺🇸 English} zh {🇨🇳 中文} other {Unknown}}"
|
||||
},
|
||||
"Manifest": {
|
||||
"name": "next-intl example"
|
||||
|
@ -12,7 +12,7 @@
|
||||
},
|
||||
"LocaleSwitcher": {
|
||||
"label": "更改语言",
|
||||
"locale": "{locale, select, de {🇩🇪 德语} en {🇺🇸 英语} zh {🇨🇳 中文} other {未知}}"
|
||||
"locale": "{locale, select, en {🇺🇸 英语} zh {🇨🇳 中文} other {未知}}"
|
||||
},
|
||||
"Manifest": {
|
||||
"name": "next-intl 示例"
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { defineRouting } from "next-intl/routing";
|
||||
|
||||
export const routing = defineRouting({
|
||||
locales: ["en", "de", "zh"],
|
||||
locales: ["en", "zh"],
|
||||
defaultLocale: "en",
|
||||
pathnames: {
|
||||
"/": "/",
|
||||
|
@ -10,7 +10,7 @@ export const config = {
|
||||
|
||||
// Set a cookie to remember the previous locale for
|
||||
// all requests that have a locale prefix
|
||||
'/(zh|de|en)/:path*',
|
||||
'/(zh|en)/:path*',
|
||||
|
||||
// Enable redirects that add missing locales
|
||||
// (e.g. `/pathnames` -> `/en/pathnames`)
|
||||
|
Loading…
Reference in New Issue
Block a user