Locale.Constructor(localeIdentifier As String)

From Xojo Documentation

Constructor

Locale.Constructor(localeIdentifier As String)

New in 2019r2

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:

A RuntimeException is raised when an invalid localeIdentifier is used.

Sample Code

Create an English US locale:

Var USEnglishLocale As New Locale("en-US")