You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to downgrade to 1.9.8 and it is working in that version.
Edit: Actually only some are working in 1.9.8 version. "es" for example is not working whereas "en-gb" is. Wonder if the locales simply need to be updated.
@iamkun : got the same issue with the code snippet, global locale is override:
import dayjs from 'dayjs';
import locale from 'dayjs/locale/vi';
dayjs.locale(locale);
dayjs().locale('en-us');
let determinedLocale = dayjs.locale();
// will log 'en' instead of 'vi'
console.log('locale changed by local instance ', determinedLocale);
Issue version: 1.11.1
Works fine with older version like : 1.9.8 & 1.10.8
Describe the bug
dayjs locale config is ignored and it uses automaticly browser locale
Expected behavior
in main react page
and in my component
the language changes to french but when i refrech it comeback english (i think its because the browser locale)
but when i do this it works as french always
how can i config the language clearly without using the locale for each time
Information
The text was updated successfully, but these errors were encountered: