|
namespace HoLLy.DiscordBot.Sandwich.Tools { |
|
public static class GoogleTranslate |
|
{ |
|
private const string TranslateEndpoint = "https://translate.google.com/translate_a/single"; |
|
private const string TtsEndpoint = "https://translate.google.com/translate_tts"; |
|
public static readonly Dictionary<string, string> Languages = new Dictionary<string, string> { |
|
{"auto", "Automatic"}, {"af", "Afrikaans"}, {"sq", "Albanian"}, {"am", "Amharic"}, {"ar", "Arabic"}, {"hy", "Armenian"}, |
|
{"az", "Azerbaijani"}, {"eu", "Basque"}, {"be", "Belarusian"}, {"bn", "Bengali"}, {"bs", "Bosnian"}, {"bg", "Bulgarian"}, |
|
{"ca", "Catalan"}, {"ceb", "Cebuano"}, {"ny", "Chichewa"}, {"zh-cn", "Chinese Simp."}, {"zh-tw", "Chinese Trad."}, |
|
{"co", "Corsican"}, {"hr", "Croatian"}, {"cs", "Czech"}, {"da", "Danish"}, {"nl", "Dutch"}, {"en", "English"}, {"eo", "Esperanto"}, |