1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

s/tabs/spaces/

This commit is contained in:
David Baker
2017-05-24 10:48:10 +01:00
parent f412552c2c
commit a95f3252b8

View File

@@ -43,16 +43,16 @@ export default class LanguageDropdown extends React.Component {
} }
componentWillMount() { componentWillMount() {
const languageKeys = SdkConfig.get().languages; const languageKeys = SdkConfig.get().languages;
// Build const LANGUAGES in a way that counterpart allows translation inside object: // Build const LANGUAGES in a way that counterpart allows translation inside object:
languageKeys.forEach(function(languageKey) { languageKeys.forEach(function(languageKey) {
var l = {}; var l = {};
l.id = "language"; l.id = "language";
l.label = _t(languageKey); l.label = _t(languageKey);
l.value = languageKey; l.value = languageKey;
LANGUAGES.push(l); LANGUAGES.push(l);
}); });
LANGUAGES = LANGUAGES.sort(function(a, b){ LANGUAGES = LANGUAGES.sort(function(a, b){
if(a.label < b.label) return -1; if(a.label < b.label) return -1;
@@ -60,9 +60,9 @@ export default class LanguageDropdown extends React.Component {
return 0; return 0;
}) })
for (const l of LANGUAGES) { for (const l of LANGUAGES) {
LANGUAGES_BY_VALUE[l.value] = l; LANGUAGES_BY_VALUE[l.value] = l;
} }
if (!this.props.value) { if (!this.props.value) {