mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Convert local settings to granular settings
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
f6177cd7b5
commit
ccf52b2a69
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,6 @@ sdk.loadSkin(require('../component-index'));
|
|||
var VectorConferenceHandler = require('../VectorConferenceHandler');
|
||||
import Promise from 'bluebird';
|
||||
var request = require('browser-request');
|
||||
import * as UserSettingsStore from 'matrix-react-sdk/lib/UserSettingsStore';
|
||||
import * as languageHandler from 'matrix-react-sdk/lib/languageHandler';
|
||||
// Also import _t directly so we can call it just `_t` as this is what gen-i18n.js expects
|
||||
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
||||
|
@ -78,6 +77,7 @@ import {parseQs, parseQsFromFragment} from './url_utils';
|
|||
import Platform from './platform';
|
||||
|
||||
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
|
||||
import SettingsStore from "../../../matrix-react-sdk/src/settings/SettingsStore";
|
||||
|
||||
var lastLocationHashSet = null;
|
||||
|
||||
|
@ -328,7 +328,7 @@ async function loadApp() {
|
|||
}
|
||||
|
||||
async function loadLanguage() {
|
||||
const prefLang = UserSettingsStore.getLocalSetting('language');
|
||||
const prefLang = SettingsStore.getValue("language");
|
||||
let langs = [];
|
||||
|
||||
if (!prefLang) {
|
||||
|
|
Loading…
Reference in a new issue