Skip to content

Commit

Permalink
Microsoft Cogntive service url is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
salarcode committed Jul 25, 2021
1 parent 8c6e8fd commit 23c25db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AutoResxTranslator/GTranslateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace AutoResxTranslator
{
public class GTranslateService
{
private const string RequestUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0";
private const string RequestUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0";
private const string RequestGoogleTranslatorUrl = "https://translate.googleapis.com/translate_a/single?client=gtx&sl={0}&tl={1}&hl=en&dt=t&dt=bd&dj=1&source=icon&tk=467103.467103&q={2}";


Expand Down
2 changes: 1 addition & 1 deletion AutoResxTranslator/MSTranslateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace AutoResxTranslator
/// </summary>
public class MsTranslateService
{
private const string MsCognitiveServicesApiUrl = "https://api-apc.cognitive.microsofttranslator.com";
private const string MsCognitiveServicesApiUrl = "https://api.cognitive.microsofttranslator.com";

public static async Task<ResultHolder<string>> TranslateAsync(string text,
string fromLanguage,
Expand Down
6 changes: 3 additions & 3 deletions AutoResxTranslator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Salar Khalilzadeh")]
[assembly: AssemblyProduct("AutoResxTranslator")]
[assembly: AssemblyCopyright("Copyright © Salar Khalilzadeh 2019")]
[assembly: AssemblyCopyright("Copyright © Salar Khalilzadeh 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -29,5 +29,5 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("b7bafe70-b0e7-494a-aa38-49b8eee414f1")]

[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: AssemblyVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]

0 comments on commit 23c25db

Please sign in to comment.