Empty LocalizationSettings.AvailableLocales.Locales on start

Hi. I’m trying to set locale, based on the chosen in player save. I made this on start:

Locale locale = LocalizationSettings.AvailableLocales.Locales.FirstOrDefault(l => l.Formatter.ToString() == playerSave.language);
SetLocale(locale);

It works fine in editor, but not in webgl build. LocalizationSettings.AvailableLocales.Locales is empty on start.
What’s the proper way to set language, should I wait for some kind of initialisation before calling LocalizationSettings.AvailableLocales.Locales?

Hi,
You will need to wait for the localization initialization operation to finish.
However, I would suggest looking at creating a custom locale selector or using the PlayerPrefsLocaleSelector which should do what you need.