UNPKG

@salla.sa/twilight-components

Version:
293 lines (291 loc) 11.3 kB
/*! * Crafted with ❤ by Salla */ const translations = { 'currency.usd': { ar: 'دولار', en: 'USD', }, 'pages.loyalty_program.your_points': { ar: 'نقاطك', en: 'Your points', }, 'pages.loyalty_program.how_to_start': { ar: 'كيف تبدأ؟', en: 'How to Start?', }, 'pages.loyalty_program.three_simple_steps': { ar: 'ثلاث خطوات بسيطة تفصلك عن مكافآت رائعة!', en: 'Three simple steps separate you from great rewards!', }, 'pages.loyalty_program.two_simple_steps': { ar: 'خطوات بسيطة تفصلك عن المزيد من نقاط الولاء!', en: 'Two simple steps separate you from great rewards!', }, 'pages.loyalty_program.register': { ar: 'سجِّل', en: 'Register', }, 'pages.loyalty_program.create_account': { ar: 'أنشئ حساب جديد أو سجِّل الدخول لحسابك.', en: 'Create a new account or log in to your account.', }, 'pages.loyalty_program.earn_points': { ar: 'اكسب نقاط', en: 'Earn Points', }, 'pages.loyalty_program.complete_tasks': { ar: 'أكمل مهام محددة لتتمكن من أخذ عدد من نقاط الولاء.', en: 'Complete specific tasks to earn a number of loyalty points.', }, 'pages.loyalty_program.redeem_rewards': { ar: 'استبدلها بمكافآت', en: 'Redeem Rewards', }, 'pages.loyalty_program.enjoy_rewards': { ar: 'استمتع بالمكافآت المميزة التي تنتظرك في المتجر!', en: 'Enjoy the exclusive rewards waiting for you in the store!', }, 'pages.loyalty_program.all': { ar: 'الكل', en: 'All', }, 'pages.loyalty_program.rewards': { ar: 'المكافآت', en: 'Rewards', }, 'pages.loyalty_program.points': { ar: 'نقطة', en: 'points', }, 'pages.loyalty_program.redeem_reward': { ar: 'استبدل النقاط', en: 'Redeem Reward', }, 'pages.loyalty_program.shop_now': { ar: 'تسوق الآن', en: 'Shop Now', }, 'pages.loyalty_program.out_of_stock': { ar: 'نفدت الكمية', en: 'Out of stock', }, 'pages.loyalty_program.start_earning_points': { ar: 'ابدأ بكسب النقاط اليوم', en: 'Start Earning Points Today', }, 'pages.loyalty_program.one_time_points': { ar: 'هذه النقاط تستحق لمرة واحدة', en: 'These points are earned only once', }, 'pages.loyalty_program.completed': { ar: 'مكتملة', en: 'Completed', }, 'pages.loyalty_program.show_more': { ar: 'عرض المزيد', en: 'Show More', }, 'pages.loyalty_program.show_less': { ar: 'عرض أقل', en: 'Show Less', }, 'currency.sar': { ar: 'ر.س', en: 'SAR', }, 'pages.loyalty_program.copied': { ar: 'تم النسخ ✓', en: 'Copied ✓', }, 'pages.loyalty_program.redeem_confirmation': { ar: 'هل أنت متأكد من إستبدال', en: 'Are you sure you want to redeem', }, 'pages.loyalty_program.for': { ar: 'مقابل', en: 'for', }, 'pages.loyalty_program.first_order_store_fix_amount': { ar: 'النقاط المستحقة عند اتمام أول طلب من المتجر', en: 'Points earned when completing the first order from the store', }, 'pages.loyalty_program.first_order_store_for_unit': { ar: 'النقاط المستحقة عند اتمام أول طلب من المتجر بالوحدة', en: 'Points earned when completing the first order from the store for the unit', }, 'pages.loyalty_program.order_from_app_fix_amount': { ar: 'النقاط المستحقة عند اتمام طلب من التطبيق', en: 'Points earned when completing an order from the app', }, 'pages.loyalty_program.order_from_app_for_unit': { ar: 'النقاط المستحقة عند اتمام طلب من التطبيق بالوحدة', en: 'Points earned when completing an order from the app for the unit', }, 'pages.loyalty_program.step_1': { ar: 'الخطوة الأولى', en: 'Step One', }, 'pages.loyalty_program.step_2': { ar: 'الخطوة الثانية', en: 'Step Two', }, 'pages.loyalty_program.step_3': { ar: 'الخطوة الثالثة', en: 'Step Three', }, 'pages.loyalty_program.step_4': { ar: 'الخطوة الرابعة', en: 'Step Four', }, 'pages.loyalty_program.step_5': { ar: 'الخطوة الخامسة', en: 'Step Five', }, 'pages.loyalty_program.step_6': { ar: 'الخطوة السادسة', en: 'Step Six', }, 'pages.loyalty_program.affiliate_link_1': { ar: 'شارك أصدقائك رابط المتجر الإلكتروني لزيارته', en: 'Share the store\'s electronic link with your friends to visit it', }, 'pages.loyalty_program.affiliate_link_2': { ar: 'ادعُ أصدقائك لإنشاء حساباتهم عبر الرابط الذي شاركته', en: 'Invite your friends to create their accounts through the link you shared', }, 'pages.loyalty_program.affiliate_link_3': { ar: 'اكسب :points نقطة عندما يقوم أصدقاؤك بإتمام أول طلب لهم', en: 'Earn :points points when your friends complete their first order', }, 'pages.loyalty_program.order_from_pos_1': { ar: 'تسوّق من أحد فروعنا المحددة أدناه', en: 'Shop from one of our selected branches below', }, 'pages.loyalty_program.order_from_pos_2': { ar: 'شارك رقم الجوال المسجّل بحسابك مع المحاسب', en: 'Share the mobile number registered with your account with the accountant', }, 'pages.loyalty_program.branches': { ar: 'الفروع', en: 'Branches', }, 'pages.loyalty_program.shop_from_branches': { ar: 'يمكنك كسب النقاط عبر التسوّق في أحد فروعنا حولك', en: 'You can earn points by shopping at one of our branches around you', }, 'pages.loyalty_program.branch': { ar: 'فرع', en: 'Branch', }, 'pages.loyalty_program.free_product': { ar: 'منتج مجاني', en: 'Free Product', }, 'pages.loyalty_program.coupon_discount': { ar: 'خصم كوبون', en: 'Coupon Discount', }, 'pages.loyalty_program.free_shipping': { ar: 'شحن مجاني', en: 'Free Shipping', }, 'pages.loyalty_program.order_minimum_amount': { ar: 'الحد الأدنى للطلب', en: 'Order Minimum Amount', }, 'pages.loyalty_program.coupon_maximum_amount': { ar: 'أقصى مبلغ للخصم', en: 'Maximum Discount Amount', }, 'pages.loyalty_program.included': { ar: 'مشمولة', en: 'Included', }, 'pages.loyalty_program.excluded': { ar: 'غير مشمولة', en: 'Excluded', }, 'pages.loyalty_program.how_to_benefit_from_this_reward': { ar: 'كيف تستفيد من هذه المكافأة؟', en: 'How to benefit from this reward?', }, 'pages.loyalty_program.terms_and_conditions': { ar: 'الشروط والأحكام', en: 'Terms and Conditions', }, 'pages.loyalty_program.redeem_on_specific_products': { ar: 'المكافأة متاحة على منتجات محددة. أعجبك منتج معين؟ توجَّه لنفس صفحة المنتج لاستبدال نقاطك به مجانًا!', en: 'Rewards apply to selected products. See something you like? Redeem it for free on the product page.', }, 'pages.loyalty_program.redeem_on_specific_brands': { ar: 'يمكنك استبدال نقاطك للحصول على خصم على الماركات المحددة أدناه.', en: 'You can redeem your points for a discount on the specified brands below.', }, 'pages.loyalty_program.redeem_on_specific_categories': { ar: 'يمكنك استبدال نقاطك للحصول على خصم على التصنيفات المحددة أدناه.', en: 'You can redeem your points for a discount on the specified categories below.', }, 'pages.loyalty_program.redeem_on_all_products': { ar: 'يمكنك استبدال نقاطك للحصول على خصم على كل المنتجات في المتجر.', en: 'You can redeem your points for a discount on all products in the store.', }, 'pages.loyalty_program.redeem_for_free_shipping': { ar: 'يمكنك استبدال نقاطك للحصول على الشحن المجاني', en: 'You can redeem your points for free shipping', }, 'pages.loyalty_program.want_to_redeem_free_product': { ar: 'ودّك بهذا المنتج مجانًا؟', en: 'Want this product for free?', }, 'pages.loyalty_program.exchange_points_for_free_product': { ar: 'استبدل' + ' :points ' + 'نقطة بحسابك بهذا المنتج الآن!', en: 'Exchange' + ' :points ' + 'point in your account for this product now!', }, 'pages.loyalty_program.exchange_points': { ar: 'استبدل نقاطك', en: 'Exchange points', }, 'pages.loyalty_program.excluded_categories': { ar: 'التصنيفات الغير مشمولة', en: 'Excluded Categories', }, 'pages.loyalty_program.excluded_brands': { ar: 'الماركات الغير المشمولة', en: 'ِِExcluded Brands', }, 'pages.loyalty_program.excluded_products': { ar: 'المنتجات الغير المشمولة', en: 'Excluded Products', }, 'pages.loyalty_program.included_categories': { ar: 'التصنيفات المشمولة', en: 'Included Categories', }, 'pages.loyalty_program.included_brands': { ar: 'الماركات المشمولة', en: 'Included Brands', }, 'pages.loyalty_program.included_products': { ar: 'المنتجات المشمولة', en: 'Included Products', }, 'pages.loyalty_program.show_reward': { ar: 'عرض المكافأة', en: 'Show Reward', }, }; const setNestedAsync = (lang, key, value) => { return new Promise((resolve) => { salla.helpers.setNested(salla.lang.messages[lang], key, value); resolve(true); }); }; const setTranslations = async () => { for (const [key, value] of Object.entries(translations)) { for (const [lang, text] of Object.entries(value)) { await setNestedAsync(`${lang}.trans`, key, text); } } }; export { setTranslations as s };