Regenerate native languages

This commit is contained in:
Pieter Vander Vennet 2022-04-19 01:55:14 +02:00
parent 2262bcb86c
commit 5781b10eb6
3 changed files with 213 additions and 168 deletions

View file

@ -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
}