website-astro/astro.i18n.config.ts

17 lines
331 B
TypeScript

import { defineAstroI18nConfig } from "astro-i18n";
export default defineAstroI18nConfig({
defaultLangCode: "fr",
supportedLangCodes: ["en"],
showDefaultLangCode: false,
translations: {
fr: "src/i18n/fr.json",
en: "src/i18n/en.json",
},
routeTranslations: {
en: {
"sci-hub-blocage": "sci-hub-unblock",
},
},
});