Fix weekday i18n for target charge dialog (#6549)
Some checks failed
Some checks failed
This commit is contained in:
parent
f99fd4c80e
commit
0828acf030
1 changed files with 2 additions and 2 deletions
|
|
@ -302,12 +302,12 @@ export default {
|
|||
this.$t("main.targetCharge.tomorrow"),
|
||||
];
|
||||
for (let i = 0; i < 7; i++) {
|
||||
const dayNumber = date.toLocaleDateString("default", {
|
||||
const dayNumber = date.toLocaleDateString(this.$i18n.locale, {
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
});
|
||||
const dayName =
|
||||
labels[i] || date.toLocaleDateString("default", { weekday: "long" });
|
||||
labels[i] || date.toLocaleDateString(this.$i18n.locale, { weekday: "long" });
|
||||
options.push({
|
||||
value: this.fmtDayString(date),
|
||||
name: `${dayNumber} (${dayName})`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue