fix: fallback for languages without a native name
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
c6bcb6228b
commit
60b38de69f
@ -86,6 +86,10 @@ struct Language
|
|||||||
else {
|
else {
|
||||||
result = locale.nativeLanguageName();
|
result = locale.nativeLanguageName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (result.isEmpty()) {
|
||||||
|
result = key;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user