Fix incorrect week day name logic in translation

This commit is contained in:
Kailash Nadh 2021-03-07 12:36:10 +05:30
parent 267dd52ec3
commit 8a6ed2ac2e
8 changed files with 8 additions and 8 deletions

View File

@ -21,7 +21,7 @@ export default class Utils {
} }
const d = new Date(stamp); 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)}`); const month = this.i18n.t(`globals.months.${(d.getMonth() + 1)}`);
let out = `${day}, ${d.getDate()}`; let out = `${day}, ${d.getDate()}`;
out += ` ${month} ${d.getFullYear()}`; out += ` ${month} ${d.getFullYear()}`;

View File

@ -108,13 +108,13 @@
"globals.buttons.remove": "Entfernen", "globals.buttons.remove": "Entfernen",
"globals.buttons.save": "Speichern", "globals.buttons.save": "Speichern",
"globals.buttons.saveChanges": "Änderungen speichern", "globals.buttons.saveChanges": "Änderungen speichern",
"globals.days.0": "So",
"globals.days.1": "Mo", "globals.days.1": "Mo",
"globals.days.2": "Di", "globals.days.2": "Di",
"globals.days.3": "Mi", "globals.days.3": "Mi",
"globals.days.4": "Do", "globals.days.4": "Do",
"globals.days.5": "Fr", "globals.days.5": "Fr",
"globals.days.6": "Sa", "globals.days.6": "Sa",
"globals.days.7": "So",
"globals.fields.createdAt": "Erstellt", "globals.fields.createdAt": "Erstellt",
"globals.fields.id": "ID", "globals.fields.id": "ID",
"globals.fields.name": "Name", "globals.fields.name": "Name",

View File

@ -112,13 +112,13 @@
"globals.buttons.remove": "Remove", "globals.buttons.remove": "Remove",
"globals.buttons.save": "Save", "globals.buttons.save": "Save",
"globals.buttons.saveChanges": "Save changes", "globals.buttons.saveChanges": "Save changes",
"globals.days.0": "Sun",
"globals.days.1": "Mon", "globals.days.1": "Mon",
"globals.days.2": "Tue", "globals.days.2": "Tue",
"globals.days.3": "Wed", "globals.days.3": "Wed",
"globals.days.4": "Thu", "globals.days.4": "Thu",
"globals.days.5": "Fri", "globals.days.5": "Fri",
"globals.days.6": "Sat", "globals.days.6": "Sat",
"globals.days.7": "Sun",
"globals.fields.createdAt": "Created", "globals.fields.createdAt": "Created",
"globals.fields.id": "ID", "globals.fields.id": "ID",
"globals.fields.name": "Name", "globals.fields.name": "Name",

View File

@ -112,13 +112,13 @@
"globals.buttons.remove": "Supprimer", "globals.buttons.remove": "Supprimer",
"globals.buttons.save": "Enregistrer", "globals.buttons.save": "Enregistrer",
"globals.buttons.saveChanges": "Enregistrer les changements", "globals.buttons.saveChanges": "Enregistrer les changements",
"globals.days.0": "dim",
"globals.days.1": "lun", "globals.days.1": "lun",
"globals.days.2": "mar", "globals.days.2": "mar",
"globals.days.3": "mer", "globals.days.3": "mer",
"globals.days.4": "jeu", "globals.days.4": "jeu",
"globals.days.5": "ven", "globals.days.5": "ven",
"globals.days.6": "sam", "globals.days.6": "sam",
"globals.days.7": "dim",
"globals.fields.createdAt": "Créé le", "globals.fields.createdAt": "Créé le",
"globals.fields.id": "ID", "globals.fields.id": "ID",
"globals.fields.name": "Nom", "globals.fields.name": "Nom",

View File

@ -112,13 +112,13 @@
"globals.buttons.remove": "Cancellare", "globals.buttons.remove": "Cancellare",
"globals.buttons.save": "Salvare", "globals.buttons.save": "Salvare",
"globals.buttons.saveChanges": "Salvare le modifiche", "globals.buttons.saveChanges": "Salvare le modifiche",
"globals.days.0": "dom",
"globals.days.1": "lun", "globals.days.1": "lun",
"globals.days.2": "mar", "globals.days.2": "mar",
"globals.days.3": "mer", "globals.days.3": "mer",
"globals.days.4": "gio", "globals.days.4": "gio",
"globals.days.5": "ven", "globals.days.5": "ven",
"globals.days.6": "sab", "globals.days.6": "sab",
"globals.days.7": "dom",
"globals.fields.createdAt": "Creato il ", "globals.fields.createdAt": "Creato il ",
"globals.fields.id": "ID", "globals.fields.id": "ID",
"globals.fields.name": "Nome", "globals.fields.name": "Nome",

View File

@ -108,13 +108,13 @@
"globals.buttons.remove": "നീക്കം ചെയ്യുക", "globals.buttons.remove": "നീക്കം ചെയ്യുക",
"globals.buttons.save": "സൂക്ഷിക്കുക", "globals.buttons.save": "സൂക്ഷിക്കുക",
"globals.buttons.saveChanges": "മാറ്റങ്ങൾ സൂക്ഷിക്കുക", "globals.buttons.saveChanges": "മാറ്റങ്ങൾ സൂക്ഷിക്കുക",
"globals.days.0": "ഞായർ",
"globals.days.1": "തിങ്കൾ", "globals.days.1": "തിങ്കൾ",
"globals.days.2": "ചൊവ്വ", "globals.days.2": "ചൊവ്വ",
"globals.days.3": "ബുധൻ", "globals.days.3": "ബുധൻ",
"globals.days.4": "വ്യാഴം", "globals.days.4": "വ്യാഴം",
"globals.days.5": "വെള്ളി", "globals.days.5": "വെള്ളി",
"globals.days.6": "ശനി", "globals.days.6": "ശനി",
"globals.days.7": "ഞായർ",
"globals.fields.createdAt": "നിർമ്മിച്ചത്", "globals.fields.createdAt": "നിർമ്മിച്ചത്",
"globals.fields.id": "ഐഡി", "globals.fields.id": "ഐഡി",
"globals.fields.name": "പേര്", "globals.fields.name": "പേര്",

View File

@ -112,13 +112,13 @@
"globals.buttons.remove": "Excluir", "globals.buttons.remove": "Excluir",
"globals.buttons.save": "Salvar", "globals.buttons.save": "Salvar",
"globals.buttons.saveChanges": "Salvar alterações", "globals.buttons.saveChanges": "Salvar alterações",
"globals.days.0": "Dom",
"globals.days.1": "Seg", "globals.days.1": "Seg",
"globals.days.2": "Ter", "globals.days.2": "Ter",
"globals.days.3": "Qua", "globals.days.3": "Qua",
"globals.days.4": "Qui", "globals.days.4": "Qui",
"globals.days.5": "Sex", "globals.days.5": "Sex",
"globals.days.6": "Sáb", "globals.days.6": "Sáb",
"globals.days.7": "Dom",
"globals.fields.createdAt": "Criado", "globals.fields.createdAt": "Criado",
"globals.fields.id": "ID", "globals.fields.id": "ID",
"globals.fields.name": "Nome", "globals.fields.name": "Nome",

View File

@ -111,13 +111,13 @@
"globals.buttons.remove": "Remover", "globals.buttons.remove": "Remover",
"globals.buttons.save": "Guardar", "globals.buttons.save": "Guardar",
"globals.buttons.saveChanges": "Guardar alterações", "globals.buttons.saveChanges": "Guardar alterações",
"globals.days.0": "Dom",
"globals.days.1": "Seg", "globals.days.1": "Seg",
"globals.days.2": "Ter", "globals.days.2": "Ter",
"globals.days.3": "Qua", "globals.days.3": "Qua",
"globals.days.4": "Qui", "globals.days.4": "Qui",
"globals.days.5": "Sex", "globals.days.5": "Sex",
"globals.days.6": "Sáb", "globals.days.6": "Sáb",
"globals.days.7": "Dom",
"globals.fields.createdAt": "Criado a", "globals.fields.createdAt": "Criado a",
"globals.fields.id": "ID", "globals.fields.id": "ID",
"globals.fields.name": "Nome", "globals.fields.name": "Nome",