Method GetLocale
GetLocale(LocaleIdentifier)
Attempt to retrieve a Locale or fallback Locale using the identifier.
Declaration
public Locale GetLocale(LocaleIdentifier id)
Parameters
Type | Name | Description |
---|---|---|
LocaleIdentifier | id | LocaleIdentifier to find. |
Returns
Type | Description |
---|---|
Locale | If no Locale can be found then null is returned. |
Implements
GetLocale(string)
Attempt to retrieve a Locale or fallback Locale using a Code.
Declaration
public Locale GetLocale(string code)
Parameters
Type | Name | Description |
---|---|---|
string | code | If no Locale can be found then null is returned. |
Returns
Type | Description |
---|---|
Locale |
GetLocale(SystemLanguage)
Attempt to retrieve a Locale or fallback Locale using a SystemLanguage.
Declaration
public Locale GetLocale(SystemLanguage systemLanguage)
Parameters
Type | Name | Description |
---|---|---|
SystemLanguage | systemLanguage |
Returns
Type | Description |
---|---|
Locale | If no Locale can be found then null is returned. |