Updates and more
This commit is contained in:
21
astro-i18n.config.ts
Normal file
21
astro-i18n.config.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { defineAstroI18nConfig } from "astro-i18n"
|
||||
|
||||
export default defineAstroI18nConfig({
|
||||
primaryLocale: "en", // default app locale
|
||||
secondaryLocales: ["de"], // other supported locales
|
||||
fallbackLocale: "en", // fallback locale (on missing translation)
|
||||
trailingSlash: "never", // "never" or "always"
|
||||
run: "server", //"client+server" or "server"
|
||||
showPrimaryLocale: false, // "/en/about" vs "/about"
|
||||
translationLoadingRules: [], // per page group loading
|
||||
translationDirectory: {
|
||||
i18n: "i18n",
|
||||
}, // translation directory names
|
||||
translations: {}, // { [translation_group1]: { [locale1]: {}, ... } }
|
||||
routes: {
|
||||
de: {
|
||||
about: "ueber-uns",
|
||||
join: "jetzt-spielen"
|
||||
}
|
||||
}, // { [secondary_locale1]: { about: "about-translated", ... } }
|
||||
})
|
||||
Reference in New Issue
Block a user