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

Add i18n #21

Closed
wants to merge 3 commits into from
Closed

Add i18n #21

wants to merge 3 commits into from

Conversation

tcarreira
Copy link

Feature translations with Hugo i18n capabilities.

Currently:

  • English (default)
  • Portuguese

The default English text should be just the same.
It will be easier for Portuguese readers if you add DefaultContentLanguage = "pt" on your config.toml file

@tcarreira
Copy link
Author

Oops, too soon.
This PR is not ready yet, I'm sorry.

I'll work on this later, I'm closing this PR for now

@tcarreira tcarreira closed this Aug 22, 2020
@onweru
Copy link
Collaborator

onweru commented Aug 26, 2020

Thanks @tcarreira for contributing.

This PR is not ready yet, I'm sorry.

I figured and was hesitant to merge. Looking forward to what you come up with. Thanks again.

@razonyang
Copy link
Contributor

Hi @tcarreira, any news on this? I'm considering implementing I18N for my site based on this.

@tcarreira
Copy link
Author

Hi @razonyang
I believe the previous commit is enough for the theme, but I intend to get a decent PR on it, this week.
I want to write some documentation/examples so others don't get stuck as I did.

But I would be glad if you help me with a thing: does the configTaxo.toml serve any purpose?
because:

  • I was really confused on translating the taxonomies (tags, categories, etc...)
  • it turns out, it is really simple, just call the taxonomies with the correct translation, but...
  • taxonomies had to be declared on the config.toml, not on the configTaxo.toml, as they are in the example.

@onweru
Copy link
Collaborator

onweru commented Sep 7, 2020

But I would be glad if you help me with a thing: does the configTaxo.toml serve any purpose?

Good question @tcarreira. We included that file only as a part of this guideline. I can guarantee that it's not used by the theme. So, I reckon you wouldn't need to consider it in your PR.

I want to write some documentation/examples so others don't get stuck as I did.

😎 👏

@tcarreira tcarreira mentioned this pull request Sep 16, 2020
Merged
@tcarreira
Copy link
Author

Hi @razonyang. Have you seen #39 ?

@razonyang
Copy link
Contributor

@tcarreira I haven't noticed this PR yet, I'll try it tonight.

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

Successfully merging this pull request may close these issues.

None yet

3 participants