From Xojo Documentation

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

Shared Property (As Xojo.Core.Locale)

The property is read-only.

Xojo.Core.LocaleValue = aXojo.Core.Locale.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 Xojo.Core.Locale
currentLocale = Xojo.Core.Locale.Current