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',
]
},
en: {
intro: {
'description': 'Eternal student in computer science.',
'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',
]
}
}
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 default i18n;