fix: fallback for languages without a native name

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-09-24 11:43:54 +02:00
parent c6bcb6228b
commit 60b38de69f
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -86,6 +86,10 @@ struct Language
else {
result = locale.nativeLanguageName();
}
if (result.isEmpty()) {
result = key;
}
return result;
}