mojira.dev
WEB-8468

Critical Localization Error: Global Header/Footer stuck in zh-hant on zh-hans 关键本地化错误:全局页眉/页脚在 zh-hans 页面上卡在 zh-hant 。

Bug 具体细节的详细分解:

  1. Affected Area: Global Header (顶栏)
    受影响区域:顶栏

    • Observation: Even when the URL path is /zh-hans/, the entire top navigation bar (including menus like "Games", "Community", "Merch") is displayed in Traditional Chinese (繁体中文).
      观察:即使 URL 路径是 /zh-hans/ ,整个顶部导航栏(包括"游戏"、"社区"、"商品"等菜单)也显示为繁体中文。

    • Consequence: Every single button and dropdown item in the header is hardcoded to redirect to https://www.minecraft.net/zh-hant/.... This forces the user out of their preferred language environment immediately upon navigation.
      后果:顶栏中的每个按钮和下拉项都被硬编码为重定向到 https://www.minecraft.net/zh-hant/... 。这会迫使用户在导航时立即离开他们喜欢的语言环境。

  2. Affected Area: Global Footer (底栏)
    受影响区域:底栏

    • Observation: The site-map, legal links, and social media labels at the bottom of the page are also stuck in Traditional Chinese.
      观察:页面底部的站点地图、法律链接和社交媒体标签也卡在繁体中文。

    • Consequence: Clicking any support or informational links in the footer redirects to the zh-hant version of those pages, breaking the user experience.
      后果:点击底栏中的任何支持或信息链接都会重定向到这些页面的 zh-hant 版本,破坏用户体验。

  3. Unaffected Areas (不受影响的区域):

    • Main Page Content: All text within the body of the page (news articles, game descriptions, download buttons in the middle of the page) correctly renders in Simplified Chinese (zh-hans).
      主页面内容:页面主体内的所有文本(新闻文章、游戏描述、页面中间的下载按钮)均正确显示为简体中文 ( zh-hans ).

    • Contextual Buttons: Buttons within the body content (e.g., "Get Minecraft" or "Read More") correctly lead to /zh-hans/ sub-pages.
      上下文按钮:页面主体内容中的按钮(例如“获取 Minecraft”或“阅读更多”)正确链接到 /zh-hans/ 子页面。

    • Language Selector: The language picker itself correctly shows "简体中文" as the active selection.
      语言选择器:语言选择器本身正确显示“简体中文”为当前选中项。

  4. Core Logic Failure (逻辑失效点):

    • The website’s "Language Switcher" (bottom left) correctly identifies the user's choice as "简体中文", and the main body content (news, articles) renders in zh-hans.
      网站的"语言切换器"(左下角)正确识别用户的选择为"简体中文",而主体内容(新闻、文章)在 zh-hans 上正确渲染。

    • However, the Global Navigation Components are failing to inherit the parent page's locale. They seem to have a hardcoded fallback or an incorrect routing logic that defaults to zh-hant regardless of the /zh-hans/ URL prefix.
      然而,全局导航组件未能继承父页面的区域设置。它们似乎有一个硬编码的回退机制或错误的路由逻辑,导致无论 URL 前缀是 /zh-hans/ ,都会默认为 zh-hant

Linked issues

Comments 1

Hi!
Thank you for your report! 

We're already tracking this issue at WEB-8453, so I will resolve and link this ticket as a Duplicate

I suggest also to browse through the main issue for potential fixes. 

If you would like to add a vote and any extra information to the main ticket it would be appreciated. 

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Sean

(Unassigned)

Unconfirmed

minecraft.net

Retrieved