Document which BCP 47 `lang` tags activate which translation files
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
Research direction
Review the language documentation at https://quarto.org/docs/authoring/language.html and inspect the shipped translation files, including _language-sr-Latn.yml. Document each translation file's activating lang values, the script-versus-region distinction, and the subtag-prefix fallback. Done means users can identify the correct tag for Chinese, Serbian, and other listed translations.
Written by the indexing model from the issue text.
Description
The language docs at https://quarto.org/docs/authoring/language.html state "IETF language tags (BCP 47 standard), like en or en-GB" and list supported languages as prose ("...Chinese, Czech, Danish..."). Nothing tells a user writing a Chinese document which of zh / zh-TW / zh-Hant / zh-Hans will activate which UI translation. Same issue for Serbian — we ship _language-sr-Latn.yml but docs don't mention it.
This ambiguity surfaced in quarto-dev/quarto-cli#14409 where a user couldn't tell whether zh-Hant or zh-TW was the "right" tag for Quarto (answer: zh-TW for our full translations, zh-Hant only for Pandoc's side).
Suggestions
We could:
- Add a table to the language docs listing each shipped translation file and the
lang:values that activate it - Briefly explain the BCP 47 script-vs-region subtag distinction and note that both forms are valid — Quarto uses region subtags for Chinese (
zh-TW) and Portuguese (pt-BR) but script subtags for Serbian (sr-Latn), reflecting contributed files - Note Quarto's subtag-prefix fallback (
zh-TWloadszh+zh-TW;fr-CAwould loadfr+fr-CAif that file existed)
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 42
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quarto-dev/quarto-cli
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
quarto-dev/quarto-cli#14915 ·
-
binder bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
quarto-dev/quarto-cli#14907 · 3 comments · 1 reaction ·
-
brand bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quarto-dev/quarto-cli#14891 ·
-
brand bug html revealjs
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
quarto-dev/quarto-cli#14882 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
quarto-dev/quarto-cli#14875 ·
All issues in quarto-dev/quarto-cli
Similar issues
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·
-
bug p1 tools
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 84/100