Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append the language code to the filename. #218

Open
2 tasks
razonyang opened this issue Aug 2, 2023 · 5 comments
Open
2 tasks

Append the language code to the filename. #218

razonyang opened this issue Aug 2, 2023 · 5 comments

Comments

@razonyang
Copy link
Member

  • _index.md to _index.en.md.
  • index.md to index.en.md.
@VM-137
Copy link

VM-137 commented Dec 1, 2023

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.
Screenshot from 2023-12-01 15-51-41
Can you give me a hint? Thanks

@razonyang
Copy link
Member Author

@VM-137 Hmm, that's weird, it should use en as fallback, do you have a public repo for reproducing the issue?

@razonyang
Copy link
Member Author

razonyang commented Dec 1, 2023

@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.

@razonyang
Copy link
Member Author

@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.

@VM-137
Copy link

VM-137 commented Dec 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants