Migrate Site to German as Default Locale

This commit is contained in:
2024-03-09 13:53:43 +01:00
parent fd56de0451
commit 9312089e96
26 changed files with 109 additions and 486 deletions

View File

@ -1,9 +1,9 @@
import { defineAstroI18nConfig } from "astro-i18n";
export default defineAstroI18nConfig({
primaryLocale: "en",
secondaryLocales: ["de"],
fallbackLocale: "en",
primaryLocale: "de",
secondaryLocales: ["en"],
fallbackLocale: "de",
trailingSlash: "never",
run: "client+server",
showPrimaryLocale: false,
@ -11,18 +11,18 @@ export default defineAstroI18nConfig({
translationDirectory: {},
translations: {},
routes: {
de: {
about: "ueber-uns",
join: "jetzt-spielen",
imprint: "impressum",
"code-of-conduct": "verhaltensrichtlinien",
rules: "regeln",
ranked: "rangliste",
faq: "haeufige-fragen",
stats: "statistiken",
announcements: "ankuendigungen",
"privacy-policy": "datenschutzerklaerung",
"set-password": "passwort-setzen"
}
en: {
"ueber-uns": "about",
"jetzt-spielen": "join",
impressum: "imprint",
verhaltensrichtlinien: "code-of-conduct",
regeln: "rules",
rangliste: "ranked",
"haeufige-fragen": "faq",
statistiken: "stats",
ankuendigungen: "announcements",
datenschutzerklaerung: "privacy-policy",
"passwort-setzen": "set-password",
},
},
});