有人能告诉我一个如何用google translate api进行多个短语翻译的例子吗?
我现在正在使用以下内容:
var service = new TranslateService(new BaseClientService.Initializer()
{
ApiKey = "my-key-here",
ApplicationName = "something"
});
string[] translatelist = new string[] { contentToTranslate, "en" };
var response = service.Translations.List(translatelist, "tr").ExecuteAsync();
string translatedtext = response.Result.Translations[0].TranslatedText;
我尝试制作二维翻译列表,但它没有用。提前谢谢。