Skip to content

Commit

Permalink
TH-32: Aura > Default values in theme editor > should be localized no…
Browse files Browse the repository at this point in the history
…t hard coded in Arabic (#81)
  • Loading branch information
bj-anas authored Nov 21, 2024
1 parent 64e2236 commit 938b61e
Show file tree
Hide file tree
Showing 27 changed files with 123 additions and 102 deletions.
1 change: 1 addition & 0 deletions themes/aura/assets/thankyou.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
line-height:42px;
}
.thankyou-page-container .thankyou-wrapper .content-wrapper .heading .title{
text-align:center;
display:block;
font-size:24px;
}
Expand Down
38 changes: 24 additions & 14 deletions themes/aura/locales/ar.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,40 @@
"general": {
"show_more_button": "عرض المزيد",
"size_big_message": "المرجو تحميل صورة أقل من 2mb",
"buy_now": "اشتري الأن"
"buy_now": "اشتري الأن",
"add_to_cart": "أضف إلى السلة"
},
"head_metadata": {
"collections": "التصنيفات",
"thankyou": "شكرا جزيلا على ثقتكم",
"cart": "سلة مشترياتي"
},
"notice_bar": {
"title": "عرض خاص: توصيل مجاني، الدفع عند الاستلام، أسرع واطلب الآن"
},
"navbar": {
"search": {
"placeholder": "أدخل الكلمة الرئيسية للبحث عنها..."
}
},
"featured_products": {
"title": "المنتجات المميزة"
"title": "المنتجات الأكتر مبيعاً"
},
"featured_collections": {
"title": "مجموعات مميزة"
"title": "تصنيفات رائجة"
},
"list_collections": {
"title": "مجموعات"
},
"product_slider": {
"title": "⚡︎عرض خاص",
"ends_at": "ينتهي في :"
},
"related_products": {
"title": "منتجات ذات صلة"
},
"reviews": {
"title": "التعليقات",
"ratings": "التقييمات",
"upload_image": "تحميل الصورة (PNG، JPEG)",
"add_review": "أضف تعليقك",
Expand Down Expand Up @@ -78,6 +90,9 @@
}
},
"thankyou": {
"default_title": "لقد تم تسجيل طلبك بنجاح",
"default_subtitle": "شكرا لك على اختيار متجرنا",
"default_description": "نحن سعداء لاختيارك متجرنا ونتمنى ان تكون تجربتك مع منتجاتنا جد مميزة، سنرسل لك تأكيدا بالشحن بمجرد شحن طلبك",
"return_cta": "الصفحة الرئيسية ",
"details": {
"title": "ملخص الفاتورة",
Expand All @@ -94,21 +109,16 @@
}
},
"snippets": {
"collection_preview": {
"visit_cta": "زيارة"
},
"product_preview": {
"cta_button": "تسوق الآن"
},
"single_product": {
"stock": "المنتجات المتبقية في المخزون",
"quantity": "الكمية",
"variants": {
"upload": "تحميل صورة (PNG, JPEG)"
}
},
"express_checkout": {
"cta": "اشتري الآن"
},
"collection-listing": {
"home": "الرئيسية",
"collections": "التصنيفات"
Expand All @@ -117,8 +127,8 @@
"order_by": "ترتيب حسب",
"price_asc": "السعر: من الأقل إلى الأعلى",
"price_desc": "السعر: من الأعلى إلى الأقل",
"created_at_asc": "الأحدث",
"created_at_desc": "الأقدم",
"created_at_asc": "الأقدم",
"created_at_desc": "الأحدث",
"title_asc": "الأبجدية: من الأقل إلى الأعلى",
"title_desc": "الأبجدية: من الأعلى إلى الأقل"
}
Expand All @@ -137,10 +147,10 @@
},
"contact": {
"title": "اتصل بنا"
},
"copyright": {
"title": "© 2023 YC. كل الحقوق محفوظة."
}
},
"copyright": {
"title": "© %. كل الحقوق محفوظة"
}
},
"errors": {
Expand Down
38 changes: 24 additions & 14 deletions themes/aura/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
"general": {
"show_more_button": "Show more",
"size_big_message": "Please upload an image less than 2mb",
"buy_now": "Buy now"
"buy_now": "Buy now",
"add_to_cart": "Add to cart"
},
"head_metadata": {
"collections": "Collections",
"thankyou": "Thank you",
"cart": "Shopping Cart"
},
"notice_bar": {
"title": "Special offer: free delivery, pay on delivery, faster and order now"
},
"navbar": {
"search": {
"placeholder": "Enter keyword to search for..."
Expand All @@ -23,7 +27,15 @@
"list_collections": {
"title": "Collections"
},
"product_slider": {
"title": "⚡︎Special Offer",
"ends_at": "Ends at:"
},
"related_products": {
"title": "Related products"
},
"reviews": {
"title": "Reviews",
"ratings": "Ratings",
"upload_image": "Upload image (PNG, JPEG)",
"add_review": "Add your comment",
Expand All @@ -39,8 +51,8 @@
},
"cart": {
"title": "Shopping Cart",
"cart": "your basket",
"items_count": "items",
"cart": "Your basket",
"items_count": "Items",
"total_amount": "Total",
"empty_cart": "Your cart is currently empty.",
"items": {
Expand Down Expand Up @@ -78,6 +90,9 @@
}
},
"thankyou": {
"default_title": "Your order has been successfully placed",
"default_subtitle": "Thank you for choosing our store",
"default_description": "We are happy that you have chosen our store and we hope that your experience with our products will be very special. We will send you a shipping confirmation once your order is shipped",
"return_cta": "Return to shop",
"details": {
"title": "Order details",
Expand All @@ -94,21 +109,16 @@
}
},
"snippets": {
"collection_preview": {
"visit_cta": "Visit o"
},
"product_preview": {
"cta_button": "Shop now"
},
"single_product": {
"stock": "Products remaining in stock",
"quantity": "Quantity",
"variants": {
"upload": "Upload an image"
}
},
"express_checkout": {
"cta": "Buy now"
},
"collection-listing": {
"home": "Home",
"collections": "Collections"
Expand All @@ -117,8 +127,8 @@
"order_by": "Order by",
"price_asc": "Price: Low to High",
"price_desc": "Price: High to Low",
"created_at_asc": "Newest",
"created_at_desc": "Oldest",
"created_at_asc": "Oldest",
"created_at_desc": "Newest",
"title_asc": "Alphabetically: A-Z",
"title_desc": "Alphabetically: Z-A"
}
Expand All @@ -137,10 +147,10 @@
},
"contact": {
"title": "Contact Us"
},
"copyright": {
"title": "© 2023 YC. All rights reserved."
}
},
"copyright": {
"title": "© %. All rights reserved"
}
},
"errors": {
Expand Down
38 changes: 24 additions & 14 deletions themes/aura/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,40 @@
"general": {
"show_more_button": "Voir plus",
"size_big_message": "Veuillez télécharger une image de moins de 2 Mo",
"buy_now": "Acheter"
"buy_now": "Acheter",
"add_to_cart": "Ajouter au panier"
},
"head_metadata": {
"collections": "Collections",
"thankyou": "Merci",
"cart": "Panier d'achat"
},
"notice_bar": {
"title": "Offre spéciale : livraison gratuite, paiement à la livraison, plus rapide et commandez maintenant"
},
"navbar": {
"search": {
"placeholder": "Entrez un mot-clé à rechercher..."
}
},
"featured_products": {
"title": "Produits en vedette.a.."
"title": "Produits en vedette"
},
"featured_collections": {
"title": "Collections en vedette .."
"title": "Collections en vedette"
},
"list_collections": {
"title": "Collections"
},
"product_slider": {
"title": "⚡︎Offre spéciale",
"ends_at": "Finit à :"
},
"related_products": {
"title": "Produits connexes"
},
"reviews": {
"title": "Commentaires",
"ratings": "Évaluations",
"upload_image": "Télécharger une image (PNG, JPEG)",
"add_review": "Ajouter un commentaire",
Expand Down Expand Up @@ -78,6 +90,9 @@
}
},
"thankyou": {
"default_title": "Votre commande a été passée avec succès",
"default_subtitle": "Merci d'avoir choisi notre magasin",
"default_description": "Nous sommes heureux que vous ayez choisi notre magasin et nous espérons que votre expérience avec nos produits sera très spéciale. Nous vous enverrons une confirmation d'expédition une fois votre commande expédiée",
"return_cta": "Retour au magasin",
"details": {
"title": "Détails de la commande",
Expand All @@ -94,21 +109,16 @@
}
},
"snippets": {
"collection_preview": {
"visit_cta": "Visiter o"
},
"product_preview": {
"cta_button": "Magasiner maintenant"
},
"single_product": {
"stock": "Produits restants en stock",
"quantity": "Quantité",
"variants": {
"upload": "Télécharger une image"
}
},
"express_checkout": {
"cta": "Acheter maintent"
},
"collection-listing": {
"home": "Accueil",
"collections": "Collections"
Expand All @@ -117,8 +127,8 @@
"order_by": "Trier par",
"price_asc": "Prix: du plus bas au plus élevé",
"price_desc": "Prix: du plus élevé au plus bas",
"created_at_asc": "Le plus récent",
"created_at_desc": "Le plus ancien",
"created_at_asc": "Le plus ancien",
"created_at_desc": "Le plus récent",
"title_asc": "Alphabétique: de A à Z",
"title_desc": "Alphabétique: de Z à A"
}
Expand All @@ -137,10 +147,10 @@
},
"contact": {
"title": "Contactez-nous"
},
"copyright": {
"title": "© 2023 YC. Tous droits réservés."
}
},
"copyright": {
"title": "© %. Tous droits réservés"
}
},
"errors": {
Expand Down
5 changes: 2 additions & 3 deletions themes/aura/sections/featured-collections.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<section class='section-featured-collections-{{ id }} yc-featured-collections container'>
<div class="yc-featured-container">
<h1 class='yc-section-title'>
{{ section.settings.title }}
{{ section.settings.title | default: "featured_collections.title" | t }}
</h1>
</div>
<div class='collections-list'>
Expand All @@ -33,8 +33,7 @@
{
"type": "text",
"id": "title",
"label": "Title",
"default": "تصنيفات رائجة"
"label": "Title"
},
{
"type": "select",
Expand Down
11 changes: 5 additions & 6 deletions themes/aura/sections/featured-product-slider.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div class='bg-color-{{ id }}'>
<div class="counter-wrapper">
<h1 class='yc-section-title'>
{{ section.settings.title }}
{{ section.settings.title | default: 'product_slider.title' | t }}
</h1>
{% if section.settings.countdown_enabled %}
{%- render 'countdown', section_settings: section.settings -%}
Expand Down Expand Up @@ -122,8 +122,7 @@
{
"type": "text",
"id": "title",
"label": "Title",
"default": "⚡︎عرض خاص"
"label": "Title"
},
{
"type": "color",
Expand Down Expand Up @@ -153,7 +152,8 @@
{
"type": "color",
"id": "background_color",
"label": "Background color"
"label": "Background color",
"default": "#F33520FF"
},
{
"type": "header",
Expand Down Expand Up @@ -211,8 +211,7 @@
{
"label": "Message",
"id": "countdown_message",
"type": "richtext",
"default": "ينتهي في :"
"type": "richtext"
},
{
"label": "Message color",
Expand Down
5 changes: 2 additions & 3 deletions themes/aura/sections/featured-products.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{% endfor %}

<section class='section-featured-products-{{ id }} yc-featured-products container'>
<h2 class='yc-section-title'>{{ section.settings.title }}</h2>
<h2 class='yc-section-title'>{{ section.settings.title | default: 'featured_products.title' | t }}</h2>
<div class='product-list product-container-{{ id }}'>
{% for block in section.blocks %}
{% if block.settings.product %}
Expand All @@ -78,8 +78,7 @@
{
"type": "text",
"id": "title",
"label": "Title",
"default": "المنتجات الأكتر مبيعاً"
"label": "Title"
},
{
"type": "select",
Expand Down
Loading

0 comments on commit 938b61e

Please sign in to comment.