Skip to content

Commit

Permalink
Feat: 增加法语机器翻译和本地语言检测功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Dec 4, 2024
1 parent 9495877 commit 2a3ab20
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ disableThemeInject = false
'english',
'chinese_simplified',
'chinese_traditional',
'french',
]
# Element IDs that needs to be ignored for translation
ignoreID = []
Expand All @@ -1271,8 +1272,7 @@ disableThemeInject = false
# Tag names that need to be ignored for translation
ignoreTag = ['title']
# Whether to detect the local language
# If your site itself is multilingual in Hugo, it is not recommended to enable this feature!
detectLocalLanguage = false
detectLocalLanguage = 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 @@ -3,8 +3,8 @@ module github.com/hugo-fixit/docs
go 1.20

require (
github.com/hugo-fixit/FixIt v0.3.16-0.20241203093028-ac4418e24e70 // indirect
github.com/hugo-fixit/cmpt-translate v1.0.1 // indirect
github.com/hugo-fixit/FixIt v0.3.16 // indirect
github.com/hugo-fixit/cmpt-translate v1.0.2 // indirect
github.com/hugo-fixit/component-projects v1.4.1 // indirect
github.com/hugo-fixit/shortcode-caniuse v1.1.3 // indirect
github.com/hugo-fixit/shortcode-rewards v1.0.4 // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/hugo-fixit/FixIt v0.3.16-0.20241203093028-ac4418e24e70 h1:S0iSc/RBkisVf25Vt5FRg2NmJNXLzgGeS4nIbtmAd0c=
github.com/hugo-fixit/FixIt v0.3.16-0.20241203093028-ac4418e24e70/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/cmpt-translate v1.0.1 h1:bOJgY815tqnzv4SLh4CUD6SO4H6+gZnDSzYYnAGa5Pk=
github.com/hugo-fixit/cmpt-translate v1.0.1/go.mod h1:JZ0STubquTlRgyyGhGPlt2s0KJ1gCa99+P8ltTwQRM4=
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.0.2 h1:IfpGUA3/1nAA9rVxWZFzqIQ+V4Iw0eHnZnT6FATqQeo=
github.com/hugo-fixit/cmpt-translate v1.0.2/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.1.3 h1:U1YBJz5SI/d1BBQhHcD0eVgJdCcpzK2usSizPiu+a4w=
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"server": "hugo server -D --disableFastRender --navigateToChanged --ignoreCache --renderToMemory -O",
"server:production": "npm run server -- -e production",
"server:development": "cross-env HUGO_MODULE_WORKSPACE=hugo.work npm run server -- --ignoreVendorPaths \"**\"",
"update:theme": "hugo mod get -u github.com/hugo-fixit/FixIt@dev && hugo mod tidy"
"update": "hugo mod get -u && hugo mod tidy"
},
"devDependencies": {
"atomic-algolia": "^0.3.19",
Expand Down

0 comments on commit 2a3ab20

Please sign in to comment.