From Xojo Documentation

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

Read-Only Property (As String )
StringValue = aLocale.Identifier

New in 2019r2

Supported for all project types and targets.

This is the locale's identifier. The identifier may not exactly match the identifier passed in via the constructor due to conversions (e.g. 'en_US' could become 'en-US').

Sample Code

Get the locale's identifier:

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

Var id As String
id = locale.Identifier