Skip to content

ElectronApp.getLocaleCountryCode method

ElectronApp › getLocaleCountryCode

Unofficial

Returns the operating system's locale two-letter ISO 3166 country code.

Signature:

getLocaleCountryCode(): string

Returns: stringThe country code, or an empty string when it cannot be detected.