mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
[ios] Respect system language order for map with mutiple regional languages
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
5333ad3597
commit
bd80e9160d
@@ -113,6 +113,12 @@ bool IsNativeLang(feature::RegionData const & regionData, int8_t deviceLang)
|
||||
if (regionData.HasLanguage(deviceLang))
|
||||
return true;
|
||||
|
||||
for (auto const lang : languages::GetPreferredLangIndexes())
|
||||
{
|
||||
if (regionData.HasLanguage(lang))
|
||||
return true;
|
||||
}
|
||||
|
||||
for (auto const lang : GetSimilarLanguages(deviceLang))
|
||||
{
|
||||
if (regionData.HasLanguage(lang))
|
||||
|
||||
Reference in New Issue
Block a user