Website/astro-i18n.config.ts

26 Zeilen
596 B
TypeScript

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