public static bool SetLocale(string locale) { foreach (var localeSettings in m_settings.locales) { if (localeSettings.name.Equals(locale, StringComparison.OrdinalIgnoreCase)) { m_currentLocaleSettings = localeSettings; return(true); } } Debug.LogWarningFormat("Localization.SetLocale(): locale '{0}' not exists", locale); return(false); }
public static void Initialize(LocalizationSettings settings) { m_settings = settings; m_currentLocaleSettings = m_settings.locales[0]; }