Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pseudo-localization-runner

БесплатноБез исполняемых скриптовНе проверен

Use when preparing an app for translation, checking localization infrastructure, or when pseudo-localization comes up. Replaces strings with accented…

testlandот testland★ 18 звёзд на GitHub

Об этом скилле

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:

Stack Library / approach
FormatJS / react-intl Built in: formatjs compile --ast --pseudo-locale <locale> ([fjs-cli])
i18next (JS/TS) i18next-pseudo post-processor ([i18p])
Android Built-in en-XA / ar-XB pseudolocales (pseudoLocalesEnabled in the debug build)
Anything else Transform the source locale file with a script that skips placeholders and tags (references/manual-transform.md)

Never pseudo-localize ICU MessageFormat with a regex over the raw string: it rewrites the syntax ({count, plural, one {...}} keywords, argument names, <b> tags) and the formatter then throws or drops the markup. Transform the parsed message instead, which is what the FormatJS CLI does.

Step 2 - Configure the pseudo-locale

FormatJS (react-intl)

Per the [FormatJS CLI docs][fjs-cli], --pseudo-locale compiles messages into one of five pseudo-locales, shown for my name is {name}:

Locale Output Finds
en-XA [ḿẏ ƞȧȧḿḗḗ īş {name}] Hardcoded and concatenated text (brackets), font coverage, expansion
en-XB ‮ɯʎ uɐɯǝ ıs {name}‬ (bidi override) Bidi handling of mixed-direction text
xx-LS my name is {name}SSSSSSSSSSSSSSSSSSSSSSSSS Truncation from long strings
xx-AC MY NAME IS {name} Case-sensitive comparisons on UI text
xx-HA [javascript]my name is {name} Text that is not coming from the catalog

The docs carry a caution: it "Requires --ast". Placeholders, plural and select branches and rich-text tags survive because the CLI transforms the parsed AST:

formatjs extract 'src/**/*.{ts,tsx}' --out-file lang/en.json
formatjs compile lang/en.json --ast --out-file lang/compiled/en.json
formatjs compile lang/en.json --ast --pseudo-locale en-XA --out-file lang/compiled/en-XA.json
formatjs compile lang/en.json --ast --pseudo-locale en-XB --out-file lang/compiled/en-XB.json

Load the compiled AST as messages for the pseudo-locale in development and QA builds only:

const pseudo = import.meta.env.DEV ? new URLSearchParams(location.search).get('pseudo') : null;
const catalogs = { 'en-XA': enXA, 'en-XB': enXB };          // imported compiled JSON
const locale = pseudo && catalogs[pseudo] ? pseudo : 'en';
document.documentElement.dir = locale === 'en-XB' ? 'rtl' : 'ltr';
<IntlProvider locale={locale} defaultLocale="en" messages={catalogs[locale] ?? en}>

en-XB reverses and bidi-wraps the text but does not mirror the layout; set dir="rtl" on the document as above to see the mirrored layout (see rtl-rendering-tester).

i18next (i18next-pseudo)

Per the [i18next-pseudo README][i18p] and source, it is a post-processor: instantiate it with new, add postProcess: ['pseudo'] to init, and note that it only transforms strings when the active language equals languageToPseudo (default en). Brackets are off unless wrapped: true.

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

const pseudoOn = import.meta.env.DEV;
i18next
  .use(LanguageDetector)
  .use(new Pseudo({ enabled: pseudoOn, languageToPseudo: 'en-XA', wrapped: true }))
  .use(initReactI18next)
  .init({
    resources: { en: { translation: en } },
    fallbackLng: 'en',                 // en-XA has no resources: it falls back to en, then gets pseudo-localized
    postProcess: ['pseudo'],
  });

Options: letterMultiplier (default 2) repeats the letters listed in repeatedLetters (vowels by default) to lengthen strings; letters maps each letter to its accented look-alike.

Step 3 - Run the app under the pseudo-locale

Switch the language the way the app's detector reads it. The [i18next browser language detector][i18det] looks, in order, at querystring (?lng=), hash, cookie, localStorage, sessionStorage, navigator, htmlTag, path and subdomain, and caches the resul

Полный SKILL.md на GitHub

Установить pseudo-localization-runner в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.tessl-plugin/plugin.jsonevals/german-launch-truncated-after-a-clean-readiness-pass/criteria.jsonevals/german-launch-truncated-after-a-clean-readiness-pass/task.mdevals/localization-lead-wants-plural-and-rtl-sign-off/criteria.jsonevals/localization-lead-wants-plural-and-rtl-sign-off/task.mdevals/password-reset-emails-arriving-with-accents/criteria.jsonevals/password-reset-emails-arriving-with-accents/task.mdevals/pseudo-android/criteria.jsonevals/pseudo-android/task.mdevals/pseudo-formatjs-icu/criteria.jsonevals/pseudo-formatjs-icu/task.mdevals/pseudo-i18next-e2e-check/criteria.jsonevals/pseudo-i18next-e2e-check/task.mdevals/pseudo-i18next-tokens/criteria.jsonevals/pseudo-i18next-tokens/task.mdevals/pseudo-icu-script/criteria.jsonevals/pseudo-icu-script/task.mdevals/qa-signed-off-but-the-locale-never-switched/criteria.jsonevals/qa-signed-off-but-the-locale-never-switched/task.mdevals/spanish-demo-thursday-with-no-translators-booked/criteria.jsonevals/spanish-demo-thursday-with-no-translators-booked/task.mdreferences/manual-transform.md

FAQ

Что делает скилл pseudo-localization-runner?

Use when preparing an app for translation, checking localization infrastructure, or when pseudo-localization comes up. Replaces strings with accented, 35%-longer variants to expose hardcoded text, truncation, encoding and bidi problems without real translators.

Как установить скилл pseudo-localization-runner?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pseudo-localization-runner запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pseudo-localization-runner с