diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-09-20 12:16:13 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-09-25 10:38:30 +0200 |
| commit | ff1ffa5b8b17141fe4f9bc7686db273757e2c45c (patch) | |
| tree | a6f3ce20e2fc7a0a09c5fef33a7682bba5b07f2c /gui | |
| parent | 5a7859670c4a22cb5fecd39c7c7c410f8bef4ff1 (diff) | |
| download | mullvadvpn-ff1ffa5b8b17141fe4f9bc7686db273757e2c45c.tar.xz mullvadvpn-ff1ffa5b8b17141fe4f9bc7686db273757e2c45c.zip | |
Add language setting
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/src/main/gui-settings.ts | 8 | ||||
| -rw-r--r-- | gui/src/shared/gui-settings-state.ts | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gui/src/main/gui-settings.ts b/gui/src/main/gui-settings.ts index 895781099e..2a0cad2841 100644 --- a/gui/src/main/gui-settings.ts +++ b/gui/src/main/gui-settings.ts @@ -10,6 +10,14 @@ export default class GuiSettings { return this.stateValue; } + set preferredLocale(newValue: string | undefined) { + this.changeStateAndNotify({ ...this.stateValue, preferredLocale: newValue }); + } + + get preferredLocale(): string | undefined { + return this.preferredLocale; + } + set enableSystemNotifications(newValue: boolean) { this.changeStateAndNotify({ ...this.stateValue, enableSystemNotifications: newValue }); } diff --git a/gui/src/shared/gui-settings-state.ts b/gui/src/shared/gui-settings-state.ts index fdda92d830..42bb05a062 100644 --- a/gui/src/shared/gui-settings-state.ts +++ b/gui/src/shared/gui-settings-state.ts @@ -1,4 +1,5 @@ export interface IGuiSettingsState { + preferredLocale?: string; enableSystemNotifications: boolean; autoConnect: boolean; monochromaticIcon: boolean; |
