~trans now correctly translates multiple sentences at once. Thanks @Myoshu

This commit is contained in:
Kwoth 2016-07-21 12:50:33 +02:00
parent a8f33e5665
commit f1cf11ae8e

View File

@ -60,7 +60,7 @@ namespace NadekoBot.Modules.Translator.Helpers
text = await http.GetStringAsync(url).ConfigureAwait(false);
}
return JArray.Parse(text)[0][0][0].ToString();
return (string.Join("", JArray.Parse(text)[0].Select(x => x[0])));
}
#endregion