From fa190ef502b6f6bbad57838506d43a7fb66ee3b0 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 10 Dec 2024 14:00:19 +0800 Subject: [PATCH] =?UTF-8?q?Feat:=20=E5=90=AF=E7=94=A8=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E7=BA=A7=E7=BF=BB=E8=AF=91=E9=80=9A=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 4 ++++ README.md | 4 ++++ config/_default/params.toml | 5 ++++- go.mod | 4 ++-- go.sum | 8 ++++---- 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/README.en.md b/README.en.md index ff419de..2084742 100644 --- a/README.en.md +++ b/README.en.md @@ -56,3 +56,7 @@ HUGO_MODULE_WORKSPACE=hugo.work hugo server --ignoreVendorPaths "**" ``` Finally, create a new pull request at to submit your contribution 🎉 + +## Thanks for sponsoring + +[translate.js](https://github.com/xnx3/translate) sponsors enterprise translation channel. diff --git a/README.md b/README.md index 3bed066..bf31211 100644 --- a/README.md +++ b/README.md @@ -56,3 +56,7 @@ HUGO_MODULE_WORKSPACE=hugo.work hugo server --ignoreVendorPaths "**" ``` 最后,在 创建一个新的 pull request 来提交你的贡献 🎉 + +## 感谢赞助 + +[translate.js](https://github.com/xnx3/translate) 赞助企业级翻译通道。 diff --git a/config/_default/params.toml b/config/_default/params.toml index ada2c68..55c2446 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -1256,7 +1256,7 @@ disableThemeInject = false enable = true # The translation service provider, ['client.edge', 'translate.service'] # See: https://translate.zvo.cn/43086.html - service = 'client.edge' + service = 'translate.service' # List of language ID to translate to, e.g. ["english", "chinese_simplified", "chinese_traditional", ...] # See the full language list: https://api.translate.zvo.cn/language.json languages = [ @@ -1283,6 +1283,9 @@ disableThemeInject = false detectLocalLanguage = true # translate.js CDN cdn = "" + # Whether to enable Enterprise-level translation channel + # If set to true, automatically switch to the best translation service + enterprise = true # FixIt Docs config [docs] diff --git a/go.mod b/go.mod index 348159a..30df425 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,8 @@ go 1.20 require ( github.com/hugo-fixit/FixIt v0.3.16 // indirect - github.com/hugo-fixit/cmpt-translate v1.1.0 // indirect + github.com/hugo-fixit/cmpt-translate v1.2.0 // indirect github.com/hugo-fixit/component-projects v1.4.1 // indirect github.com/hugo-fixit/shortcode-caniuse v1.2.2 // indirect - github.com/hugo-fixit/shortcode-rewards v1.0.4 // indirect + github.com/hugo-fixit/shortcode-rewards v1.0.5 // indirect ) diff --git a/go.sum b/go.sum index 9e33121..ceb6159 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,10 @@ github.com/hugo-fixit/FixIt v0.3.16 h1:ZffekHaqk/fJyuiagCdj1IjPczh5Dd57nnPZKSFWT6Q= github.com/hugo-fixit/FixIt v0.3.16/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU= -github.com/hugo-fixit/cmpt-translate v1.1.0 h1:gKmxx5uDSWu04WUEiXVrQcyy7S90tnL+nkF0TUR2LFg= -github.com/hugo-fixit/cmpt-translate v1.1.0/go.mod h1:JZ0STubquTlRgyyGhGPlt2s0KJ1gCa99+P8ltTwQRM4= +github.com/hugo-fixit/cmpt-translate v1.2.0 h1:jfkSTIcGWbGZri9J47Sy2vGmfJkkuyKyTG462DuidfE= +github.com/hugo-fixit/cmpt-translate v1.2.0/go.mod h1:JZ0STubquTlRgyyGhGPlt2s0KJ1gCa99+P8ltTwQRM4= github.com/hugo-fixit/component-projects v1.4.1 h1:aSDOf9A8Z2AH8jBq/Xgaw5esm6OMFGDTZ/p2FDG9V1E= github.com/hugo-fixit/component-projects v1.4.1/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c= github.com/hugo-fixit/shortcode-caniuse v1.2.2 h1:cuJVdJ1A0IgJnMQjifCDeRSRxIY0plTgs+wthCbrIls= github.com/hugo-fixit/shortcode-caniuse v1.2.2/go.mod h1:RoPLFt+7uLui5rjvkC/qFGeo4nly5AzzwIID9SoDKNc= -github.com/hugo-fixit/shortcode-rewards v1.0.4 h1:62qCmcGvAJf+qa+8ofRX6jwMUXo6Q4+PQvlOtu0ZGBA= -github.com/hugo-fixit/shortcode-rewards v1.0.4/go.mod h1:+PA7wjtBgkQsI8s8bPOMJ6bNNfExUIWz4AxTearzZgw= +github.com/hugo-fixit/shortcode-rewards v1.0.5 h1:Fudm/FoKt/K5rhTvOpHyvniAQFOAoQ1V/Z33TpReGkA= +github.com/hugo-fixit/shortcode-rewards v1.0.5/go.mod h1:+PA7wjtBgkQsI8s8bPOMJ6bNNfExUIWz4AxTearzZgw=