forked from matrix/element-web
Remove refs to counterpart
and remove extCounterpart which is unnecessary now we just use a single counterpart instance
This commit is contained in:
parent
b95da4a40c
commit
7636212bed
|
@ -55,8 +55,6 @@ if (process.env.NODE_ENV !== 'production') {
|
||||||
|
|
||||||
var RunModernizrTests = require("./modernizr"); // this side-effects a global
|
var RunModernizrTests = require("./modernizr"); // this side-effects a global
|
||||||
var ReactDOM = require("react-dom");
|
var ReactDOM = require("react-dom");
|
||||||
// Workaround for broken export
|
|
||||||
import * as counterpart from 'counterpart-riot';
|
|
||||||
var sdk = require("matrix-react-sdk");
|
var sdk = require("matrix-react-sdk");
|
||||||
var PlatformPeg = require("matrix-react-sdk/lib/PlatformPeg");
|
var PlatformPeg = require("matrix-react-sdk/lib/PlatformPeg");
|
||||||
sdk.loadSkin(require('../component-index'));
|
sdk.loadSkin(require('../component-index'));
|
||||||
|
@ -317,7 +315,7 @@ async function loadApp() {
|
||||||
async function loadLanguage() {
|
async function loadLanguage() {
|
||||||
const lang = UserSettingsStore.getLocalSetting('language', languageHandler.getLanguageFromBrowser());
|
const lang = UserSettingsStore.getLocalSetting('language', languageHandler.getLanguageFromBrowser());
|
||||||
const languages = languageHandler.getNormalizedLanguageKeys(lang);
|
const languages = languageHandler.getNormalizedLanguageKeys(lang);
|
||||||
languageHandler.setLanguage(languages, counterpart);
|
languageHandler.setLanguage(languages);
|
||||||
}
|
}
|
||||||
|
|
||||||
loadApp();
|
loadApp();
|
||||||
|
|
Loading…
Reference in New Issue