Xojo.Core.Locale.Constructor(localeIdentifier As Text)

From Xojo Documentation

Constructor
Xojo.Core.Locale.Constructor(localeIdentifier As Text)

Creates a locale with the given localeIdentifier.

Notes

As an example, "en-US" is used as a localeIdentifier for English in the United States.

Links to look up codes:

Exceptions

RuntimeException when an invalid localeIdentifier is used.

Sample Code

Create an English US locale:

Dim locale As New Xojo.Core.Locale("en-US")