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 blog support language-exclusive article #7378

Closed
1 of 2 tasks
robberphex opened this issue May 8, 2022 · 2 comments
Closed
1 of 2 tasks

Multilingual blog support language-exclusive article #7378

robberphex opened this issue May 8, 2022 · 2 comments
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request domain: i18n Related to the i18n system feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.

Comments

@robberphex
Copy link

robberphex commented May 8, 2022

Have you read the Contributing Guidelines on issues?

Description

Could docusaurus support language-exclusive article?

For example, there are some article:

blog/
├── 2019-05-28-multilingual-blog-translated.md
├── 2019-05-29-multilingual-blog-untranslated.md
└── 2019-06-28-english-only-blog.md
i18n/zh-cn/docusaurus-plugin-content-blog/
├── 2019-05-28-multilingual-blog-translated.md
└── 2019-07-28-chinese-only-blog.md
  • multilingual-blog-translated.md
    This kind of article exists at blog/ and i18n/zh-cn/docusaurus-plugin-content-blog/, so this article could show on en and zh-cn site.
  • multilingual-blog-untranslated.md
    This kind of article only exists at blog/, but this article should be displayed on en and zh-cn site.
  • -only-blog.md
    This kind of article only exists at single folder, and only showed at corresponding site.
    For example, chinese-only-blog.md at i18n/zh-cn/docusaurus-plugin-content-blog/, only showed at zh-cn site. english-only-blog.md at blog/, only showed en site.

For distinguish language-exclusive article and multilingual article, could we introduce a new option at frontmatter?

And there is an example project.

Has this been requested on Canny?

No

Motivation

To support multilingual content more natively.

API design

No response

Have you tried building it?

No response

Self-service

  • I'd be willing to contribute this feature to Docusaurus myself.
@robberphex robberphex added feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers labels May 8, 2022
@Josh-Cena
Copy link
Collaborator

Duplicate of #7041

@Josh-Cena Josh-Cena marked this as a duplicate of #7041 May 9, 2022
@Josh-Cena
Copy link
Collaborator

This is very likely a wontfix. It's both because of technical limitation and because the possible bad UX that this will bring.

@Josh-Cena Josh-Cena added domain: i18n Related to the i18n system closed: duplicate This issue or pull request already exists in another issue or pull request and removed status: needs triage This issue has not been triaged by maintainers labels May 9, 2022
@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: duplicate This issue or pull request already exists in another issue or pull request domain: i18n Related to the i18n system feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Projects
None yet
Development

No branches or pull requests

2 participants