diff --git a/iphone/Maps/Classes/CustomViews/NavigationDashboard/Sound/MWMTextToSpeech.mm b/iphone/Maps/Classes/CustomViews/NavigationDashboard/Sound/MWMTextToSpeech.mm index 05374fa2a2..4f7af918b7 100644 --- a/iphone/Maps/Classes/CustomViews/NavigationDashboard/Sound/MWMTextToSpeech.mm +++ b/iphone/Maps/Classes/CustomViews/NavigationDashboard/Sound/MWMTextToSpeech.mm @@ -7,7 +7,7 @@ #include "LocaleTranslator.h" #include "Framework.h" -#include "sound/tts/languages.hpp" +#include "platform/languages.hpp" using namespace locale_translator; diff --git a/platform/languages.hpp b/platform/languages.hpp new file mode 100644 index 0000000000..303d19ace0 --- /dev/null +++ b/platform/languages.hpp @@ -0,0 +1,49 @@ +#pragma once + +#include +#include +#include + +// The list of languages which can be used by TTS. +// It shall be included in Android (jni) and iOS parts to get the languages list. + +namespace routing +{ +namespace turns +{ +namespace sound +{ +std::array, 28> const kLanguageList = +{{ + {"en", "English"}, + {"ru", "Русский"}, + {"es", "Español"}, + {"de", "Deutsch"}, + {"fr", "Français"}, + {"zh-Hant", "中文繁體"}, + {"zh-Hans", "中文简体"}, + {"pt", "Português"}, + {"th", "ภาษาไทย"}, + {"tr", "Türkçe"}, + {"ar", "العربية"}, + {"cs", "Čeština"}, + {"da", "Dansk"}, + {"el", "Ελληνικά"}, + {"fi", "Suomi"}, + {"hi", "हिंदी"}, + {"hr", "Hrvatski"}, + {"hu", "Magyar"}, + {"id", "Indonesia"}, + {"it", "Italiano"}, + {"ja", "日本語"}, + {"ko", "한국어"}, + {"nl", "Nederlands"}, + {"pl", "Polski"}, + {"ro", "Română"}, + {"sk", "Slovenčina"}, + {"sv", "Svenska"}, + {"sw", "Kiswahili"} +}}; +} // namespace sound +} // namespace turns +} // namespace routing