mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-18 03:31:01 +00:00
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.
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"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": "بستن"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user