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

Multilingual support #23

Open
pmviva opened this issue Jan 15, 2021 · 4 comments
Open

Multilingual support #23

pmviva opened this issue Jan 15, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@pmviva
Copy link

pmviva commented Jan 15, 2021

Hi, I was wondering if there was a plan for implementing multilingual support in the theme. I thnk it should be fairly straightfoward to implement it. If you like the idea I can fork the repository and submit a pull request.

I was thinking the following:

  1. Add buttons for all the available languages in the site using {{ range .Site.Home.Translations }}} in the main menu
  2. Ensure using {{ .Permalink }} on every page and using relLangURLor absLangURLon every link
  3. Adding links for translations similar to tags on every post.
  4. Move and translate every hardcoded text in the templates to i18n files.
  5. Configure params per language inside config.toml, specially site title, subtitle, date formats, etc.
  6. Add <link rel="alternate" href="......" hreflang="..."/>in HTML Head

Let me know.

Thanks
Pablo

@xoxys xoxys added the enhancement New feature or request label Jan 18, 2021
@xoxys
Copy link
Member

xoxys commented Jan 18, 2021

Hi thanks for your report. In general adding multilingual support was planned, but I didn't find the time yet to work on it. So if you want to start working on it, I would be happy to review your PR and help if needed :) Right now I'm not quite sure how to handle 1. and 3. but that's more a design question, and we can discuss this later.

@pmviva
Copy link
Author

pmviva commented Jan 18, 2021

Hi Robert, I dont have much spare time the following weeks but I will fork the repo and start working in a feature branch implementing i18n. I'll submit a PR when I have something ready to preview.

@toheine
Copy link

toheine commented Sep 15, 2023

Hi, I just stumbled across this issue. I wonder if there are still plans to implement multilang support. That would be excellent. Thanks for a short answer.

@xoxys
Copy link
Member

xoxys commented Sep 17, 2023

Hi, yes, I would still like to have it in the theme. As I'm working on other projects, PRs are very welcome.

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

No branches or pull requests

3 participants