From 5e6a81af7948dbd742e349dbb43f435de944f4e4 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 28 Oct 2021 15:16:19 +0200 Subject: chore(i18n): translate the instructions on homepage --- htdocs/src/js/app.js | 2 ++ htdocs/src/js/i18n/locales/en.js | 2 +- htdocs/src/js/i18n/locales/fr.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'htdocs/src/js') diff --git a/htdocs/src/js/app.js b/htdocs/src/js/app.js index 13d63ef..efb4c33 100644 --- a/htdocs/src/js/app.js +++ b/htdocs/src/js/app.js @@ -331,9 +331,11 @@ function translateHTMLContent() { const brandingDesc = document.querySelector('.branding__description'); const navLabel = document.querySelector('.nav__label'); const license = document.querySelector('.copyright__license'); + const instructions = document.querySelector('.instructions'); brandingDesc.textContent = translate('branding.description'); navLabel.textContent = translate('nav.title'); license.title = translate('footer.license'); + instructions.textContent = translate('main.instructions'); } /** diff --git a/htdocs/src/js/i18n/locales/en.js b/htdocs/src/js/i18n/locales/en.js index d548757..c21b739 100644 --- a/htdocs/src/js/i18n/locales/en.js +++ b/htdocs/src/js/i18n/locales/en.js @@ -7,7 +7,7 @@ const en = { }, main: { instructions: - 'Select an app inside menu to see a live preview and app details.', + 'Select an app inside menu to see a live preview and app details (description, technologies, repositories).', project: { details: { about: 'About {{name}}', diff --git a/htdocs/src/js/i18n/locales/fr.js b/htdocs/src/js/i18n/locales/fr.js index 29bf9fd..af1d83c 100644 --- a/htdocs/src/js/i18n/locales/fr.js +++ b/htdocs/src/js/i18n/locales/fr.js @@ -7,7 +7,7 @@ const fr = { }, main: { instructions: - "Sélectionnez une application dans le menu pour afficher un aperçu en direct et les informations sur l'application.", + "Sélectionnez une application dans le menu pour afficher un aperçu en direct et les informations sur l'application (description, technologies, dépôts).", project: { details: { about: 'À propos de {{name}}', -- cgit v1.2.3