[ios] Added setting for map language

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-07-24 21:32:04 +02:00
committed by Konstantin Pastbin
parent 1fe8f1f0e6
commit 1cf4ff21ec
12 changed files with 174 additions and 23 deletions

View File

@@ -2498,6 +2498,16 @@ void Framework::SetMapLanguageCode(std::string const & langCode)
m_searchAPI->SetLocale(langCode);
}
void Framework::ResetMapLanguageCode()
{
settings::Delete(settings::kMapLanguageCode);
if (m_drapeEngine)
ApplyMapLanguageCode(languages::GetCurrentMapLanguage());
if (m_searchAPI)
m_searchAPI->SetLocale(languages::GetCurrentMapLanguage());
}
void Framework::ApplyMapLanguageCode(std::string const & langCode)
{
int8_t langIndex = StringUtf8Multilang::GetLangIndex(langCode);