From 8c36bc61ccb003150fe8532a6509bdebafe49a8f Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 11 Aug 2023 12:39:17 +0200 Subject: i18n for likes --- src/build/i18n.mjs | 4 ++++ src/build/index.mjs | 3 +++ src/templates/likes.tmpl | 26 +++++++++++++------------- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/build/i18n.mjs b/src/build/i18n.mjs index dfc7c59..979dbe6 100644 --- a/src/build/i18n.mjs +++ b/src/build/i18n.mjs @@ -27,6 +27,8 @@ const i18n = { 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 !
Le délais d'attente entre deux cœurs double à chaque fois.", }, en: { intro: { @@ -52,6 +54,8 @@ const i18n = { 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!
The waiting time between two hearts doubles each time.", } } diff --git a/src/build/index.mjs b/src/build/index.mjs index fa5f450..f22a818 100644 --- a/src/build/index.mjs +++ b/src/build/index.mjs @@ -52,6 +52,9 @@ for (const lang in i18n) { metaData: article.metaData, alt_lang: addDescription(article.metaData.alt_lang), description: i18n[lang].intro, + + like_title: i18n[lang].like_title, + like_text: i18n[lang].like_text, }; const output = mustache.render(articleTmpl, context, partials); diff --git a/src/templates/likes.tmpl b/src/templates/likes.tmpl index a0018d9..925d0c4 100644 --- a/src/templates/likes.tmpl +++ b/src/templates/likes.tmpl @@ -1,17 +1,17 @@ -- cgit v1.2.3