Skip to content
i18n-localization logo

i18n & Yerelleştirme

i18n-localization

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

SKILL.md

Full skill instructions

i18n & Yerelleştirme

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


1. Temel Kavramlar

TerimAnlamı
i18nUluslararasılaştırma - uygulamayı çevrilebilir hale getirme
L10nYerelleştirme - gerçek çeviriler
LocaleDil + Bölge (en-US, tr-TR)
RTLSağ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 çeviriVarsayılan dile geri dön (fallback)
Sabit kodlanmış dizelerLinter/​denetleyici script kullan
Tarih formatıIntl.DateTimeFormat kullan
Sayı formatıIntl.NumberFormat kullan
ÇoğullaştırmaICU 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

ScriptAmaçKomut
scripts/​i18n_checker.pySabit kodlanmış dizeleri & eksik çevirileri algılapython scripts/​i18n_checker.py <project_path>

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View