Skip to content

MIP-8 watch and reference data structure sections are not localized #40

Description

@nishuzumi

Problem

On /mip-8, two sections stay in English when the site language is switched to Chinese:

  • src/components/Mip8WatchSection.tsx (the live mainnet/testnet gas-schedule watcher, added in "Add live MIP-8 network watcher")
  • src/components/Mip8CollectionsSection.tsx (the reference data structures grid, added in "Update MIP-8 page for mainnet activation")

Neither component calls useLanguage(). All other sections on the page already read their copy from src/i18n/en.ts / zh.ts, and the mip8.* key sets in both files are otherwise in sync.

Proposal

Move the copy of both sections into mip8.watch and mip8.collections in en.ts / zh.ts, add the Chinese translations, and wire the components through t() the same way the rest of the MIP-8 page does. English output stays unchanged.

Out of scope for this change: the two sr-only summaries in ComparisonSection.tsx and GasCalculatorSection.tsx that interpolate counts mid-sentence. Those need a small formatting helper and can be a follow-up.

I have a draft ready and can open the PR against this issue once you're happy with the scope.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions