docs icon indicating copy to clipboard operation
docs copied to clipboard

Non-English translations break Markdown links containing Liquid variables

Open Coin-233 opened this issue 7 months ago • 6 comments

Code of Conduct

What article on docs.github.com is affected?

Multiple non-English localized articles, including but not limited to:

  • https://docs.github.com/zh/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections
  • https://docs.github.com/zh/education/guides

What changes are you suggesting?

The automated localization pipeline needs to be fixed so it doesn't break Markdown syntax when handling Liquid variables.

Additional information

The Issue: In the localized versions (e.g., Chinese, Japanese, French), Markdown links that contain Liquid variables in the text part are failing to render. Instead of rendering as clickable hyperlinks, they are displayed as raw Markdown syntax, often wrapped in a plain text code block.

Example from source: * [{% data variables.product.prodname_dotcom %} Flavored Markdown Spec](https://github.github.com/gfm/)

Actual Behavior (in localized docs): It renders exactly as [GitHub Flavored Markdown の仕様](https://github.github.com/gfm/) or [Spécification Flavored Markdown GitHub](https://github.github.com/gfm/) in plain text.

Expected Behavior: It should render as a standard, clickable HTML <a> link.

Additional information

#43888 #43870

Screenshots:

  • https://docs.github.com/zh/education/guides
Image
  • https://docs.github.com/ja/education/guides
Image
  • https://docs.github.com/en/education/guides
Image
  • https://docs.github.com/zh/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections
Image
  • https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections
Image

Coin-233 avatar Apr 27 '26 05:04 Coin-233

Thanks for reaching out and flagging this! Since we use an internal, automated solution for our translated docs, I will flag your request for our team 💛

For more information on translations, please see this page ✨

Sharra-writes avatar Apr 27 '26 19:04 Sharra-writes

Issue acknowledged by localization team and ported internally for follow-up

weeteckt avatar Apr 29 '26 17:04 weeteckt

感谢您报告这个重要的本地化问题。这个问题确实影响了多个语言版本的用户体验,破坏了Markdown链接的渲染。以下是分析和建议的下一步行动:

分析:

  1. 问题根源在于自动化本地化流程未能正确处理Liquid变量(如 )在Markdown链接文本中的情况。
  2. 这导致链接以原始Markdown语法显示,而非可点击的HTML链接。
  3. 问题影响多个非英语版本(中文、日语、法语等),特别是教育指南和折叠部分相关页面。

建议的下一步行动:

  1. 优先级评估:由于影响多个语言版本和核心文档功能,建议设为高优先级。
  2. 调查范围:需要全面检查本地化流水线中处理Liquid变量的逻辑,特别是Markdown链接文本部分。
  3. 修复方向:
    • 检查本地化工具是否在翻译过程中错误地转义或修改了Liquid语法。
    • 确保链接文本中的Liquid变量在翻译后仍能被正确解析。
    • 添加针对本地化文档的自动化测试,确保链接渲染正常。
  4. 临时解决方案:考虑在修复完成前,暂时回滚或手动修复受影响的页面。
  5. 相关issue:建议与#43888和#43870进行关联,可能涉及相同的根本原因。

推荐团队:需要Docs Content团队和Localization团队协同处理,可能还需要工程团队支持来修复自动化流水线。

JiMI-Ha avatar May 02 '26 16:05 JiMI-Ha

A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.

github-actions[bot] avatar Jun 22 '26 17:06 github-actions[bot]

A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.

nope

Coin-233 avatar Jun 22 '26 18:06 Coin-233

@Coin-233 Since the localization team has ported this issue over, we are going to close it here. 💛

Sharra-writes avatar Jul 08 '26 22:07 Sharra-writes