fix(air-datepicker): unwrap Vite locale modules so it doesn't default to russian

This commit is contained in:
Herculino Trotta
2026-07-10 17:49:46 -03:00
parent fee40fd527
commit 83286fff5f
+3 -2
View File
@@ -87,11 +87,12 @@ export const getLocale = async (langCode) => {
const locale = allLocales[langCode];
if (locale) {
return locale;
return locale.default ?? locale;
}
console.warn(`Could not find locale for '${langCode}'. Defaulting to English.`);
return allLocales['en']; // Default to English
const fallbackLocale = allLocales['en'];
return fallbackLocale.default ?? fallbackLocale;
};
function isMobileDevice() {