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.
- Author
- tartinerlabs ↗
- Repository
- skills ↗
- Licence
- MIT
- Last repository change
- 24.10.2026
Assessment and security
- Files in this package
- 10
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.
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. Pick the Mode
- 2. Detect the Platform
- 3. Rules
- 4. Adopt Mode
- Boundaries
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
| Repository | Score | Licence |
|---|---|---|
| This page · tartinerlabs/skills | 90 | MIT |
| project-n-e-k-o/n.e.k.o | 100 | Apache-2.0 |
| DnsQueen/orcinus-skills | 100 | MIT |
| filipe-campos/walph | 100 | MIT |
| helderberto/agent-skills | 100 | MIT |
| OpenClaudia/openclaudia-skills | 100 | MIT |
| drewdestar/discord-py-skills | 100 | MIT |
| iofficeai/aionui | 100 | Apache-2.0 |
| pa001024/dna-builder | 100 | MIT |
Database snapshot: 13.11.2026 · package version ea1731a27de9 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
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.