diff --git a/docs/.vuepress/config/theme.js b/docs/.vuepress/config/theme.js index 5b83ff2..64115c8 100644 --- a/docs/.vuepress/config/theme.js +++ b/docs/.vuepress/config/theme.js @@ -53,72 +53,72 @@ export default hopeTheme({ }, ], }, - '/en/': { - lang: 'en-US', // this will be set as the lang attribute on - title: 'Ocelot.Social', - description: 'Ocelot.Social – Free and open source software to create and run your own social network.', - copyright: '© by busFaktor() e.V. & Authors | Imprint | Privacy Policy', - footer: 'Released under the MIT License.', - navbar: [ - { - text: 'Features', - link: '/en/features/' - }, - { - text: 'Get Started', - link: '/en/get-started/' - }, - { - text: 'Contribute', - link: '/en/contribute/' - }, - { - text: 'Learn', - link: '/en/learn/' , - }, - { - text: 'Donate', - link: '/en/donate/' - }, - { - text: 'Contact', - link: '/en/contact/' - }, - ], - }, - '/fr/': { - lang: 'fr-FR', - title: 'Ocelot.Social', - description: 'Ocelot.Social - Logiciel open source et gratuit pour créer et gérer votre propre réseau social.', - copyright: '© par busFaktor() e.V. & Auteurs | Mentions légales | Protection des données', - footer: 'Publié sous la licence MIT.', - navbar: [ - { - text: 'Fonctionnalités', - link: '/fr/features/' - }, - { - text: 'Entrée', - link: '/fr/get-started/' - }, - { - text: 'Contribuer', - link: '/fr/contribute/' - }, - { - text: 'Apprendre', - link: '/fr/learn/' , - }, - { - text: 'Donner', - link: '/fr/donate/' - }, - { - text: 'Contact', - link: '/fr/contact/' - }, - ], - } + // '/en/': { + // lang: 'en-US', // this will be set as the lang attribute on + // title: 'Ocelot.Social', + // description: 'Ocelot.Social – Free and open source software to create and run your own social network.', + // copyright: '© by busFaktor() e.V. & Authors | Imprint | Privacy Policy', + // footer: 'Released under the MIT License.', + // navbar: [ + // { + // text: 'Features', + // link: '/en/features/' + // }, + // { + // text: 'Get Started', + // link: '/en/get-started/' + // }, + // { + // text: 'Contribute', + // link: '/en/contribute/' + // }, + // { + // text: 'Learn', + // link: '/en/learn/' , + // }, + // { + // text: 'Donate', + // link: '/en/donate/' + // }, + // { + // text: 'Contact', + // link: '/en/contact/' + // }, + // ], + // }, + // '/fr/': { + // lang: 'fr-FR', + // title: 'Ocelot.Social', + // description: 'Ocelot.Social - Logiciel open source et gratuit pour créer et gérer votre propre réseau social.', + // copyright: '© par busFaktor() e.V. & Auteurs | Mentions légales | Protection des données', + // footer: 'Publié sous la licence MIT.', + // navbar: [ + // { + // text: 'Fonctionnalités', + // link: '/fr/features/' + // }, + // { + // text: 'Entrée', + // link: '/fr/get-started/' + // }, + // { + // text: 'Contribuer', + // link: '/fr/contribute/' + // }, + // { + // text: 'Apprendre', + // link: '/fr/learn/' , + // }, + // { + // text: 'Donner', + // link: '/fr/donate/' + // }, + // { + // text: 'Contact', + // link: '/fr/contact/' + // }, + // ], + // } }, plugins: { blog: { @@ -135,7 +135,13 @@ export default hopeTheme({ vPre: true, }, redirect: { - autoLocale: false, + autoLocale: true, + defaultBehavior: 'defaultLocale', + defaultLocale: '/de/', + localeConfig: { + '/de/': ['de-DE', 'en'], + }, + localeFallback: false, }, searchPro: { indexContent: true,