mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
s/tabs/spaces/
This commit is contained in:
parent
f412552c2c
commit
a95f3252b8
1 changed files with 12 additions and 12 deletions
|
@ -43,16 +43,16 @@ export default class LanguageDropdown extends React.Component {
|
|||
}
|
||||
|
||||
componentWillMount() {
|
||||
const languageKeys = SdkConfig.get().languages;
|
||||
const languageKeys = SdkConfig.get().languages;
|
||||
|
||||
// Build const LANGUAGES in a way that counterpart allows translation inside object:
|
||||
languageKeys.forEach(function(languageKey) {
|
||||
var l = {};
|
||||
l.id = "language";
|
||||
l.label = _t(languageKey);
|
||||
l.value = languageKey;
|
||||
LANGUAGES.push(l);
|
||||
});
|
||||
// Build const LANGUAGES in a way that counterpart allows translation inside object:
|
||||
languageKeys.forEach(function(languageKey) {
|
||||
var l = {};
|
||||
l.id = "language";
|
||||
l.label = _t(languageKey);
|
||||
l.value = languageKey;
|
||||
LANGUAGES.push(l);
|
||||
});
|
||||
|
||||
LANGUAGES = LANGUAGES.sort(function(a, b){
|
||||
if(a.label < b.label) return -1;
|
||||
|
@ -60,9 +60,9 @@ export default class LanguageDropdown extends React.Component {
|
|||
return 0;
|
||||
})
|
||||
|
||||
for (const l of LANGUAGES) {
|
||||
LANGUAGES_BY_VALUE[l.value] = l;
|
||||
}
|
||||
for (const l of LANGUAGES) {
|
||||
LANGUAGES_BY_VALUE[l.value] = l;
|
||||
}
|
||||
|
||||
|
||||
if (!this.props.value) {
|
||||
|
|
Loading…
Reference in a new issue