Namespace UnityEngine.Localization.Samples
Classes
CreateAndSetupLocalizationSettingsExample
This example shows how to create and setup localization support for several languages and make it active.
CustomLocalesProvider
By default the locale provider uses the Addressables system to load all supported locales. This example shows how to create a locale provider that includes the locales built in and requires no loading from Addressables. To use this, create a Custom Locale Provider asset through the asset menu and drag the asset into the Localization settings Locales Provider field.
LanguageSelectionMenuExample
This example shows how a simple language selection menu can be implemented.
LanguageSelectionMenuExample.SimpleLocalesProvider
LocaleFallbackExample
This example shows how the fallback locale can be configured.
LocaleIdentifierCultureInfoExample
This example shows how the cultureInfo can be retrieved after creating a LocaleIdentifier using a Code.
LocaleIdentifierIdExample1
This example shows the various ways to create a LocaleIdentifier.
LocaleIdentifierIdExample2
This shows how to create a locale for English and a regional locale for English(US).
LocaleNameExample
This example sets the name to include both English and Japanese.
LocaleWithIconExample
PlayerPrefLocaleSelector
This example shows how we can create a Locale selector that uses the Player Prefs to keep track of the last used locale. Whenever the locale is changed, we record the new Locale and update the player pref
PluralFormExample
This example shows how the PluralForm can be used to select the correct plural to display.