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

From Xojo Documentation

Revision as of 21:51, 20 February 2022 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!


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

Creates a locale with the given localeIdentifier.


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

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")