refactor: update weekday localization to use narrow format in getL10Weekday utility

This commit is contained in:
Astrian Zheng 2025-02-19 15:26:11 +11:00
parent d8a38786fb
commit 48d3b6f559
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -2,7 +2,7 @@ export default (userLang: string) => {
const newL10nDays = []
for (let i = 0; i < 7; i++) {
const date = new Date(2021, 0, i + 4)
newL10nDays.push(date.toLocaleDateString(userLang, {weekday: 'short'}))
newL10nDays.push(date.toLocaleDateString(userLang, {weekday: "narrow"}))
}
return newL10nDays
}