[tts] Restore languages.hpp in platform directory

This commit is contained in:
Ilya Zverev 2017-06-27 17:16:24 +03:00 committed by Vladimir Byko-Ianko
parent 100e461d13
commit 645f7c0321
2 changed files with 50 additions and 1 deletions

View file

@ -7,7 +7,7 @@
#include "LocaleTranslator.h"
#include "Framework.h"
#include "sound/tts/languages.hpp"
#include "platform/languages.hpp"
using namespace locale_translator;

49
platform/languages.hpp Normal file
View file

@ -0,0 +1,49 @@
#pragma once
#include <array>
#include <string>
#include <utility>
// 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<std::pair<std::string, std::string>, 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