forked from MapComplete/MapComplete
Handle metadata in translations
This commit is contained in:
parent
30a835a232
commit
efb54782ca
6 changed files with 47 additions and 24 deletions
|
@ -42,6 +42,9 @@ export default class LanguagePicker extends Toggle {
|
|||
return new Translation({ "*": nativeText })
|
||||
}
|
||||
for (const key in trans) {
|
||||
if(key.startsWith("_")){
|
||||
continue
|
||||
}
|
||||
const translationInKey = allTranslations[lang][key]
|
||||
if (nativeText.toLowerCase() === translationInKey.toLowerCase()) {
|
||||
translation[key] = nativeText
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue