We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3d950 commit 212c014Copy full SHA for 212c014
src/core/date.ts
@@ -88,8 +88,11 @@ export function initDayJsPlugins() {
88
}
89
90
export async function setDateLocale(locale: string) {
91
+ locale = locale.toLowerCase();
92
if (locale !== dayjs.locale()) {
- const localePath = resourcePath(`library/dayjs/locale/${locale}.js`);
93
+ const localePath = resourcePath(
94
+ `library/dayjs/locale/${locale}.js`,
95
+ );
96
if (existsSync(localePath)) {
97
const localeUrl = toFileUrl(localePath).href;
98
const localeModule = await import(localeUrl);
0 commit comments