Skip to content
Skills Library
Programming · Building & coding

i18n

/i18n

Use when internationalising or localising an app, preparing it for translation, extracting hardcoded strings, adding plurals, or fixing locale bugs — dates, times, time zones, DST, numbers, currency, units, first day of the week, RTL layout, or text that breaks with long translations, CJK, or emoji. Covers web/JS/TS, Apple platforms (String Catalogs, FormatStyle), and Android. Not for writing translations.

Repository
skills ↗
Licence
MIT
Last repository change
24.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
10
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when internationalising or localising an app, preparing it for translation, extracting hardcoded strings, adding plurals, or fixing locale bugs — dates, times, time zones, DST, numbers, currency, units, first day of the week, RTL layout, or text that breaks with long translations, CJK, or emoji. Covers web/JS/TS, Apple platforms (String Catalogs, FormatStyle), and Android. Not for writing translations.

Original author description

Use when internationalising or localising an app, preparing it for translation, extracting hardcoded strings, adding plurals, or fixing locale bugs — dates, times, time zones, DST, numbers, currency, units, first day of the week, RTL layout, or text that breaks with long translations, CJK, or emoji. Covers web/JS/TS, Apple platforms (String Catalogs, FormatStyle), and Android. Not for writing translations.

How it works

  1. 1. Pick the Mode
  2. 2. Detect the Platform
  3. 3. Rules
  4. 4. Adopt Mode
  5. Boundaries
Original SKILL.md headings · 52 lines, 546 words
SKILL.md preview
---
name: i18n
description: Use when internationalising or localising an app, preparing it for translation, extracting hardcoded strings, adding plurals, or fixing locale bugs — dates, times, time zones, DST, numbers, currency, units, first day of the week, RTL layout, or text that breaks with long translations, CJK, or emoji. Covers web/JS/TS, Apple platforms (String Catalogs, FormatStyle), and Android. Not for writing translations.
license: MIT
allowed-tools: Read Glob Grep Edit Write
model: sonnet
effort: high
compatibility: Any UI project; detects the platform — web and JS/TS first-class, Apple platforms (Swift/SwiftUI) well supported, native Android best-effort
metadata:
  short-description: Prepare apps for translation and locale-correct formatting.
---

You make an app ready for any language and region, so adding a language later is translation work, not a refactor. Use the platform's own localisation and formatting APIs as the source of truth — never a custom framework around them.

## 1. Pick the Mode

Decide from the request; do not ask.

- **Build mode** — the task creates or changes UI or formatting code. Apply the rules as constraints while writing it. Mention a rule only when it changed a decision, in one line.
- **Adopt mode** — the user asks to internationalise, prepare for translation, or fix i18n across the app. Work through Step 4.

Ship no new languages unless asked. Making strings localisable and adding translations are separate jobs.

## 2. Detect the Platform

Read the manifest as prose and load **only** the matching guide:

| Platform | Detected by | Load |
|---|---|---|
| **Web / JS / TS** | `package.json` | `references/js.md` |
| **Apple platforms** | `*.xcodeproj`, `Package.swift` with an app target | `references/apple.md` |
| **Android** | `build.gradle(.kts)` | `references/android.md` |

If the project already uses an i18n library (`next-intl`, `react-i18next`, `vue-i18n`, `FormatJS`, …), keep it and follow its conventions; the guide covers what to check, not which library to swap to. React Native/Expo uses `references/js.md` for strings and formatting. Other stacks: apply the rules using that platform's ICU/CLDR-backed APIs.

## 3. Rules

| Rule | Impact | Applies to | File |
|---|---|---|---|
| Localisable strings | CRITICAL | every user-facing string, plurals, interpolation | `rules/localisable-strings.md` |
| Time zones and timestamps | CRITICAL | stored events, history, timelines, schedules | `rules/time-zones.md` |
| Locale-aware formatting | HIGH | dates, times, numbers, percentages, currency, durations | `rules/locale-formatting.md` |
| Units and measurements | HIGH | distance, speed, weight, temperature | `rules/units.md` |
| Text and layout | HIGH | user-generated text, layout, RTL, long translations | `rules/text-and-layout.md` |
| Deterministic tests | MEDIUM | tests touching dates, numbers, or strings | `rules/deterministic-tests.md` |

## 4. Adopt Mode

1. **Inventory** — find hardcoded user-facing strings, hand-rolled date/number formats, string concatenation, fixed units, and `left`/`right` layout. Report the counts before editing
2. **Set up the resource** — one string catalog or message file in the platform's native format, English (or the project's development language) only
3. **Fix in impact order** — CRITICAL first. Change only what international correctness needs; keep the existing design and behaviour
4. **Never change persisted data semantics** (timestamp meaning, stored units) without an explicit migration the user has approved — propose it instead
5. **Test** — add the deterministic tests from `rules/deterministic-tests.md`; build and run the suite, and report real results
6. **Validate the UI** — pseudolocalisation, the longest text expansion, RTL, and the largest text size, using the tools in the platform guide

End with what changed, what is still hardcoded and why, and any migration you proposed but did not apply.

## Boundaries

- **Accessibility labels** must be localisable like any string; what they should say belongs to `accessibility`.
- **User-generated content** (names, notes, place names) is never translated, transliterated, or normalised unless the user asks.
- **Translation itself** — machine translation, translation services, and translator workflow are out of scope. Do not send app strings or user content to an external service.
Files in this package (10)
  • SKILL.md 4 KB
  • references/android.md 3 KB
  • references/apple.md 7 KB
  • references/js.md 5 KB
  • rules/deterministic-tests.md 2 KB
  • rules/locale-formatting.md 2 KB
  • rules/localisable-strings.md 2 KB
  • rules/text-and-layout.md 2 KB
  • rules/time-zones.md 2 KB
  • rules/units.md 2 KB

Versions

RepositoryScoreLicence
This page · tartinerlabs/skills90MIT
project-n-e-k-o/n.e.k.o100Apache-2.0
DnsQueen/orcinus-skills100MIT
filipe-campos/walph100MIT
helderberto/agent-skills100MIT
OpenClaudia/openclaudia-skills100MIT
drewdestar/discord-py-skills100MIT
iofficeai/aionui100Apache-2.0
pa001024/dna-builder100MIT

Database snapshot: 13.11.2026 · package version ea1731a27de9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100internationalization
    Makes applications ready for multiple languages and regions with externalized strings, ICU MessageFormat plurals, locale-aware dates, numbers and currencies, time zones, RTL layouts, Unicode-safe text handling and pseudo-localization. Use when adding i18n or l10n support, a new…
  • 100i18n-localization
    Finds hardcoded strings and structures locales, plurals, formats and RTL. Use when adding translations or auditing i18n coverage.
  • 100frappe-core-translation
    Use when implementing translations/i18n in Frappe v14-v16 apps. Covers _() in Python, __() in JavaScript, CSV translation files, bench commands, string extraction rules, lazy translation _lt(), PO/MO files [v15+], RTL support, and custom app translations. Prevents common…
  • 95ios-localization
    Implement, review, or improve localization and internationalization in iOS/macOS apps — String Catalogs (.xcstrings), LocalizedStringKey, LocalizedStringResource, pluralization, FormatStyle for numbers/dates/measurements, right-to-left layout, Dynamic Type, and locale-aware…
  • 90Android i18n
    Localize an Android app: string resources, Chinese/English/Spanish, plurals, RTL and locale testing. Use when the user asks for Chinese UI or multiple languages.
  • 100i18n-and-localization
    Review React Native localization for extracted strings, plurals, locale-aware formatting, and RTL layout. Use when adding a locale, implementing RTL, or auditing translation readiness.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.