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

I18N #63

Open
jze opened this issue Oct 13, 2020 · 3 comments
Open

I18N #63

jze opened this issue Oct 13, 2020 · 3 comments

Comments

@jze
Copy link

jze commented Oct 13, 2020

First of all, thank you very much for the theme. It is exactly what I was looking for.

I wonder if there is a way to make it better usable for non-English websites. There are a couple of hard-coded text e.g. "Latest Posts", "Next", "Previous". It would be possible to change these words directly in the files in the _includes folder. However, that would make updates difficult and require repeated work for every website.

My idea is to create YAML files containing the translated texts, en.yml for English, de.yml for German etc. The desired language would be chosen by setting a variable in _config.yml or a page's front matter. Does that sound like a good idea?

@jze
Copy link
Author

jze commented Oct 13, 2020

Here is a list of all texts I found:

Page Text
_layouts/page.html Contents
_layouts/post.html Published DATE by
_layouts/product.html Reviews
_layouts/product.html Description
_includes/disqus.html Please enable JavaScript to view the comments powered by Disqus.
_includes/footer.html Theme built by
_includes/header.html Home
_includes/image-modal.html View large image
_includes/latest-posts.html Latest Posts
_includes/pagination.html Previous
_includes/pagination.html Next
_includes/post-card.html Published: DATE
_includes/share-buttons.html Share
_includes/sponsors.html View Profile

@jze
Copy link
Author

jze commented Oct 20, 2020

This blog posts describes how to create multi-lingual sites with Jekyll: https://www.sylvaindurand.org/making-jekyll-multilingual/
That goes one step beyond my initial suggestion.

@chrisrhymes
Copy link
Owner

Hi @jze thanks for your help with this. I agree this is a great idea. I have been thinking about how to best implement this in the theme.

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