getLocale

abstract fun getLocale(): String(source)

The current application locale, fetched using Chromium's l10n_util library. Possible return values are documented here.

To set the locale, you'll want to use a command line switch at app startup, which may be found here.

!NOTE When distributing your packaged app, you have to also ship the locales folder.

!NOTE This API must be called after the ready event is emitted.

!NOTE To see example return values of this API compared to other locale and language APIs, see app.getPreferredSystemLanguages().