-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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 support #1809
Comments
We haven't found a solution that works well yet. Do you have a proposition? |
For our purposes, this would be great:
I haven't dug into this problem yet, to be honest, so maybe it's possible and just not documented, but I thought I'd ask. Thanks. |
Good feature. I think that i18n can be supported by javascript, it is another choice. If in jekyll, it seems one file must be built to two files. My suggestion is that:
|
Will some mechanism be exposed (through Liquid, say) so that a Convertible (a Page, a Post, etc.) knows it has alternative languages available? Or should a Convertible know how to handle multilingual outputs? And for posts or pages that are only available in one language (for instance, a en and jp website where some posts are only in jp), how do we handle that? Could this be generalised to handle cases where project documentation for multiple versions should remain available (for instance, twbs/bootstrap's mechanism to select between v2 and v3 documentation) and being easily able to switch between versions of a single page? |
Perhaps we could queue this up for a 2.5 or 3.0 target? Would love to at least figure out a sane path forward. Some prior discussions elsewhere: |
What do you think about applying Collections to this? Create an |
I think the biggest issue for any i18n implementation in Jekyll will be content negotiation; namely, there isn't any unless you arrange for it with your HTTP server. Is there anything at all we can offer in this regard? If not, I think it's worth keeping in mind the options available to server owners in this regard so we don't make it harder to get this going. For instance, I believe Apache can easily be setup to pick between With that out of the way, I think @parkr's idea is good for managing internationalizing the interface and layout of your website, but what is your plan for content? Should each page/post/whatever specify what language it is via YAML headmatter and then jekyll will use that value to pluck something out of the |
In Jekyll or not, what I want to give users is an explicit choice between content in two languages. I don't want to let the server choose the locale based on a browser preference or geolocation. Just my deux centimes. |
Absolutely, giving the user absolute choice after they've loaded a page is On 29 April 2014 06:46, Jamie Folsom [email protected] wrote:
|
Not sure how to label this as a feature, question or suggestion. I am curious if jekyll 2.0 will have first-class support for i18n in templates, posts, and metadata. Thanks.
The text was updated successfully, but these errors were encountered: