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

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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.

fa-exclamation-circle-32.png
A RuntimeException will be raised if an invalid localeIdentifier is passed.

Links to look up codes:

Sample Code

Create an English US locale:

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