website-astro/astro.i18n.config.ts

21 lines
435 B
TypeScript
Raw Normal View History

2022-12-02 17:29:11 +01:00
import { defineAstroI18nConfig } from "astro-i18n";
export default defineAstroI18nConfig({
defaultLangCode: "fr",
supportedLangCodes: ["en"],
showDefaultLangCode: false,
trailingSlash: "never",
2022-12-02 17:29:11 +01:00
translations: {
fr: "src/i18n/fr.json",
en: "src/i18n/en.json",
},
2022-12-26 23:15:27 +01:00
routeTranslations: {
en: {
"sci-hub-blocage": "sci-hub-unblock",
2022-12-28 10:36:15 +01:00
fragments: "snippets",
2023-02-03 10:37:28 +01:00
"plan-du-site": "sitemap",
2023-04-19 18:24:40 +02:00
references: "work",
2022-12-26 23:15:27 +01:00
},
},
2022-12-02 17:29:11 +01:00
});