refactor: update weekday localization to use narrow format in getL10Weekday utility
This commit is contained in:
parent
d8a38786fb
commit
48d3b6f559
|
@ -2,7 +2,7 @@ export default (userLang: string) => {
|
||||||
const newL10nDays = []
|
const newL10nDays = []
|
||||||
for (let i = 0; i < 7; i++) {
|
for (let i = 0; i < 7; i++) {
|
||||||
const date = new Date(2021, 0, i + 4)
|
const date = new Date(2021, 0, i + 4)
|
||||||
newL10nDays.push(date.toLocaleDateString(userLang, {weekday: 'short'}))
|
newL10nDays.push(date.toLocaleDateString(userLang, {weekday: "narrow"}))
|
||||||
}
|
}
|
||||||
return newL10nDays
|
return newL10nDays
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user