ワンクリックで
add-translations
Add or update i18n keys in both English and Arabic locale files
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Add or update i18n keys in both English and Arabic locale files
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Transform the base template into a specific application
Scaffold a UI component with unistyles variants pattern
Scaffold a complete feature module with types, service, hooks, schema, and constants
Generate a validated form with Zod schema, react-hook-form, and i18n
Add a new screen or tab to the app with routing and i18n
Review changed code against project conventions and rules
| name | add-translations |
| description | Add or update i18n keys in both English and Arabic locale files |
| auto-invocable | true |
| triggers | ["add translation","add i18n","translate text","add locale keys","update translations"] |
Add or update i18n keys in both locale files simultaneously.
Ask the user for:
Read the current contents of:
src/i18n/locales/en.jsonsrc/i18n/locales/ar.jsonKeys follow dot-notation namespacing:
{
"namespace": {
"keyName": "Value"
}
}
Standard namespaces in this project:
common - Shared action words (loading, cancel, save, delete, etc.)tabs - Tab bar labelshome - Home screen contentsettings - Settings screen contenterrors - Error messagesvalidation - Form validation messages<feature> - Feature-specific keys (products, orders, etc.)fields - Form field labels (shared across features)For Arabic translations:
TODO comment in the commit message listing uncertain keysCommon Arabic translations reference:
| English | Arabic |
|---|---|
| Save | حفظ |
| Cancel | إلغاء |
| Delete | حذف |
| Edit | تعديل |
| Submit | إرسال |
| Search | بحث |
| Loading... | جارٍ التحميل... |
| Error | خطأ |
| Success | نجاح |
| Required | مطلوب |
| Settings | الإعدادات |
| Profile | الملف الشخصي |
| Notifications | الإشعارات |
| Back | رجوع |
| Next | التالي |
| Done | تم |
| Retry | إعادة المحاولة |
| Close | إغلاق |
| Confirm | تأكيد |
| No items found | لا توجد عناصر |
| Add new | إضافة جديد |
| Created successfully | تم الإنشاء بنجاح |
| Updated successfully | تم التحديث بنجاح |
| Deleted successfully | تم الحذف بنجاح |
After editing, verify both files have identical key structures. Every key in en.json must exist in ar.json and vice versa. The values differ (different languages) but the shape must match exactly.
Report what was added/changed:
Added to "products" namespace:
- products.title: "Products" / "المنتجات"
- products.empty: "No products found" / "لا توجد منتجات"
- products.addNew: "Add Product" / "إضافة منتج"
Files modified:
- src/i18n/locales/en.json
- src/i18n/locales/ar.json
en.json and ar.json simultaneously"validation" namespace{{variable}})products.deleteConfirm not products.msg1