Class UpgradedLocalesProvider
Answers the package's locale queries from the built-in localization module.
Implements
Namespace: UnityEngine.Localization.Upgrade
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class UpgradedLocalesProvider : ILocalesProvider
Remarks
The upgrade wizard installs this in place of LocalesProvider, which loads locale assets through Addressables. After an upgrade the module owns the locale list and the old locale assets may be gone, so this provider mirrors the module's locales as in-memory package locales and never touches Addressables. The list is read-only from the package side; manage locales in Project Settings > Localization.
Properties
| Name | Description |
|---|---|
| Locales | The list of Locales available. |
Methods
| Name | Description |
|---|---|
| AddLocale(Locale) | Reports that the module owns the locale list and adds nothing. |
| GetLocale(LocaleIdentifier) | Attempt to retrieve a Locale using the identifier. |
| RemoveLocale(Locale) | Reports that the module owns the locale list and removes nothing. |