mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-31 18:13:44 +00:00
[core] Support geo-navigation URL
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -579,6 +579,11 @@ std::string GetCurrentMapLanguage()
|
||||
return languageCode;
|
||||
}
|
||||
|
||||
std::string GetMostPreferredLang()
|
||||
{
|
||||
return std::string(StringUtf8Multilang::GetLangByCode(GetPreferredLangIndexes()[0]));
|
||||
}
|
||||
|
||||
std::vector<int8_t> GetPreferredLangIndexes()
|
||||
{
|
||||
std::vector<int8_t> langs = {};
|
||||
|
||||
Reference in New Issue
Block a user