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

This commit is contained in:
Kwoth committed 2016-07-21 12:50:33 +02:00
1 parent a8f33e5665
commit f1cf11ae8e
1 file changed
+1 -1
@@ -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