Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

I18n localization

For adding UI text, adding or shipping a language, reviewing translation files, or building i18n into an app.

Free on GitHubUI design

In detail

Use when adding UI text, adding or shipping a language, reviewing translation files, or building i18n into an app. Checks missing keys, placeholders and CLDR plural forms with locale_sync.py, finds hardcoded strings with hardcoded_strings.py, and builds a pseudo-locale with pseudo_localize.py.

Safety check

  • Bidirectional text controls: scripts/pseudo_localize.py line 33

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: i18n-localization
description: Use when adding UI text, adding or shipping a language, reviewing translation files, or building i18n into an app. Checks missing keys, placeholders and CLDR plural forms with locale_sync.py, finds hardcoded strings with hardcoded_strings.py, and builds a pseudo-locale with pseudo_localize.py.
argument-hint: "[locales dir | source dir | release check]"
license: MIT
metadata:
  version: 1.0.0
  build_pattern: "Three deterministic stdlib scripts (translation-file checker with the CLDR 49 plural table embedded, hardcoded-string scanner for React/Vue/Svelte/HTML, pseudo-locale generator) with blocking exit codes; rules cited to Unicode CLDR and UTS #35, ICU MessageFormat, ECMA-402/MDN Intl, i18next, Android and gettext docs, W3C Internationalization and WCAG 3.1"
  distinct_from: "a11y-audit (WCAG in source; this checks the translation layer and lang/dir only as they affect i18n); email-template-builder (localizes one email template); marketing localization and transcreation skills (copy, not code)"
---

# i18n Localization

> **Portability:** 3 stdlib Python scripts. No network, no translation service.
> They check and generate files; they never translate text or call an API.

A release with a new language usually breaks in the same places: keys added in
English and never synced, a placeholder renamed by a translator, Russian or
Arabic files that copied English's two plural forms, UI text that never went
through `t()`, and dates formatted in the server's locale. This skill makes each
of those a check that fails before the release, not a bug report after it.

## Workflow

```bash
# 1 - Translation files: keys, placeholders, ICU syntax, CLDR plural forms
python scripts/locale_sync.py locales/ --source-locale en
# 2 - Code: user-facing text that bypasses t(), concatenation, locale-less formatting
python scripts/hardcoded_strings.py src/
# 3 - Layout: generate a pseudo-locale and click through the app in it
python scripts/pseudo_localize.py locales/en/common.json -o locales/en-XA/common.json
python scripts/pseudo_localize.py locales/en/common.json --bidi -o locales/ar-XB/common.json
```

**Step 1** reads JSON/ARB (i18next or ICU), `.properties`, Apple `.strings`,
Android `strings.xml` and gettext `.po`, pairs each target with the source file of
the same namespace, and blocks on missing or empty keys, changed placeholders,
ICU syntax errors, plural/select without `other`, a `zero` branch that can never
match, and plural categories the target locale needs (ru `few`/`many`, ar six
forms), using the embedded CLDR 49 table. Untranslated values, orphan keys,
...

From alirezarezvani's repository, MIT licence.

Related skills

  • Checked

    Web design builder

    Builds polished web pages, dashboards and prototypes in HTML, CSS and React, then checks them in a browser.

    by ConardLi 16k
    7/101 credit
  • Checked

    React Native accessibility

    Writes React Native screens that pass AMA accessibility checks, so every user can get through your app.

    by react-native-ama 296
    8/101 credit
  • Checked

    Web animation builder

    Builds web animations by deciding purpose, curve, duration and exit in order, so motion feels right.

    by emilkowalski 62k
    8/101 credit
  • Checked

    Janky animation fixer

    Finds why a web animation drops frames and picks properties that stay smooth, so motion runs without stutter.

    by emilkowalski 62k
    7/101 credit
  • Checked

    Apple style fluid motion

    Builds springy, interruptible gestures and sheets for the web the Apple way, so your interface feels native.

    by emilkowalski 62k
    8/101 credit
  • Checked

    Enter and exit animations

    Decides what should animate and builds enters, exits, icon swaps and drag with exact timing and easing values.

    by jakubkrehel 13k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added