aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs/src/js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-28 15:16:19 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-28 15:16:19 +0200
commit5e6a81af7948dbd742e349dbb43f435de944f4e4 (patch)
tree4375fe4658e85d08d1924f348db05d90f909305c /htdocs/src/js
parentf6b4748685dc000d1dd8d244ddf11def38410940 (diff)
chore(i18n): translate the instructions on homepage
Diffstat (limited to 'htdocs/src/js')
-rw-r--r--htdocs/src/js/app.js2
-rw-r--r--htdocs/src/js/i18n/locales/en.js2
-rw-r--r--htdocs/src/js/i18n/locales/fr.js2
3 files changed, 4 insertions, 2 deletions
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}}',