Skip to content

Commit

Permalink
Feat: 启用企业级翻译通道
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Dec 10, 2024
1 parent acb5cd6 commit fa190ef
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ HUGO_MODULE_WORKSPACE=hugo.work hugo server --ignoreVendorPaths "**"
```

Finally, create a new pull request at <https://github.com/hugo-fixit/docs/pulls> to submit your contribution 🎉

## Thanks for sponsoring

[translate.js](https://github.com/xnx3/translate) sponsors enterprise translation channel.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ HUGO_MODULE_WORKSPACE=hugo.work hugo server --ignoreVendorPaths "**"
```

最后,在 <https://github.com/hugo-fixit/docs/pulls> 创建一个新的 pull request 来提交你的贡献 🎉

## 感谢赞助

[translate.js](https://github.com/xnx3/translate) 赞助企业级翻译通道。
5 changes: 4 additions & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=

0 comments on commit fa190ef

Please sign in to comment.