Website/astro-i18n.config.ts

28 Zeilen
829 B
TypeScript

2024-01-06 21:36:22 +01:00
import { defineAstroI18nConfig } from "astro-i18n";
2023-10-12 21:02:57 +02:00
export default defineAstroI18nConfig({
primaryLocale: "de",
secondaryLocales: ["en"],
fallbackLocale: "de",
2024-01-06 21:36:22 +01:00
trailingSlash: "never",
run: "client+server",
showPrimaryLocale: false,
translationLoadingRules: [],
translationDirectory: {},
translations: {},
routes: {
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",
},
2024-01-06 21:36:22 +01:00
},
});