1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
const i18n = {
fr: {
intro: {
description: "Éternel étudiant en Math-Info.",
about:
'Autodidacte passionné,<br><span class="type_wrap"><span class="type">désormais ingénieur.</span></span>',
about_tags:
"GNU\\Linux, C, C++, Python, Math, autohébergement, décentralisation, P2P, commun, ... <br> ",
},
title: {
main: "ache: Blog personnel",
home: "L'accueil",
git: "Dépôt git personnel",
mastodon: "Mon mastodon",
notes: "Notes",
},
articles: [
"framasoft-et-les-mascottes-du-libre.md",
"les-trains-et-la-publicité.md",
"formats-images-web.md",
"bizarreries-du-langage-c.md",
"retour-sur-laoc-2021-semaine-1.md",
"2FA-discord-sur-pc.md",
"duckduckgo-google-en-mieux.md",
],
rss_full: {
title: "ache: Blog personnel",
quick_description:
"Programmation, Algorithmique, Système, *pick you poison*",
description: `<b>Ceci est un flux RSS</b> à destination des agrégateurs de contenu.<br>\nEn tant qu'être humain vous cherchez certainement <a href="https://ache.one/fr/">mon site web</a><br>\n<br>\nCe flux contient tous mes écrits petits ou grands. Si vous cherchez à ne suivre que les articles les plus importants et d'une certaine qualité, il existe un <a href="https://ache.one/fr/rss-full.xml">Flux RSS qui ne contient que mes principaux articles.</a>`,
},
rss: {
title: "ache: Blog personnel",
quick_description:
"Programmation, Algorithmique, Système, *pick you poison*",
description: `<b>Ceci est un flux RSS</b> à destination des agrégateurs de contenu.<br>\nEn tant qu'être humain vous cherchez certainement <a href="https://ache.one/fr/">mon site web</a><br>\n<br>\nCe flux ne contient que les articles, une version existe également avec tous mes écrits. <a href="https://ache.one/fr/rss-full.xml">Flux RSS avec les notes.</a>`,
},
toc_keyword: "Sommaire",
tag_desc: "Liste des articles ayant le tag",
index_desc:
"Blog personnel à propos de programmation, logiciel libre et autohébergement. Essayons de rendre le monde meilleur.",
like_title: "Si vous avez aimez cet article cliquez sur le cœur !",
like_text:
'Vous pouvez même envoyez plusieurs cœurs ! <br><span class="likesNotes">Le délais d\'attente entre deux cœurs double à chaque fois.</span>',
},
en: {
intro: {
description: "Eternal student in computer science.",
quick_description:
"Programmation, Algorithmique, Système, *pick you poison*",
about:
'Self-taught developper,<br><span class="type_wrap"><span class="type">now engineer.</span></span>',
about_tags:
"GNU\\Linux, C, C++, Python, Math, self-hosted, dececntralisation, P2P, ... <br>",
},
title: {
main: "ache: Personal blog",
home: "Home",
git: "Personnel git repository",
mastodon: "Mastodon account",
notes: "Notes",
},
articles: [
"rail-and-advertising.md",
"web-image-formats.md",
"c-language-quirks.md",
],
rss_full: {
title: "ache: Personal blog",
description: `<b>This is a RSS feed</b> for content agreagator.<br>\nAs a human being, you are certainly looking for <a href="https://ache.one/en/">my website</a><br>\n<br>\nThis RSS flux contains everything I write. If you only want to follow my main articles which are of certain quality, there is a <a href="https://ache.one/en/rss.xml">RSS flux with only articles.</a>`,
},
rss: {
title: "ache: Personal blog",
description: `<b>This is a RSS feed</b> for content agreagator.<br>\nAs a human being, you are certainly looking for <a href="https://ache.one/en/">my website</a><br>\n<br>\nThis RSS flux contains only my articles, if you want to follow also my personnal notes, there is a <a href="https://ache.one/en/rss-full.xml">RSS flux with everything I write..</a>`,
},
toc_keyword: "Table of contents",
tag_desc: "List of articles with the tag",
index_desc:
"Personal blog about programming, free software and self-hosting. Let's try to make the world a better place.",
like_title: "If you liked this article click on the heart!",
like_text:
'You can even send multiple hearts! <br><span class="likesNotes">The waiting time between two hearts doubles each time.</span>',
},
};
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;
|