From 8aeda606eb073fb71779c5afb4e69fcb8223a8a3 Mon Sep 17 00:00:00 2001 From: zggsong Date: Sun, 7 Jan 2024 10:54:34 +0800 Subject: [PATCH] perf: update google api --- .gitignore | 1 + STranslate/Helper/ConfigHelper.cs | 4 ++-- STranslate/Properties/PublishProfiles/FolderProfile.pubxml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index aca15c0e..fd1d7118 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ obj/ packages/ .DS_Store +/STranslate/Properties/PublishProfiles/FolderProfile.pubxml diff --git a/STranslate/Helper/ConfigHelper.cs b/STranslate/Helper/ConfigHelper.cs index e1f20f2e..d0df1043 100644 --- a/STranslate/Helper/ConfigHelper.cs +++ b/STranslate/Helper/ConfigHelper.cs @@ -203,8 +203,8 @@ private ConfigModel InitialConfig() [ new TranslatorApi(Guid.NewGuid(), "https://deepl.deno.dev/translate", "zu1k/deepl"), new TranslatorApi(Guid.NewGuid(), "https://deeplx.deno.dev/translate", "zggsong/deepl"), - new TranslatorApi(Guid.NewGuid(), "https://iciba.deno.dev/translate", "爱词霸", IconType.Iciba, isEnabled: false), - new TranslatorApi(Guid.NewGuid(), "https://ggtranslate.deno.dev/translate", "谷歌翻译", IconType.Google, isEnabled: false) + new TranslatorApi(Guid.NewGuid(), "https://googlet.deno.dev/translate", "Google", IconType.Google, isEnabled: false), + new TranslatorApi(Guid.NewGuid(), "https://iciba.deno.dev/translate", "爱词霸", IconType.Iciba, isEnabled: false) ] }; } diff --git a/STranslate/Properties/PublishProfiles/FolderProfile.pubxml b/STranslate/Properties/PublishProfiles/FolderProfile.pubxml index 5215a1cc..3cc0252c 100644 --- a/STranslate/Properties/PublishProfiles/FolderProfile.pubxml +++ b/STranslate/Properties/PublishProfiles/FolderProfile.pubxml @@ -11,7 +11,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. <_TargetId>Folder net8.0-windows win-x64 - false + true false false