From 2a3ab20a7d861639bfb747b05df9f9d2eda304f4 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 4 Dec 2024 22:35:39 +0800 Subject: [PATCH] =?UTF-8?q?Feat:=20=E5=A2=9E=E5=8A=A0=E6=B3=95=E8=AF=AD?= =?UTF-8?q?=E6=9C=BA=E5=99=A8=E7=BF=BB=E8=AF=91=E5=92=8C=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E6=A3=80=E6=B5=8B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/_default/params.toml | 4 ++-- go.mod | 4 ++-- go.sum | 8 ++++---- package.json | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 549d1ef..a77ab0c 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -1263,6 +1263,7 @@ disableThemeInject = false 'english', 'chinese_simplified', 'chinese_traditional', + 'french', ] # Element IDs that needs to be ignored for translation ignoreID = [] @@ -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] diff --git a/go.mod b/go.mod index 5a118c9..6d6f8d8 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 0e55dd5..3674456 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/package.json b/package.json index 7708d54..479139a 100644 --- a/package.json +++ b/package.json @@ -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",