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",