Skip to content

Use the appropriate HTML lang attribute for different languages #7173

Description

@3gf8jv4dv

Please confirm the following.

What parts of Modrinth is your feature request related too?

Modrinth.com website

Is your suggested feature related to a problem? Please describe.

On this day in 2026, I am delighted to see that three languages with historical ties and close connections — CJK — are now available on Modrinth.

However, there are currently some issues regarding the glyph display across these languages, largely due to CJK Han Unification:

Currently, the Modrinth website appears to hardcode lang="en" on the HTML document regardless of the selected language. As a result, browsers cannot properly apply regional glyph variants and must rely on the user's system font fallback.

For example, when a user switches the website language to Traditional Chinese, characters may still be rendered using mainland China (Simplified) glyph standards if their system font prioritizes mainland Chinese. Similarly, when a Japanese user switches to Japanese, certain Kanji are mistakenly rendered with Chinese glyph variants (or vice versa).

Describe the solution you'd like

To resolve this, updating the <html lang="..."> attribute to match the user’s active locale (e.g., zh-CN, zh-TW, ja, ko) would allow browsers to apply the correct regional fonts and display glyphs according to local conventions.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions