Clear the locale preference previously presisted to localStorage
If you are doing this, you should probably call setLocale
or i18next.changeLanguage (depending on your setup) immediately
before this with convertToSupportedLocaleOrDefault(getPreferredLocale())
so the current locale is set to user's preferred locale.
Note if persist is true when initializing,
subsequence setLocale calls will still persist the value.
Clear the locale preference previously presisted to localStorage
If you are doing this, you should probably call
setLocale
ori18next.changeLanguage
(depending on your setup) immediately before this withconvertToSupportedLocaleOrDefault(getPreferredLocale())
so the current locale is set to user's preferred locale.Note if
persist
istrue
when initializing, subsequencesetLocale
calls will still persist the value.