From 128ef795d89bba1bb4ea0006daecedaccb663132 Mon Sep 17 00:00:00 2001 From: moanos Date: Wed, 31 Jul 2024 19:29:33 +0200 Subject: [PATCH] trans: Translate success message --- public/lang/de.json | 3 ++- public/lang/en.json | 3 ++- src/index.js | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/public/lang/de.json b/public/lang/de.json index ae664d6..ee24c40 100644 --- a/public/lang/de.json +++ b/public/lang/de.json @@ -17,5 +17,6 @@ "alt-savic-xl": "Bild des Käfigs Savic Suite Royal XL, ein Drahtkäfig mit vier Türen die erlauben die gesamte Vorderseite zu öffnen. Auf halber Höhe ist eine weitere Vollebene.", "alt-savic-95-double": "Bild eines dekorierten Käfigs, des Savic Suite Royale 95 Double. Auf insgesamt vie Vollebenen sind Holz- und Papphäusschen, Hängematten, Futterschalen und mehr.", "alt-tiaki": "Bild des Tiaki-Käfigs, ein Drahtkäfig mit vier Türen die erlauben die gesamte Vorderseite zu öffnen. Auf halber Höhe ist eine weitere Vollebene.", - "cage-measurements": "Käfigmaße" + "cage-measurements": "Käfigmaße", + "cage-complies-with-all-criteria": "Der Käfig erfüllt alle Kriterien!" } \ No newline at end of file diff --git a/public/lang/en.json b/public/lang/en.json index c93dfa2..95afba8 100644 --- a/public/lang/en.json +++ b/public/lang/en.json @@ -17,5 +17,6 @@ "alt-savic-xl": "A picture of a wire bar cage with four doors that allow to open the full front of the cage. In the middle of the cage is a additional full floor.", "alt-savic-95-double": "A picture of a decorated wire bar cage with four doors that allow to open the full front of the cage. Inside there are hammocks, toys and four full floors with lots of hides", "alt-tiaki": "A picture of a decorated wire bar cage with four doors that allow to open the full front of the cage.", - "cage-measurements": "Cage measurements" + "cage-measurements": "Cage measurements", + "cage-complies-with-all-criteria": "This cage complies with all criteria!" } \ No newline at end of file diff --git a/src/index.js b/src/index.js index 096234c..7bb124e 100644 --- a/src/index.js +++ b/src/index.js @@ -256,13 +256,13 @@ function getResultFromChecks(checks) { const ul = document.createElement('ul'); for (const key in checks) { const li = document.createElement('li'); - li.textContent = `❌` + checks[key]; + li.textContent = `❌ ` + checks[key]; ul.appendChild(li); } return ul; } else { const p = document.createElement('p'); - p.innerHTML = "✅ Der Käfig erfüllt alle Kriterien!" + p.innerHTML = "✅ " + i18next.t("cage-complies-with-all-criteria") return p; }