summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-09-20 12:16:13 +0200
committerAndrej Mihajlov <and@mullvad.net>2019-09-25 10:38:30 +0200
commitff1ffa5b8b17141fe4f9bc7686db273757e2c45c (patch)
treea6f3ce20e2fc7a0a09c5fef33a7682bba5b07f2c /gui/src/main
parent5a7859670c4a22cb5fecd39c7c7c410f8bef4ff1 (diff)
downloadmullvadvpn-ff1ffa5b8b17141fe4f9bc7686db273757e2c45c.tar.xz
mullvadvpn-ff1ffa5b8b17141fe4f9bc7686db273757e2c45c.zip
Add language setting
Diffstat (limited to 'gui/src/main')
-rw-r--r--gui/src/main/gui-settings.ts8
1 files changed, 8 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 });
}