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

Feature Request: Allow Disabling of post/page translation for single post/page and exlcude them from other language-sites. #63

Open
sweisgerber-dev opened this issue Jul 14, 2017 · 3 comments

Comments

@sweisgerber-dev
Copy link

Add a flag to disable translation / fallback of a specific post or page, so that it only is shown on the language specific pages, but not as foreign language on other sites.

This enables the user to write a post e.g. in lang: de, which doesn't even show up in the post-list of all other languages.

E.g. introduce new frontmatter like: lang-exclusive: <i18n LANGUAGE> keyword that exclusively lists this post on the specific pages with this language, but doesn't list the post on other pages.

---
layout: post
title: Mein Post
lang-exclusive: de
---
Hallo, ich bin der deutsche Post mit dem Titel **"{{ page.title }}"**
@heeplr
Copy link

heeplr commented Jan 27, 2021

I need this too for posts in language A that haven't been translated to language B, yet but B is the default language.
Those posts shouldn't be displayed for language B at all until the translation to B is available.

EDIT: To clarify more:
This feature missing is troublesome for pages that have multiple authors in various lingos but (obviously) only one default language.

If we don't translate everything to the default language before publishing, the user of the default language will see a confusing amount of posts in a lot of different languages until the official translation is available for publishing. The only choice left would be, to wait publishing the authors version until the translation is available. It would be much better, to not show the original post to other languages as well.

Even disabling fallback globally would be very helpful.

@untra
Copy link
Owner

untra commented Feb 8, 2021

alrighty @heeplr and @sweisgerber-dev ! I just released jekyll-polyglot-1.4.0 , which now has a new frontmatter lang-exclusive: [de] for controlling which site languages get built.

This should help achieve your goals with jekyll site generation.

Cheers!

@george-gca
Copy link
Contributor

I believe this is solved.

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

4 participants