Replies: 3 comments 3 replies
-
I try to also set default_language = "zh-Hans", it show the error xxx twice specified. |
Beta Was this translation helpful? Give feedback.
-
base_url = "https://xxx.xx.xx"
title = "中文"
description = "中文"
author = "中文"
generate_feed = true
compile_sass = true
minify_html = true
build_search_index = true
theme = "tabi"
default_language = "zh-Hans"
taxonomies = [{name = "tags", feed = true}]
[search]
...
[link_checker]
internal_level = "warn"
[extra]
... |
Beta Was this translation helpful? Give feedback.
-
My ideal solution is using default configuration for English, and then use i18n/zh-Hans.toml and _index.zh-Hans.md and etc. for Chinese adaptation. Additionally, there could be a configuration option, like current_language, to achieve a redirect-like effect. For instance, if current_language is set to zh-Hans, accessing https://blog.site/ would automatically redirect to https://blog.site/zh-Hans. This approach allows a single codebase to accommodate various languages as the default, with the flexibility to modify this parameter as needed. I am trying to manually set the redirection temporarily to solve the problem now. |
Beta Was this translation helpful? Give feedback.
-
I followed it to set as below:
but default display english. If change [languages.zh-Hans] to [languages.zh] , it show error than xxxx is specified twice. How to correctly set the default language to Chinese?
Beta Was this translation helpful? Give feedback.
All reactions