Internationalization and Localization (i18n/L10n)

VerifiedSafe

Provides i18n/L10n patterns: detecting hardcoded strings, managing locale translation files, and RTL support. Helps when building multilingual apps by enforcing best practices like using translation keys, namespace organization, and fallback locales, with ready-to-use scripts for checking translations.

Sby Skills Guide Bot
DevelopmentIntermediate
3/4/2026
Claude CodeCursorWindsurfCopilotCodex
#i18n#localization#rtl#translations#react

Recommended for

Automated summary

Guides internationalization and localization: replacing hardcoded strings with translation keys, organizing locale files, handling RTL, and using Intl for dates and numbers.

Strengths

  • Provides concrete examples for React, Next.js, and Python
  • Includes an RTL section with CSS logical properties and a pre-release checklist
  • Offers an audit script for finding hardcoded strings and missing translations
  • Collects framework-agnostic best practices (namespaces, ICU, fallback)

Limitations

  • Introductory content: no advanced configuration (middleware, language detection)
  • The script is referenced but its implementation is not detailed in SKILL.md
  • Examples are limited to three stacks
When to use it

Use when adding multi-language support to an app, auditing hardcoded UI strings, or planning RTL layouts.

When not to use it

Not suited for advanced translation workflow automation (TMS, CI) or deep framework-specific configuration.

Security analysis

Safe
Quality score84/100

The skill is documentation-only and declares read-only tools (Read, Glob, Grep). It contains no destructive commands, secret exfiltration, obfuscated payloads, or safety-disabling instructions. The referenced i18n checker script is benign in intent and not actually executable under the declared tool permissions.

No concerns found

How this analysis is made

Examples

Hardcoded string audit
Scan this project for hardcoded user-facing strings and list which ones need translation keys.
Add react-i18next
Add react-i18next to this React app: create locale files for en and tr and replace the hardcoded strings in the header and login form.
RTL CSS review
Review our CSS for RTL readiness and convert physical properties like margin-left to logical ones.

name: i18n-localization description: Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support. allowed-tools: Read, Glob, Grep

i18n & Yerelleştirme

Uluslararasılaştırma (i18n) ve Yerelleştirme (L10n) en iyi uygulamaları.


1. Temel Kavramlar

| Terim | Anlamı | |------|---------| | i18n | Uluslararasılaştırma - uygulamayı çevrilebilir hale getirme | | L10n | Yerelleştirme - gerçek çeviriler | | Locale | Dil + Bölge (en-US, tr-TR) | | RTL | Sağdan sola diller (Arapça, İbranice) |


2. i18n Ne Zaman Kullanılır

| Proje Türü | i18n Gerekli mi? | |--------------|--------------| | Halka açık web uygulaması | ✅ Evet | | SaaS ürünü | ✅ Evet | | Dahili araç | ⚠️ Belki | | Tek bölgeli uygulama | ⚠️ Geleceği düşün | | Kişisel proje | ❌ İsteğe bağlı |


3. Uygulama Desenleri

React (react-i18next)

import { useTranslation } from 'react-i18next';

function Welcome() {
  const { t } = useTranslation();
  return <h1>{t('welcome.title')}</h1>;
}

Next.js (next-intl)

import { useTranslations } from 'next-intl';

export default function Page() {
  const t = useTranslations('Home');
  return <h1>{t('title')}</h1>;
}

Python (gettext)

from gettext import gettext as _

print(_("Welcome to our app"))

4. Dosya Yapısı

locales/
├── en/
│   ├── common.json
│   ├── auth.json
│   └── errors.json
├── tr/
│   ├── common.json
│   ├── auth.json
│   └── errors.json
└── ar/          # RTL
    └── ...

5. En İyi Uygulamalar

YAP ✅

  • Ham metin değil, çeviri anahtarları kullan
  • Çevirileri özelliğe göre ad alanlarına ayır (namespace)
  • Çoğullaştırmayı destekle
  • Tarih/sayı formatlarını yerel ayara göre işle
  • RTL'yi baştan planla
  • Karmaşık dizeler için ICU mesaj formatını kullan

YAPMA ❌

  • Bileşenlerde dizeleri sabit kodla (hardcode)
  • Çevrilmiş dizeleri birleştir (concatenate)
  • Metin uzunluğunu varsay (Almanca %30 daha uzundur)
  • RTL düzenini unut
  • Aynı dosyada dilleri karıştır

6. Yaygın Sorunlar

| Sorun | Çözüm | |-------|----------| | Eksik çeviri | Varsayılan dile geri dön (fallback) | | Sabit kodlanmış dizeler | Linter/denetleyici script kullan | | Tarih formatı | Intl.DateTimeFormat kullan | | Sayı formatı | Intl.NumberFormat kullan | | Çoğullaştırma | ICU mesaj formatı kullan |


7. RTL Desteği

/* CSS Mantıksal Özellikleri */
.container {
  margin-inline-start: 1rem;  /* margin-left değil */
  padding-inline-end: 1rem;   /* padding-right değil */
}

[dir="rtl"] .icon {
  transform: scaleX(-1);
}

8. Kontrol Listesi

Göndermeden önce:

  • [ ] Tüm kullanıcıya dönük dizeler çeviri anahtarlarını kullanıyor
  • [ ] Desteklenen tüm diller için yerel ayar dosyaları mevcut
  • [ ] Tarih/sayı biçimlendirmesi Intl API kullanıyor
  • [ ] RTL düzeni test edildi (varsa)
  • [ ] Geri dönüş (fallback) dili yapılandırıldı
  • [ ] Bileşenlerde sabit kodlanmış dize yok

Script

| Script | Amaç | Komut | |--------|---------|---------| | scripts/i18n_checker.py | Sabit kodlanmış dizeleri & eksik çevirileri algıla | python scripts/i18n_checker.py <project_path> |

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/internationalization-and-localization-i18n-l10n-mmbizk4w/download' --output '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md.part' && mv '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md.part' '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Glob, Grep

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md' && test -s '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/i18n-localization' && cp -R '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w' '.claude/skills/i18n-localization'

Cursor
test -f '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md' && test -s '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/i18n-localization' && cp -R '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w' '.cursor/skills/i18n-localization'

Codex
test -f '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md' && test -s '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/i18n-localization' && cp -R '.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w' '.agents/skills/i18n-localization'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w'

openskills read 'internationalization-and-localization-i18n-l10n-mmbizk4w'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/internationalization-and-localization-i18n-l10n-mmbizk4w/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills