using System.Diagnostics;
//Change &tl= parameter (English &tl=en) to your preferred language in string url= line.
//Language codes are found: https://cloud.google.com/translate/docs/languages
public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
string url = "https://translate.google.com/?sl=auto&tl=en&op=translate&text={0}";
url = string.Format(url, text.Replace(' ', '+'));
Process.Start(new ProcessStartInfo
{
FileName = url,
UseShellExecute = true
});
return text;
}
}