test-i18n-usage
Review locale keys, translation usage and locale-sensitive tests.
- License 许可
- MIT
- 所属仓库
- MetaMask/skills
- 最近更新
- 2026-11-11
- Stars
- ★ 25
- Forks
- 11
01 前言 Front Matter
- name
- test-i18n-usage
- description
- Review locale keys, translation usage and locale-sensitive tests.
02 资源文件 4
- 参考文档repos/core.md156 B
- 参考文档repos/metamask-extension.md7.0 KB
- 参考文档repos/metamask-mobile.md167 B
- 参考文档repos/va-mmcx-terminal.md168 B
03 SKILL.md 正文
Localization and locale-sensitive tests
Apply these checks to changed locale objects, translation call sites and their tests. Client-specific query conventions remain in the repository overlay.
Removing a translation call or its wrapper requires checking the affected keys and tests.
- Duplicate JSON keys shadow new copy: Verify the containing locale object has one definition and search rendered copy across every test layer. A test accommodating duplicate labels may hide an ambiguous product label.
- Source-language translations — keep user-facing copy behind translation helpers and update only the source-language file (
locales/languages/en.jsonon Mobile;app/_locales/en/messages.jsonon Extension). The translation pipeline fills other locales; missing non-English strings are never a finding. - Orphaned locale keys — when a PR deletes a function that called
strings(...), grep for the keys it used (e.g.rg 'order_card\.(take_profit|stop|open_limit|close_limit)' app). Dead keys accumulate silently and bloat the translation pipeline; flag them even when runtime is unaffected. - Test revert-sensitivity for locale keys — mocked
stringsimplementations that fall back to|| keyrender the raw key when a key goes stale, so an exactgetByTextassertion still fails on revert. Confirm that fallback exists before accepting a test as regression-proof; do not assume it.
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
x402-payments
Build x402 payment flows using MetaMask Smart Accounts Kit, machine to machine payments over HTTP with ERC-7710 delegations and ERC-7715 Advanced Permissions
smart-accounts-kit
Build dApps with MetaMask Smart Accounts Kit — ERC-4337 smart accounts, delegations, and Advanced Permissions (ERC-7715)
oh-my-opencode
Multi-agent orchestration plugin for OpenCode. Use when the user wants to install, configure, or operate oh-my-opencode — including agent delegation, ultrawork mode, Prometheus planning, background tasks, category-based task routing, model resolution, tmux integration, or any oh-my-opencode feature. Covers installation, configuration, all agents (Sisyphus, Oracle, Librarian, Explore, Atlas, Prometheus, Metis, Momus), all categories, slash commands, hooks, skills, MCPs, and troubleshooting.
gator-cli
Use when you need to operate the @metamask/gator-cli to initialize profiles, upgrade EOA to EIP-7702, grant, redeem, and revoke ERC-7710 delegations, or inspect balances and delegations. Covers commands, required flags, grant scopes, redeem action types, configuration locations, and common usage flows.
ui-development
UI component development standards for MetaMask clients: the strict design-system-first component hierarchy, availability checks before building custom components, styling with design tokens, and required imports. Use when building, restyling, or reviewing any UI component, or when choosing between a design-system, component-library, or custom component.