fix(trans): finally fixed
This commit is contained in:
parent
47040057b1
commit
74d1ba96b3
@ -42,6 +42,9 @@
|
||||
"overall-area": "Die Gesamtfläche für {{ numRats }} Ratten muss mindestens {{ minimumOverallArea }}m² betragen.",
|
||||
"strongly-disagree": "Stimme gar nicht zu",
|
||||
"strongly-agree": "Stimme voll zu",
|
||||
"submit-success": "Erfolgreich abgesendet!",
|
||||
"submit-error": "Fehler beim Absenden!",
|
||||
"network-error": "Fehler bei der Datenübertragung!",
|
||||
"dynamic.sus-question-easy-to-use": "I thought CageCalc is easy to use",
|
||||
"dynamic.sus-question-like-to-use-frequently": "I would like to use CageCalc frequently",
|
||||
"dynamic.sus-question-unnecessarily-complex": "I find CageCalc unnecessarily complex",
|
||||
@ -55,7 +58,5 @@
|
||||
"dynamic.question-whats-missing": "Welche Funktion fehlt dir?",
|
||||
"dynamic.question-pain-points": "Was muss aus deiner Sicht an XX geändert werden?",
|
||||
"dynamic.question-other-feedback": "Was willst du uns mitgeben?",
|
||||
"dynamic.submit-success": "Erfolgreich abgesendet!",
|
||||
"dynamic.submit-error": "Fehler beim Absenden!",
|
||||
"dynamic.network-error": "Fehler beim Datenübertrag!"
|
||||
"dynamic.submit-success": "Erfolgreich abgesendet!"
|
||||
}
|
||||
|
@ -41,5 +41,26 @@
|
||||
"cage-for-x-rats": "Cage for {{ num_rats }} rats",
|
||||
"overall-area": "The overall area in the cage must be above {{ minimumOverallArea }}m² for {{ numRats }} rats.",
|
||||
"strongly-disagree": "Strongly Disagree",
|
||||
"strongly-agree": "Strongly Agree"
|
||||
"strongly-agree": "Strongly Agree",
|
||||
"submit-success": "",
|
||||
"submit-error": "",
|
||||
"network-error": "",
|
||||
"dynamic": {
|
||||
"submit-success": "",
|
||||
"submit-error": "",
|
||||
"network-error": ""
|
||||
},
|
||||
"dynamic.sus-question-easy-to-use": "I thought CageCalc is easy to use",
|
||||
"dynamic.sus-question-like-to-use-frequently": "I would like to use CageCalc frequently",
|
||||
"dynamic.sus-question-unnecessarily-complex": "I find CageCalc unnecessarily complex",
|
||||
"dynamic.sus-question-need-support-of-technical-person": "I think that I need the support of a technical person to be able to use CageCalc",
|
||||
"dynamic.sus-question-well-integrated": "I found various functions in CageCalc were well integrated",
|
||||
"dynamic.sus-question-inconsistency": "I thought there was too much inconsistency in CageCalc",
|
||||
"dynamic.sus-question-learn-quickly": "I would imagine that most people would learn to use CageCalc very quickly",
|
||||
"dynamic.sus-question-cumbersome": "I found CageCalc very cumbersome to use",
|
||||
"dynamic.sus-question-confident": "I felt very confident using CageCalc",
|
||||
"dynamic.sus-question-need-to-learn": "I needed to learn a lot of things before I could get going with CageCalc",
|
||||
"dynamic.question-whats-missing": "Welche Funktion fehlt dir?",
|
||||
"dynamic.question-pain-points": "Was muss aus deiner Sicht an XX geändert werden?",
|
||||
"dynamic.question-other-feedback": "Was willst du uns mitgeben?"
|
||||
}
|
||||
|
@ -83,11 +83,12 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||
const messageDiv = document.getElementById("response-message");
|
||||
|
||||
if (response.ok) {
|
||||
let x = "dada"
|
||||
messageDiv.className = "notification is-success";
|
||||
messageDiv.setAttribute("data-i18n", "dynamic.submit-success");
|
||||
messageDiv.innerHTML = i18next.t("submit-success");
|
||||
} else {
|
||||
messageDiv.className = "notification is-danger";
|
||||
messageDiv.setAttribute("data-i18n", "dynamic.submit-error");
|
||||
messageDiv.innerHTML = i18next.t("submit-error");
|
||||
}
|
||||
|
||||
messageDiv.classList.remove("is-hidden");
|
||||
@ -96,8 +97,8 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||
const messageDiv = document.getElementById("response-message");
|
||||
messageDiv.className = "notification is-danger";
|
||||
messageDiv.removeAttribute("data-i18n");
|
||||
messageDiv.setAttribute("data-i18n", "dynamic.network-error");
|
||||
messageDiv.innerHTML = i18next.t("dada", {"error": error});
|
||||
messageDiv.setAttribute("data-i18n", "");
|
||||
messageDiv.innerHTML = i18next.t("network-error");
|
||||
let errorP = document.createElement("p");
|
||||
errorP.className = "error";
|
||||
errorP.innerText = error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user