Merge pull request #14640 from silentoplayz/locales-is-undefined-typeerror-fix

fix: Uncaught (in promise) TypeError: locales is undefined
This commit is contained in:
Tim Jaeryang Baek authored and GitHub committed 2025-06-04 14:07:38 +04:00
commit 5df4f98fc3
1 file changed
+3
@@ -13,6 +13,9 @@
dayjs.extend(relativeTime); dayjs.extend(relativeTime);
async function loadLocale(locales) { async function loadLocale(locales) {
if (!locales || !Array.isArray(locales)) {
return;
}
for (const locale of locales) { for (const locale of locales) {
try { try {
dayjs.locale(locale); dayjs.locale(locale);