feat: Translate result
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
6897db4bbf
commit
bc7f32b57d
@ -124,6 +124,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container output-element" id="resultsDiv">
|
<div class="container output-element" id="resultsDiv">
|
||||||
|
<strong data-i18n-key="result">Ergebnis</strong>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -20,5 +20,6 @@
|
|||||||
"cage-measurements": "Käfigmaße",
|
"cage-measurements": "Käfigmaße",
|
||||||
"cage-complies-with-all-criteria": "Der Käfig erfüllt alle Kriterien!",
|
"cage-complies-with-all-criteria": "Der Käfig erfüllt alle Kriterien!",
|
||||||
"cage-for-x-rats": "Käfig für {{ num_rats }} Ratten",
|
"cage-for-x-rats": "Käfig für {{ num_rats }} Ratten",
|
||||||
"change-language": "Sprache ändern"
|
"change-language": "Sprache ändern",
|
||||||
|
"result": "Ergebnis"
|
||||||
}
|
}
|
@ -20,5 +20,6 @@
|
|||||||
"cage-measurements": "Cage measurements",
|
"cage-measurements": "Cage measurements",
|
||||||
"cage-complies-with-all-criteria": "This cage complies with all criteria!",
|
"cage-complies-with-all-criteria": "This cage complies with all criteria!",
|
||||||
"cage-for-x-rats": "Cage for {{ num_rats }} rats",
|
"cage-for-x-rats": "Cage for {{ num_rats }} rats",
|
||||||
"change-language": "Change language"
|
"change-language": "Change language",
|
||||||
|
"result": "Result"
|
||||||
}
|
}
|
@ -281,7 +281,6 @@ function update() {
|
|||||||
const validator = new Validator();
|
const validator = new Validator();
|
||||||
const failed_checks = validator.cageCheck(dimensions, ratSlider.value, fullFloorNum.value);
|
const failed_checks = validator.cageCheck(dimensions, ratSlider.value, fullFloorNum.value);
|
||||||
let resultsDiv = document.getElementById("resultsDiv");
|
let resultsDiv = document.getElementById("resultsDiv");
|
||||||
resultsDiv.innerHTML = `<strong>Ergebnis</strong>`;
|
|
||||||
|
|
||||||
const result = getResultFromChecks(failed_checks);
|
const result = getResultFromChecks(failed_checks);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user