Files
pwap/shared/i18n/locales/ar.json
T
Claude 31a0f86382 Organize shared code across web, mobile, and SDK UI projects
Centralized common code into shared/ folder to eliminate duplication and
improve maintainability across all three frontend projects (web, mobile,
pezkuwi-sdk-ui).

Changes:
- Added token types and constants to shared/types/tokens.ts
  - TokenInfo, PoolInfo, SwapQuote, and other DEX types
  - KNOWN_TOKENS with HEZ, PEZ, wUSDT definitions
  - Token logos (🟡🟣💵)

- Added Kurdistan color palette to shared/constants/
  - Kesk, Sor, Zer, Spî, Reş color definitions

- Added TOKEN_DISPLAY_SYMBOLS mapping (USDT vs wUSDT)

- Updated blockchain configuration in shared/blockchain/polkadot.ts
  - Added beta testnet endpoint (wss://beta-rpc.pezkuwi.art)
  - Defined DEFAULT_ENDPOINT constant

- Moved i18n to shared/i18n/
  - Centralized translation files for 6 languages (EN, TR, KMR, CKB, AR, FA)
  - Added LANGUAGES configuration with RTL support
  - Created isRTL() helper function

- Updated web and mobile to import from shared
  - web/src/types/dex.ts now re-exports from shared
  - web/src/contexts/PolkadotContext.tsx uses DEFAULT_ENDPOINT
  - mobile/src/i18n/index.ts uses shared translations
  - mobile/src/contexts/PolkadotContext.tsx uses DEFAULT_ENDPOINT

- Updated shared/README.md with comprehensive documentation

This architecture reduces code duplication and ensures consistency across
all frontend projects.
2025-11-14 19:48:43 +00:00

65 lines
2.0 KiB
JSON

{
"welcome": {
"title": "مرحباً بك في بيزكوي",
"subtitle": "بوابتك للحوكمة اللامركزية",
"selectLanguage": "اختر لغتك",
"continue": "متابعة"
},
"auth": {
"signIn": "تسجيل الدخول",
"signUp": "إنشاء حساب",
"email": "البريد الإلكتروني",
"password": "كلمة المرور",
"confirmPassword": "تأكيد كلمة المرور",
"forgotPassword": "نسيت كلمة المرور؟",
"noAccount": "ليس لديك حساب؟",
"haveAccount": "هل لديك حساب بالفعل؟",
"createAccount": "إنشاء حساب",
"welcomeBack": "مرحباً بعودتك!",
"getStarted": "ابدأ الآن"
},
"dashboard": {
"title": "لوحة التحكم",
"wallet": "المحفظة",
"staking": "التخزين",
"governance": "الحوكمة",
"dex": "البورصة",
"history": "السجل",
"settings": "الإعدادات",
"balance": "الرصيد",
"totalStaked": "إجمالي المخزن",
"rewards": "المكافآت",
"activeProposals": "المقترحات النشطة"
},
"wallet": {
"title": "المحفظة",
"connect": "ربط المحفظة",
"disconnect": "فصل الاتصال",
"address": "العنوان",
"balance": "الرصيد",
"send": "إرسال",
"receive": "استقبال",
"transaction": "المعاملة",
"history": "السجل"
},
"settings": {
"title": "الإعدادات",
"language": "اللغة",
"theme": "المظهر",
"notifications": "الإشعارات",
"security": "الأمان",
"about": "حول",
"logout": "تسجيل الخروج"
},
"common": {
"cancel": "إلغاء",
"confirm": "تأكيد",
"save": "حفظ",
"loading": "جاري التحميل...",
"error": "خطأ",
"success": "نجاح",
"retry": "إعادة المحاولة",
"close": "إغلاق"
}
}