Function clearPersistedLocalePreference

Source
clearPersistedLocalePreference(): void

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.