mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
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
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue