From 8a6ed2ac2edbc42ce8b755fe77ff7ca4d98481d1 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sun, 7 Mar 2021 12:36:10 +0530 Subject: [PATCH] Fix incorrect week day name logic in translation --- frontend/src/utils.js | 2 +- i18n/de.json | 2 +- i18n/en.json | 2 +- i18n/fr.json | 2 +- i18n/it.json | 2 +- i18n/ml.json | 2 +- i18n/pt-BR.json | 2 +- i18n/pt.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/utils.js b/frontend/src/utils.js index 9c1e3ca..646e98b 100644 --- a/frontend/src/utils.js +++ b/frontend/src/utils.js @@ -21,7 +21,7 @@ export default class Utils { } const d = new Date(stamp); - const day = this.i18n.t(`globals.days.${(d.getDay() + 1)}`); + const day = this.i18n.t(`globals.days.${(d.getDay())}`); const month = this.i18n.t(`globals.months.${(d.getMonth() + 1)}`); let out = `${day}, ${d.getDate()}`; out += ` ${month} ${d.getFullYear()}`; diff --git a/i18n/de.json b/i18n/de.json index 46f764d..95541e7 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -108,13 +108,13 @@ "globals.buttons.remove": "Entfernen", "globals.buttons.save": "Speichern", "globals.buttons.saveChanges": "Änderungen speichern", + "globals.days.0": "So", "globals.days.1": "Mo", "globals.days.2": "Di", "globals.days.3": "Mi", "globals.days.4": "Do", "globals.days.5": "Fr", "globals.days.6": "Sa", - "globals.days.7": "So", "globals.fields.createdAt": "Erstellt", "globals.fields.id": "ID", "globals.fields.name": "Name", diff --git a/i18n/en.json b/i18n/en.json index 20eb6f2..c133483 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -112,13 +112,13 @@ "globals.buttons.remove": "Remove", "globals.buttons.save": "Save", "globals.buttons.saveChanges": "Save changes", + "globals.days.0": "Sun", "globals.days.1": "Mon", "globals.days.2": "Tue", "globals.days.3": "Wed", "globals.days.4": "Thu", "globals.days.5": "Fri", "globals.days.6": "Sat", - "globals.days.7": "Sun", "globals.fields.createdAt": "Created", "globals.fields.id": "ID", "globals.fields.name": "Name", diff --git a/i18n/fr.json b/i18n/fr.json index 3caec65..ccfb3aa 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -112,13 +112,13 @@ "globals.buttons.remove": "Supprimer", "globals.buttons.save": "Enregistrer", "globals.buttons.saveChanges": "Enregistrer les changements", + "globals.days.0": "dim", "globals.days.1": "lun", "globals.days.2": "mar", "globals.days.3": "mer", "globals.days.4": "jeu", "globals.days.5": "ven", "globals.days.6": "sam", - "globals.days.7": "dim", "globals.fields.createdAt": "Créé le", "globals.fields.id": "ID", "globals.fields.name": "Nom", diff --git a/i18n/it.json b/i18n/it.json index c8c4358..77170d8 100644 --- a/i18n/it.json +++ b/i18n/it.json @@ -112,13 +112,13 @@ "globals.buttons.remove": "Cancellare", "globals.buttons.save": "Salvare", "globals.buttons.saveChanges": "Salvare le modifiche", + "globals.days.0": "dom", "globals.days.1": "lun", "globals.days.2": "mar", "globals.days.3": "mer", "globals.days.4": "gio", "globals.days.5": "ven", "globals.days.6": "sab", - "globals.days.7": "dom", "globals.fields.createdAt": "Creato il ", "globals.fields.id": "ID", "globals.fields.name": "Nome", diff --git a/i18n/ml.json b/i18n/ml.json index dc8e648..dccc20c 100644 --- a/i18n/ml.json +++ b/i18n/ml.json @@ -108,13 +108,13 @@ "globals.buttons.remove": "നീക്കം ചെയ്യുക", "globals.buttons.save": "സൂക്ഷിക്കുക", "globals.buttons.saveChanges": "മാറ്റങ്ങൾ സൂക്ഷിക്കുക", + "globals.days.0": "ഞായർ", "globals.days.1": "തിങ്കൾ", "globals.days.2": "ചൊവ്വ", "globals.days.3": "ബുധൻ", "globals.days.4": "വ്യാഴം", "globals.days.5": "വെള്ളി", "globals.days.6": "ശനി", - "globals.days.7": "ഞായർ", "globals.fields.createdAt": "നിർമ്മിച്ചത്", "globals.fields.id": "ഐഡി", "globals.fields.name": "പേര്", diff --git a/i18n/pt-BR.json b/i18n/pt-BR.json index 9171802..c1351c0 100644 --- a/i18n/pt-BR.json +++ b/i18n/pt-BR.json @@ -112,13 +112,13 @@ "globals.buttons.remove": "Excluir", "globals.buttons.save": "Salvar", "globals.buttons.saveChanges": "Salvar alterações", + "globals.days.0": "Dom", "globals.days.1": "Seg", "globals.days.2": "Ter", "globals.days.3": "Qua", "globals.days.4": "Qui", "globals.days.5": "Sex", "globals.days.6": "Sáb", - "globals.days.7": "Dom", "globals.fields.createdAt": "Criado", "globals.fields.id": "ID", "globals.fields.name": "Nome", diff --git a/i18n/pt.json b/i18n/pt.json index 376eaf1..d793904 100644 --- a/i18n/pt.json +++ b/i18n/pt.json @@ -111,13 +111,13 @@ "globals.buttons.remove": "Remover", "globals.buttons.save": "Guardar", "globals.buttons.saveChanges": "Guardar alterações", + "globals.days.0": "Dom", "globals.days.1": "Seg", "globals.days.2": "Ter", "globals.days.3": "Qua", "globals.days.4": "Qui", "globals.days.5": "Sex", "globals.days.6": "Sáb", - "globals.days.7": "Dom", "globals.fields.createdAt": "Criado a", "globals.fields.id": "ID", "globals.fields.name": "Nome",