Module: helpers/utils/locale
Table of contents
Functions
Functions
getLocale
▸ getLocale(): string
Retrieves the most appropriate locale for the application based on user preference, system setting, or i18next's default configuration.
Priority:
- User-defined language stored in
userStore
. - System's preferred language obtained via Electron's
app.getLocale()
. - Default locale specified in i18next configuration.
Returns
string
The determined locale string.
Defined in
src/electron/helpers/utils/locale.ts:18 (opens in a new tab)