const i18n = {
fr: {
intro: {
'description': 'Éternel étudiant en Math-Info.',
'about': 'Autodidacte passionné,
désormais ingénieur.',
'about_tags': 'GNU\\Linux, C, C++, Python, Math, autohébergement, décentralisation, P2P, commun, ...
',
},
title: {
'main': 'ache: Blog personnel',
'home': 'L\'accueil',
'git': 'Dépôt git personnel',
'mastodon': 'Mon mastodon',
},
articles: [
'bizarreries-du-langage-c.md',
'retour-sur-laoc-2021-semaine-1.md',
'2FA-discord-sur-pc.md',
'duckduckgo-google-en-mieux.md',
],
rss: {
'title': 'ache: Blog personnel',
'quick_description': 'Programmation, Algorithmique, Système, *pick you poison*',
'description': `Ceci est un flux RSS à destination des agrégateurs de contenu.
En tant qu'être humain vous cherchez certainement mon site mon site web.`
},
toc_keyword: "Sommaire"
},
en: {
intro: {
'description': 'Eternal student in computer science.',
'quick_description': 'Programmation, Algorithmique, Système, *pick you poison*',
'about': 'Passionated self-taught person,
now engineer.',
'about_tags': 'GNU\\Linux, C, C++, Python, Math, self-hosted, dececntralisation, P2P, ...
',
},
title: {
'main': 'ache: Personnel blog',
'home': 'Home',
'git': 'Personnel git repository',
'mastodon': 'Mastodon account',
},
articles: [
'c-language-quirks.md',
],
rss: {
'title': 'ache: Personal blog',
'description': `This is a RSS feed for content agreagator.
As an humain you may looking for my website mon site web.`
},
toc_keyword: "Table of contents"
}
}
const lang_desc = {
fr: "Version Française",
en: "English version",
}
export function addDescription(alt_lang) {
if (alt_lang) {
alt_lang.forEach(e => {
e.description = lang_desc[e.lang]
});
}
return alt_lang;
}
export function getTocHeading() {
return Object.entries(i18n).map(([_, v]) => v.toc_keyword).join('|');
}
export default i18n;