AGENT SKILL

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

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.json on Mobile; app/_locales/en/messages.json on 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 strings implementations that fall back to || key render the raw key when a key goes stale, so an exact getByText assertion still fails on revert. Confirm that fallback exists before accepting a test as regression-proof; do not assume it.

04 同仓库更多 Skills

MetaMask
MetaMask/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.

★ 25
MetaMask
MetaMask/skills

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

★ 25
MetaMask
MetaMask/skills

smart-accounts-kit

Build dApps with MetaMask Smart Accounts Kit — ERC-4337 smart accounts, delegations, and Advanced Permissions (ERC-7715)

★ 25
MetaMask
MetaMask/skills

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.

Skill与智能体开发
★ 25
MetaMask
MetaMask/skills

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.

★ 25
MetaMask
MetaMask/skills

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.

设计师
★ 25