Use default language constant

This commit is contained in:
schroda
2026-01-30 22:16:15 +01:00
parent 76474712a3
commit 307dc95533
2 changed files with 5 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
*/
import { DAYJS_LOCALES, DayJsLocale } from '@/lib/dayjs/Locales.ts';
import { DEFAULT_LANGUAGE } from '@/lib/ISOLanguageUtil.ts';
export const getDayJsLocale = (locale: string): DayJsLocale => {
if (DAYJS_LOCALES.includes(locale as DayJsLocale)) {
@@ -22,7 +23,7 @@ export const getDayJsLocale = (locale: string): DayJsLocale => {
return convertedLocale as DayJsLocale;
}
return 'en';
return DEFAULT_LANGUAGE;
};
export const importDayJsLocale = async (locale: string): Promise<DayJsLocale> => {