forked from MapComplete/MapComplete
Regenerate native languages
This commit is contained in:
parent
2262bcb86c
commit
5781b10eb6
3 changed files with 213 additions and 168 deletions
|
@ -93,12 +93,15 @@ function extract(data){
|
|||
|
||||
function getNativeList(langs: Map<string, Map<string, string>>){
|
||||
const native = {}
|
||||
langs.forEach((translations, key ) =>{
|
||||
const keys: string[] = Array.from(langs.keys())
|
||||
keys.sort()
|
||||
for (const key of keys) {
|
||||
const translations: Map<string, string> = langs.get(key)
|
||||
if(!usedLanguages.has(key)){
|
||||
return
|
||||
continue
|
||||
}
|
||||
native[key] = translations.get(key)
|
||||
})
|
||||
}
|
||||
return native
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue