Xojo.Core.Locale.Identifier
From Xojo Documentation
Read-Only Property (As Text )
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: