aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings/settings.js
diff options
context:
space:
mode:
authorEkaterina Vaartis <vaartis@cock.li>2018-08-25 13:12:33 +0300
committerEkaterina Vaartis <vaartis@cock.li>2018-08-25 13:29:49 +0300
commitc1e4bfa90ffa26e203ca61717b4fb99209ad0d99 (patch)
tree39a63cb4156cd08bcf960cff51be2de09c1d6af8 /src/components/settings/settings.js
parent30a6b7be5bf53611bb65cbabd18ad003989df8e3 (diff)
Make interface language configurable from settings
The locale can now be configured in settings and is stored in Vuex. The changes are applied immidiately after selection. The list of languages is taken from the messages file, which contains all the available locales (and a new value, `interfaceLanguage`, to control the translation of this option in the options menu) Closes #36
Diffstat (limited to 'src/components/settings/settings.js')
-rw-r--r--src/components/settings/settings.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js
index d5ca33cc..f8eaad00 100644
--- a/src/components/settings/settings.js
+++ b/src/components/settings/settings.js
@@ -1,5 +1,6 @@
/* eslint-env browser */
import StyleSwitcher from '../style_switcher/style_switcher.vue'
+import InterfaceLanguageSwitcher from '../interface_language_switcher/interface_language_switcher.vue'
import { filter, trim } from 'lodash'
const settings = {
@@ -28,7 +29,8 @@ const settings = {
}
},
components: {
- StyleSwitcher
+ StyleSwitcher,
+ InterfaceLanguageSwitcher
},
computed: {
user () {