Locale.Current

From Xojo Documentation

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

Shared Property (As Locale)

The property is read-only.

LocaleValue = aLocale.Current

The user's current locale. For web apps, this is the locale of the server. To get the locale of the browser, use WebSession.LanguageCode.

Sample Code

Get the current locale:

Var currentLocale As Locale
currentLocale = Locale.Current