localize
ما الذي تفعله
تنفذ هذه المهارة الخطوات اللازمة لترجمة اللعبة إلى لغات أخرى، من إيجاد النصوص المكتوبة داخل الشيفرة إلى فحص الترجمات والتخطيط من اليمين إلى اليسار. وهي موجهة لفرق الألعاب التي تجهز إصداراً مترجماً.
متى تستخدمها
- ✓عندما تكون في اللعبة نصوص مكتوبة مباشرة في الشيفرة وتحتاج إلى نقلها إلى ملفات الترجمة.
- ✓عندما يريد الفريق التحقق من اكتمال الترجمات ومناسبتها للشاشة.
- ✓عندما تستعد اللعبة للغة تُكتب من اليمين إلى اليسار.
رابط المهارة
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/localize/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ابحث عن كل النصوص المكتوبة داخل الشيفرة في لعبتي، وجهزها للترجمة إلى الإسبانية والألمانية.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تشغّل المهارة أحد أوضاعها، مثل فحص النصوص المكتوبة داخل الشيفرة، أو استخراج جداول النصوص، أو التحقق من الترجمات، أو دورة جودة كاملة. تختار الوضع الذي تحتاجه، وتغطي المهارة العملية من استخراج النصوص إلى الفحوص النهائية.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation
Localization Pipeline
Localization is not just translation — it is the full process of making a game feel native in every language and region. Poor localization breaks immersion, confuses players, and blocks platform certification. This skill covers the complete pipeline from string extraction through cultural review, VO recording, RTL layout testing, and localization QA sign-off.
Modes:
scan— Find hardcoded strings and localization anti-patterns (read-only)extract— Extract strings and generate translation-ready tablesvalidate— Check translations for completeness, placeholders, and lengthstatus— Coverage matrix across all localesbrief— Generate translator context briefing document for an external teamcultural-review— Flag culturally sensitive content, symbols, colours, idiomsvo-pipeline— Manage voice-over localization: scripts, recording specs, integrationrtl-check— Validate RTL language layout, mirroring, and font supportfreeze— Enforce string freeze; lock source strings before translation beginsqa— Run the full localization QA cycle before release
If no subcommand is provided, output usage and stop. Verdict: FAIL — missing required subcommand.
Every AskUserQuestion call follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
Phase 2A: Scan Mode
Search the code root (resolve per .claude/docs/code-root-resolution.md) for hardcoded user-facing strings. If the code root is unresolved, report NOT ASSESSED — code root unresolved rather than zero hits. Zero hits from an unresolved root reads as "nothing to localize", which is the failure this guards:
- String literals in UI code not wrapped in a localization function (
tr(),Tr(),NSLocalizedString,GetText, etc.) - Concatenated strings that should be parameterized
- Strings with positional placeholders (
%s,%d) instead of named ones ({playerName}) - Format strings that mix locale-sensitive data (numbers, dates, currencies) without locale-aware formatting
Search for localization anti-patterns:
- Date/time formatting not using locale-aware functions
- Number formatting without locale awareness (
1,000vs1.000) - Text embedded in images or textures (flag asset files in
assets/) - Strings that assume left-to-right text direction (positional layout, string assembly order)
- Gender/plurality assumptions baked into string logic (must use plural forms or gender tokens)
- Hardcoded punctuation (e.g.
"You won!"— exclamation styles vary by locale)
Report all findings with file paths and line numbers. This mode is read-only — no files are written.
Phase 2B: Extract Mode
- Scan all source files for localized string references
- Compare against the existing string table in
assets/data/strings/ - Generate new entries for strings not yet keyed
- Suggest key names following the convention:
[category].[subcategory].[description]- Example:
ui.hud.health_label,dialogue.npc.merchant.greeting,menu.main.play_button
- Example:
- Each new entry must include a
contextfield — a translator comment explaining:- Where it appears (which screen, which scene)
- Maximum character length
- Any placeholder meaning (
{playerName}= the player's chosen display name) - Gender/plurality context if applicable
Output a diff of new strings to add to the string table.
Present the diff to the user. Ask: "May I write these new entries to assets/data/strings/strings-en.json?"
If yes, write only the diff (new entries), not a full replacement. Verdict: COMPLETE — strings extracted and written.
Phase 2C: Validate Mode
Read all string table files in assets/data/strings/. For each locale, check:
- Completeness — key exists in source (en) but no translation for this locale
- Placeholder mismatches — source has
{name}but translation omits it or adds extras - String length violations — translation exceeds the character limit recorded in the source
contextfield - Plural form count — locale requires N plural forms; translation provides fewer
- Orphaned keys — translation exists but nothing in the code root references the key
- Stale translations — source string changed after translation was written (flag for re-translation
الأسئلة الشائعة
هل تترجم النص نفسه؟
تجهّز المهارة العملية وتفحصها، بما في ذلك وثيقة إرشادية لفريق ترجمة خارجي.
ما تجميد النصوص؟
هو نقطة يُقفل فيها النص المصدر، حتى يعمل المترجمون على نص لن يتغير.
ماذا تفحص المراجعة الثقافية؟
تُبرز عناصر مثل الرموز والألوان والتعابير الاصطلاحية التي قد لا تناسب كل منطقة.
التفاصيل
الوصف الأصلي من المؤلف
Localization pipeline — find hardcoded strings, extract string tables, cultural review, VO, RTL, enforce string freeze.
الشعبية
- نجوم GitHub
- 33k
- الترتيب
- #8461
- الترخيص
- MIT
- آخر تحديث
- 18/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
adopt
33kيتحقق من أن وثائق مشروع لعبة قائم تتبع صيغ قالب الاستوديو، ثم يكتب خطة ترحيل مرقمة لسد أي فجوات.
architecture-decision
33kيكتب سجل قرار معماري لاختيار تقني، يغطي السياق والبدائل والعواقب، ويراجعه الأدوار التقنية المناسبة.
architecture-review
33kيتحقق من أن قراراتك التقنية تغطي كل متطلبات التصميم، ولا تتعارض، وتناسب إصدار المحرك، مع حكم واضح بالنجاح أو الملاحظة.
art-bible
33kيكتب كتاب الفن الذي يحدد الهوية البصرية للعبة، حتى تتبع إنتاج الأصول قواعد أسلوب واحدة واضحة.
مهارات مشابهة
obsidian-vault-maintainer
394kيساعد وكيلك على الحفاظ على خزنة ذاكرة متوافقة مع Obsidian، بروابط ويكي تعمل وخصائص متسقة وأقسام آلية آمنة.
wiki-maintainer
394kيساعد وكيلك على صيانة ويكي ذاكرة OpenClaw بصفحات قابلة للتكرار وكتل مُدارة آمنة، مع فحص التناقضات والثغرات.
obsidian
394kيتيح لوكيلك قراءة ملاحظات Obsidian ومهامها وروابطها وخصائصها والبحث فيها وإنشاؤها وتعديلها، عبر سطر أوامر Obsidian الرسمي.