forked from MapComplete/MapComplete
Add binoculars theme, auto reformat everything
This commit is contained in:
parent
38dea806c5
commit
78d6482c88
586 changed files with 115573 additions and 111842 deletions
|
@ -3,16 +3,16 @@ import Locale from "./i18n/Locale";
|
|||
import BaseUIElement from "./BaseUIElement";
|
||||
|
||||
export default class LanguagePicker {
|
||||
|
||||
|
||||
|
||||
public static CreateLanguagePicker(
|
||||
languages : string[] ,
|
||||
languages: string[],
|
||||
label: string | BaseUIElement = "") {
|
||||
|
||||
if (languages.length <= 1) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
return new DropDown(label, languages.map(lang => {
|
||||
return {value: lang, shown: lang}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue