Open razonyang opened 1 year ago
Hello, I have a simple question about the languages in the starter theme, I have created index.es.md, _index.es.md, menus.es.yaml and params.es.yaml where it needs to be, but I have this problem that text in "featured-posts-tab" and "recent-posts-tab" disappear. Can you give me a hint? Thanks
@VM-137 Hmm, that's weird, it should use en
as fallback, do you have a public repo for reproducing the issue?
@VM-137 Confirmed, it was caused by the missing translations, for now, you can preserve the defaultContentLanguage
as en
, and configure your langauge in languages.yaml
, so that it will fallback to use en
translations.
To support es
language translations, please see the i18n guide for details.
@VM-137 Should fixed in modules/sidebar/posts: v0.6.1.
hugo mod get github.com/hbstack/blog/modules/sidebar/posts@v0.6.1
It use English as fallback translations, please feel free to change it in https://github.com/hbstack/blog/blob/main/modules/sidebar/posts/i18n/es.toml.
I will be waiting for the v0.6.1, and collaborate translating the i18n files to "es" , thanks.
@VM-137 Should fixed in modules/sidebar/posts: v0.6.1.
hugo mod get github.com/hbstack/blog/modules/sidebar/posts@v0.6.1
It use English as fallback translations, please feel free to change it in https://github.com/hbstack/blog/blob/main/modules/sidebar/posts/i18n/es.toml.
Done.
_index.md
to_index.en.md
.index.md
toindex.en.md
.