summaryrefslogtreecommitdiff
path: root/src/build/i18n.mjs
blob: 0978d70554e074bdd383df33d9a9844b6dd798df (plain)
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

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',
    },
    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,<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: 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;