Tried to import dynamically locale following this answer.
import(`dayjs/locale/${currentLocale}`)
.then(() => {
dayjs.locale(currentLocale);
});
Got the error:
Invalid call at line 26: import("dayjs/locale/" + currentLocale)
I guess it more the "web way" - Following this I understand that I need to load all dayjs locales in compile time.
How do I do that?