本文へ移動
cccskills
無料GitHub で公開

pseudo-localization-runner

Configures pseudo-localization for the app (replaces translatable strings with accented variants like "Submit" → "Şüƀɱîţ" + 35% length expansion) - surfaces UI issues without needing actual translators: hardcoded strings, truncation, encoding, and bidi handling. Use when preparing an app for translation (i18n / internationalization), validating l10n infrastructure, or when the user mentions pseudo-localization or localization testing.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qaスター 13(GitHub 13 + cccskills 0)
連携ツールPlaywright

実行スコア 未検証

インストール方法を見る

含まれるファイル(13)

  • SKILL.md7.4 KB
  • .tessl-plugin/plugin.json620 B
  • evals/german-launch-truncated-after-a-clean-readiness-pass/criteria.json6.1 KB
  • evals/german-launch-truncated-after-a-clean-readiness-pass/task.md9.0 KB
  • evals/localization-lead-wants-plural-and-rtl-sign-off/criteria.json5.9 KB
  • evals/localization-lead-wants-plural-and-rtl-sign-off/task.md8.4 KB
  • evals/password-reset-emails-arriving-with-accents/criteria.json6.1 KB
  • evals/password-reset-emails-arriving-with-accents/task.md8.0 KB
  • evals/qa-signed-off-but-the-locale-never-switched/criteria.json5.5 KB
  • evals/qa-signed-off-but-the-locale-never-switched/task.md7.2 KB
  • evals/spanish-demo-thursday-with-no-translators-booked/criteria.json6.3 KB
  • evals/spanish-demo-thursday-with-no-translators-booked/task.md7.1 KB
  • references/manual-transform.md816 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

pseudo-localization-runner

Overview

Pseudo-localization swaps translatable strings for accented, length-expanded variants that stay readable to English QA:

"Submit" → "Şüƀɱîţ"             # accent / Latin-extended characters
"Submit" → "[Şüƀɱîţ]"            # delimited markers (find unwrapped strings)
"Submit" → "Şüƀɱîţ ↵↵↵"         # 35% length expansion (test truncation)

The output stays readable to English-speaking QA while surfacing the l10n issues catalogued in Step 4.

When to use

  • Pre-translation: validate the app's l10n infrastructure works before paying for translation.
  • After major UI work: confirm new components handle l10n correctly.
  • Continuous: the team's "always-on" l10n smoke test.

Step 1 - Pick a pseudo-localization library

Per stack:

StackLibrary / approach
i18next (JS/TS)i18next-pseudo plugin
FormatJSManual middleware in the message extractor
Djangodjango-modeltranslation + custom locale
Railsi18n-pseudo
AnythingBuild custom: walk the locale file; transform values

Step 2 - Configure pseudo-locale

// src/i18n.ts (i18next + i18next-pseudo)
import Pseudo from 'i18next-pseudo';

i18next
  .use(Pseudo)
  .init({
    fallbackLng: 'en',
    pseudo: {
      enabled: process.env.NODE_ENV !== 'production',
      letterMultiplier: 2,         // ~35% length expansion
      languageToPseudo: 'en',       // wrap English strings
      repeatedLetters: ['a', 'e', 'i', 'o', 'u'],
    },
  });

The letterMultiplier: 2 doubles vowels (Şü → Şüü) - the 35% length-expansion convention.

Step 3 - Run the app under pseudo-locale

# Activate pseudo-locale by URL param / cookie
APP_URL=http://localhost:3000?lng=en-XA   # or whatever the pseudo-locale code is

The app renders with pseudo-translated text. QA / engineers walk the UI looking for issues.

Verify the pseudo-locale is active before walking the UI: confirm at least one visible label renders transformed (e.g. Submit shows as Şüƀɱîţ). If the page still shows plain English, the locale did not activate - fix the lng param or cookie and reload before continuing.

Step 4 - Issues to spot

SymptomUnderlying issue
Pure-English text on the pageString not wrapped in t() (untranslated)
Truncation (...)Container too narrow for translated text
Layout broken (overlapping elements)CSS doesn't accommodate longer strings
Mojibake / garbled charactersEncoding misconfigured
Missing characters / boxes (□)Font doesn't support extended Latin
Bidi text rendered wrong directionMixing LTR/RTL without proper markers

Step 5 - Visual regression with pseudo-locale

Combine with playwright-snapshots (in the qa-visual-regression plugin) for automated detection:

// e2e/pseudo-loc.spec.ts
import { test, expect } from '@playwright/test';

test.use({ extraHTTPHeaders: { 'Accept-Language': 'en-XA' } });

test('checkout page renders correctly under pseudo-loc', async ({ page }) => {
  await page.goto('/checkout');
  await expect(page).toHaveScreenshot('checkout-pseudo.png');
});

The screenshot baseline is established under pseudo-locale; future runs catch regressions in l10n-friendliness.

Step 6 - CI integration

- name: Pseudo-localization smoke
  run: |
    npm run dev:pseudo &
    sleep 5
    npx playwright test e2e/pseudo-loc.spec.ts
- uses: actions/upload-artifact@v4
  if: failure()
  with:
    name: pseudo-loc-screenshots
    path: test-results/

Step 7 - Alternative: manual transformation

If no pseudo-localization library exists for your stack, transform the source locale file locally with a one-time script - see references/manual-transform.md.

Worked example

A team enables i18next-pseudo with letterMultiplier: 2 (Step 2) and loads /checkout?lng=en-XA (Step 3). "Submit" renders as Şüƀɱîţ, confirming the wrap works - but a promo badge still shows plain Sale, exposing an unwrapped string (Step 4). The "Place Order" button also truncates because its container is fixed-width and can't absorb the 35% length expansion.

The developer wraps the badge in t() and lets the button widen. A Playwright screenshot baseline checkout-pseudo.png is established under the pseudo-locale (Step 5), so future PRs catch layout regressions automatically. The re-run is clean.

Anti-patterns

Anti-patternWhy it failsFix
Pseudo-loc in productionReal users see garbled UI.Dev / staging only (Step 2).
0% length expansionMisses truncation issues.30-50% expansion (Step 2).
ASCII-only pseudo-locMisses encoding issues.Use accented Latin (or non-Latin script for some chars).
Pseudo-loc as substitute for real translationPseudo-loc verifies infrastructure; not translator quality.Use both: pseudo-loc continuously, real translation per release.
Skipping screenshot baseline under pseudo-locLayout regressions visible only when locale activated.Pseudo-loc + visual regression (Step 5).

Limitations

  • Doesn't replace real translation. Pseudo-loc tests the infrastructure; humans still need to translate for real users.
  • Can't test pluralization rules. ICU MessageFormat rules don't auto-apply; pseudo-loc just transforms the surface text.
  • Right-to-left support varies. Some libraries also offer a RTL pseudo-locale (en-XB) that mirrors text direction; valuable but rare.

References

  • W3C i18n documentation at w3.org/International/.
  • i18n-string-coverage - static-scan complement.
  • rtl-rendering-tester - RTL-specific tests.
  • playwright-snapshots - visual regression for catching pseudo-loc regressions.
  • references/manual-transform.md - manual transform script.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Builds a CI gate that fails the build on **new** WCAG / a11y violations introduced by a PR while grandfathering pre-existing violations on a per-rule / per-page baseline. Aggregates verdicts from axe-core / pa11y / Lighthouse a11y / WAVE / IBM Equal Access scans. Use when a project has accumulated a11y debt and a strict "zero violations" gate would block every PR - the ratchet pattern lets the team ship while preventing regressions.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Workflow skill that builds an A/B-test validity checklist from an experiment proposal, walking the canonical design-correctness gates - pre-registered OEC/power/guardrails, randomization unit + SRM check, assignment integrity, telemetry, peeking discipline, novelty/primacy, post-experiment SRM re-check - into a per-experiment checklist + sign-off form. Use when launching, auditing, or governing an experiment. For pitfall mechanics (guardrails, peeking) see experiment-results-interpreter's references; to read an already-valid result use experiment-results-interpreter; for per-SDK harness tests use experiment-sdk-testing - this gates DESIGN, not SDK code.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

The single install-flow skill: the reference contract for the PWA install flow (installability gate fields, `beforeinstallprompt` handshake, per-platform paths - Android WebAPK / iOS Share menu / Firefox no-op - and the `display-mode` post-install signal, in references/install-flow-reference.md) plus the build-an-X workflow that emits the Add-to-Home-Screen suite. Walks the four-stage timeline, emitting one test per gate cell per [web.dev/articles/install-criteria][install-criteria], the deferred-prompt → `prompt()` → `userChoice` chain per [web.dev/articles/customize-install][customize-install], the iOS Safari manual-metadata branch (`apple-touch-icon`) per [web.dev/learn/pwa/installation][learn-pwa], and the post-install `(display-mode: standalone)` MQ assertion. Output: a Playwright spec with per-stage cells plus a coverage matrix. Use when a PWA's manifest, icons, or install handler change, when install conversion drops at an unknown stage, or when triaging a flaky install assertion.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Build-an-X workflow that uses an LLM to map existing tests to spec sections - given a spec doc + the test suite, the LLM identifies which tests cover which sections, surfaces uncovered sections (gap), and recommends specific tests to add. Output is a coverage matrix per spec ID. Scope is mapping tests that already exist and naming the gaps, not authoring tests for new acceptance criteria. Use when a spec doc and a test suite both exist but nobody can say which requirements are actually covered - before a release sign-off, an audit, or a decision about where to spend the next round of test effort.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Generates tests from natural-language specs (acceptance criteria, user stories, requirements) using an LLM, with confidence scoring per test case (LLM self-assessment plus heuristics: assertion quality, naming, completeness), batching uncertain cases for human review, and integration with the team's existing test framework. Use when the user asks to generate unit tests from acceptance criteria, convert user stories to test cases, automate test creation from requirements, or augment a spec-driven test suite with AI-generated stubs that are then curated before merge.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

Configures Allure Report (test-runner adapter install, `allure-results` directory wiring, `categories.json` for failure classification, `history-trend.json` retention via the copy-history-between-runs pattern), runs the Allure CLI to convert `allure-results` to a static HTML site, and uploads the report as a CI artifact. Use when the team needs richer test reporting than JUnit XML - step-level attachments, per-test history, retry tracking, and severity / epic / feature labeling across framework-agnostic adapters (pytest, Jest, JUnit, TestNG, NUnit, Mocha). As a rich static HTML report generator, it is the open-source alternative to the sunset ExtentReports (JVM/.NET per-test HTML narrative); for hosted cross-run flakiness analytics rather than a static per-run report use currents-integration.

日本語の概要は準備中です。原文の説明を表示しています。

testland/qa132026年10月20日 更新

testland のスキルをすべて見る

このスキルの問題を報告する