Skip to content

Commit

Permalink
Merge pull request #141 from Ocelot-Social-Community/138-add-locales-…
Browse files Browse the repository at this point in the history
…en-fr

feat(content):  add locales en, fr
  • Loading branch information
Elweyn authored Jun 4, 2024
2 parents 5277156 + 9ead3f2 commit 7bfff1d
Show file tree
Hide file tree
Showing 29 changed files with 1,899 additions and 201 deletions.
2 changes: 1 addition & 1 deletion .textlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
'doubled-spaces': true,
'common-misspellings': {
// Misspellings to be ignored (case-insensitive)
ignore: [],
ignore: ['Exemple'],
},
'write-good': false,
'apostrophe': true,
Expand Down
12 changes: 6 additions & 6 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export default defineUserConfig({
'/de/': {
lang: 'de-DE',
},
// '/en/': {
// lang: 'en-EN',
// },
// '/fr/': {
// lang: 'fr-FR',
// },
'/en/': {
lang: 'en-EN',
},
'/fr/': {
lang: 'fr-FR',
},
}
})
138 changes: 70 additions & 68 deletions docs/.vuepress/config/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default hopeTheme({
lang: 'de-DE',
title: 'Ocelot.Social',
description: 'Ocelot.Social – Freie und Open-Source-Software zum Erstellen und Betreiben deines eigenen sozialen Netzwerks.',
copyright: '&copy; von <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authoren | <a href="/de/imprint/">Impressum</a> | <a href="/de/privacy-policy/">Datenschutz</a>',
copyright: '&copy; von <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Freunde | <a href="/de/imprint/">Impressum</a> | <a href="/de/privacy-policy/">Datenschutz</a>',
footer: 'Unter der <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT Lizenz<!--]--><!----></a> ausgeliefert.',
navbar: [
{
Expand Down Expand Up @@ -53,72 +53,72 @@ export default hopeTheme({
},
],
},
// '/en/': {
// lang: 'en-US', // this will be set as the lang attribute on <html>
// title: 'Ocelot.Social',
// description: 'Ocelot.Social – Free and open source software to create and run your own social network.',
// copyright: '&copy; by <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authors | <a href="/en/imprint/">Imprint</a> | <a href="/en/privacy-policy/">Privacy Policy</a>',
// footer: 'Released under the <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a>.',
// 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: '&copy; par <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Auteurs | <a href="/fr/imprint/">Mentions légales</a> | <a href="/fr/privacy-policy/">Protection des données</a>',
// footer: 'Publié sous la <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->licence MIT<!--]--><!----></a>.',
// 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 <html>
title: 'Ocelot.Social',
description: 'Ocelot.Social – Free and open source software to create and run your own social network.',
copyright: '&copy; by <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Friends | <a href="/en/imprint/">Imprint</a> | <a href="/en/privacy-policy/">Privacy Policy</a>',
footer: 'Released under the <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a>.',
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: '&copy; par <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & amis | <a href="/fr/imprint/">Mentions légales</a> | <a href="/fr/privacy-policy/">Protection des données</a>',
footer: 'Publié sous la <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->licence MIT<!--]--><!----></a>.',
navbar: [
{
text: 'Fonctionnalités',
link: '/fr/features/'
},
{
text: 'Commencer',
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: {
Expand All @@ -139,7 +139,9 @@ export default hopeTheme({
defaultBehavior: 'defaultLocale',
defaultLocale: '/de/',
localeConfig: {
'/de/': ['de-DE', 'en'],
'/de/': ['de-DE', 'de'],
'/en/': ['en-US', 'en'],
'/fr/': ['fr-FR', 'fr'],
},
localeFallback: false,
},
Expand Down
Loading

0 comments on commit 7bfff1d

Please sign in to comment.