Add language names to the language picker

This commit is contained in:
Pieter Vander Vennet 2022-02-24 02:33:20 +01:00
parent 793d765ead
commit d8a0ca321b
7 changed files with 38404 additions and 12 deletions

View file

@ -778,5 +778,16 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
}
}
public static MapToObj<T>(d : Map<string, T>, onValue: ((t:T) => any) = undefined): object{
const o = {}
d.forEach((value, key) => {
if(onValue !== undefined){
value = onValue(value)
}
o[key] = value;
})
return o
}
}