Website/astro-i18n.config.ts
2023-12-05 15:36:11 +01:00

31 Zeilen
659 B
TypeScript

import { defineAstroI18nConfig } from "astro-i18n"
export default defineAstroI18nConfig({
primaryLocale: "en",
secondaryLocales: ["de"],
fallbackLocale: "en",
trailingSlash: "never",
run: "client+server",
showPrimaryLocale: false,
translationLoadingRules: [
{
"routes": ["^/rules.*"],
"groups": ["^rules$"]
}
],
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",
}
},
})