create-abcart-theme 0.10.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +133 -127
- package/LICENSE +202 -202
- package/NOTICE +2 -2
- package/README.md +65 -65
- package/bin/create-abcart-theme.mjs +4 -4
- package/package.json +49 -49
- package/src/args.mjs +113 -113
- package/src/banner.mjs +21 -21
- package/src/cli.mjs +119 -119
- package/src/create.mjs +85 -82
- package/src/package-manager.mjs +32 -32
- package/src/style.mjs +17 -17
- package/templates/default/.agents/skills/{wocart-docs → abcart-docs}/SKILL.md +146 -146
- package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/SKILL.md +58 -58
- package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/inputs-and-rights.md +47 -47
- package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/layout-rtl-and-phone.md +36 -36
- package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/measure-the-design.md +60 -60
- package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/tokens-sections-content.md +103 -103
- package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/references/verify-and-report.md +102 -102
- package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/scripts/compare-design.cjs +230 -230
- package/templates/default/.agents/skills/{wocart-theme-from-design → abcart-theme-from-design}/scripts/qa-pages.cjs +219 -219
- package/templates/default/.agents/skills/shopify-theme-asset-collector/SKILL.md +125 -125
- package/templates/default/.agents/skills/shopify-theme-asset-collector/scripts/collect_public_assets.py +370 -370
- package/templates/default/.dev.vars.example +12 -12
- package/templates/default/AGENTS.md +240 -240
- package/templates/default/README.md +184 -184
- package/templates/default/_gitignore +11 -11
- package/templates/default/astro.config.mjs +85 -85
- package/templates/default/package.json +36 -36
- package/templates/default/public/fonts/OFL.txt +96 -96
- package/templates/default/src/actions/index.ts +22 -22
- package/templates/default/src/components/cart/AddToCartButton.astro +45 -45
- package/templates/default/src/components/cart/CartDrawer.astro +47 -47
- package/templates/default/src/components/cart/CartSummary.astro +11 -11
- package/templates/default/src/components/cart/FreeShipping.astro +7 -7
- package/templates/default/src/components/checkout/CheckoutMain.astro +29 -29
- package/templates/default/src/components/checkout/OrderForm.astro +280 -280
- package/templates/default/src/components/checkout/ThankYouMain.astro +68 -68
- package/templates/default/src/components/landing/LandingImages.astro +51 -51
- package/templates/default/src/components/landing/LandingOrder.astro +46 -46
- package/templates/default/src/components/landing/LandingProduct.astro +41 -41
- package/templates/default/src/components/listing/ListingMain.astro +93 -93
- package/templates/default/src/components/listing/PageMain.astro +52 -52
- package/templates/default/src/components/listing/Pagination.astro +31 -31
- package/templates/default/src/components/listing/SortControl.astro +35 -35
- package/templates/default/src/components/product/BuyBox.astro +96 -96
- package/templates/default/src/components/product/Description.astro +24 -24
- package/templates/default/src/components/product/Gallery.astro +66 -66
- package/templates/default/src/components/product/MobileBuyBar.astro +29 -29
- package/templates/default/src/components/product/OfferChoice.astro +66 -66
- package/templates/default/src/components/product/ProductMain.astro +40 -40
- package/templates/default/src/components/product/ProductReviews.astro +72 -72
- package/templates/default/src/components/product/RelatedProducts.astro +30 -30
- package/templates/default/src/components/product/blocks/BenefitsBlock.astro +13 -13
- package/templates/default/src/components/product/blocks/CollapsibleBlock.astro +20 -20
- package/templates/default/src/components/product/blocks/DescriptionBlock.astro +19 -19
- package/templates/default/src/components/product/blocks/DetailsBlock.astro +33 -33
- package/templates/default/src/components/product/blocks/GalleryBlock.astro +12 -12
- package/templates/default/src/components/product/blocks/OrderBlock.astro +30 -30
- package/templates/default/src/components/product/blocks/PriceBlock.astro +23 -23
- package/templates/default/src/components/product/blocks/RatingBlock.astro +16 -16
- package/templates/default/src/components/product/blocks/StockBlock.astro +22 -22
- package/templates/default/src/components/product/blocks/TextBlock.astro +11 -11
- package/templates/default/src/components/product/blocks/TitleBlock.astro +20 -20
- package/templates/default/src/components/reviews/ReviewCard.astro +46 -46
- package/templates/default/src/components/reviews/ReviewForm.astro +113 -113
- package/templates/default/src/components/reviews/VoiceNote.astro +60 -60
- package/templates/default/src/components/sections/CollectionCards.astro +65 -65
- package/templates/default/src/components/sections/Countdown.astro +57 -57
- package/templates/default/src/components/sections/Faq.astro +44 -44
- package/templates/default/src/components/sections/FeaturedProduct.astro +71 -71
- package/templates/default/src/components/sections/Hero.astro +99 -99
- package/templates/default/src/components/sections/ImageBanner.astro +46 -46
- package/templates/default/src/components/sections/ProductGrid.astro +47 -47
- package/templates/default/src/components/sections/RichText.astro +35 -35
- package/templates/default/src/components/sections/Steps.astro +46 -46
- package/templates/default/src/components/sections/Testimonials.astro +57 -57
- package/templates/default/src/components/shell/Footer.astro +80 -80
- package/templates/default/src/components/shell/Header.astro +89 -89
- package/templates/default/src/components/shell/LanguageMenu.astro +33 -33
- package/templates/default/src/components/shell/MobileMenu.astro +65 -65
- package/templates/default/src/components/shell/SearchDialog.astro +19 -19
- package/templates/default/src/components/shell/TopBar.astro +54 -54
- package/templates/default/src/components/shell/WhatsAppWidget.astro +111 -111
- package/templates/default/src/components/store/ContactMain.astro +79 -79
- package/templates/default/src/components/store/SearchMain.astro +56 -56
- package/templates/default/src/components/store/TrackOrderMain.astro +161 -161
- package/templates/default/src/components/surface/Area.astro +20 -20
- package/templates/default/src/components/surface/PreviewBridge.astro +24 -24
- package/templates/default/src/components/surface/Sections.astro +35 -35
- package/templates/default/src/components/ui/Breadcrumbs.astro +36 -36
- package/templates/default/src/components/ui/Button.astro +45 -45
- package/templates/default/src/components/ui/EditorPlaceholder.astro +24 -24
- package/templates/default/src/components/ui/Icon.astro +93 -93
- package/templates/default/src/components/ui/Logo.astro +36 -36
- package/templates/default/src/components/ui/Photo.astro +46 -46
- package/templates/default/src/components/ui/Price.astro +24 -24
- package/templates/default/src/components/ui/ProductCard.astro +41 -41
- package/templates/default/src/components/ui/Rating.astro +22 -22
- package/templates/default/src/components/ui/Section.astro +34 -34
- package/templates/default/src/components/ui/SectionHeading.astro +19 -19
- package/templates/default/src/env.d.ts +23 -23
- package/templates/default/src/layouts/StoreLayout.astro +145 -145
- package/templates/default/src/lib/browser-copy.ts +37 -37
- package/templates/default/src/lib/context.ts +89 -89
- package/templates/default/src/lib/coupon-notice.ts +47 -47
- package/templates/default/src/lib/i18n.ts +32 -32
- package/templates/default/src/lib/images.ts +38 -38
- package/templates/default/src/lib/listing-query.ts +41 -41
- package/templates/default/src/lib/money.ts +16 -16
- package/templates/default/src/lib/motion.ts +16 -16
- package/templates/default/src/lib/nav.ts +26 -26
- package/templates/default/src/lib/offer-tiles.ts +105 -105
- package/templates/default/src/lib/order-outcome.ts +66 -66
- package/templates/default/src/lib/otp-message.ts +21 -21
- package/templates/default/src/lib/products.ts +38 -38
- package/templates/default/src/lib/review-refusals.ts +31 -31
- package/templates/default/src/lib/store.ts +31 -31
- package/templates/default/src/lib/whatsapp.ts +29 -29
- package/templates/default/src/middleware.ts +23 -23
- package/templates/default/src/pages/404.astro +22 -22
- package/templates/default/src/pages/{wocart-preview.astro → abcart-preview.astro} +43 -43
- package/templates/default/src/pages/{wocart-revalidate.ts → abcart-revalidate.ts} +10 -10
- package/templates/default/src/pages/{wocart-styles.css.ts → abcart-styles.css.ts} +5 -5
- package/templates/default/src/pages/{wocart-theme.json.ts → abcart-theme.json.ts} +5 -5
- package/templates/default/src/pages/api/abandoned/convert.ts +4 -4
- package/templates/default/src/pages/api/abandoned/upsert.ts +4 -4
- package/templates/default/src/pages/api/cart/validate.ts +4 -4
- package/templates/default/src/pages/api/communes/[wilayaId].ts +4 -4
- package/templates/default/src/pages/api/otp/send.ts +4 -4
- package/templates/default/src/pages/api/otp/verify.ts +4 -4
- package/templates/default/src/pages/api/reviews/[productId].ts +3 -3
- package/templates/default/src/pages/api/reviews/eligibility.ts +3 -3
- package/templates/default/src/pages/api/reviews/submit.ts +3 -3
- package/templates/default/src/pages/api/reviews/upload.ts +3 -3
- package/templates/default/src/pages/category/[slug].astro +20 -20
- package/templates/default/src/pages/checkout.astro +25 -25
- package/templates/default/src/pages/collections/[handle].astro +20 -20
- package/templates/default/src/pages/contact.astro +17 -17
- package/templates/default/src/pages/index.astro +9 -9
- package/templates/default/src/pages/lp/[slug].astro +47 -47
- package/templates/default/src/pages/pages/[slug].astro +16 -16
- package/templates/default/src/pages/products/[handle].astro +37 -37
- package/templates/default/src/pages/products/index.astro +15 -15
- package/templates/default/src/pages/robots.txt.ts +9 -9
- package/templates/default/src/pages/search.astro +19 -19
- package/templates/default/src/pages/sitemap.xml.ts +12 -12
- package/templates/default/src/pages/thank-you.astro +33 -33
- package/templates/default/src/pages/track-order.astro +17 -17
- package/templates/default/src/scripts/cart.ts +371 -371
- package/templates/default/src/scripts/checkout/coupon.ts +96 -96
- package/templates/default/src/scripts/checkout/delivery.ts +86 -86
- package/templates/default/src/scripts/checkout/form.ts +54 -54
- package/templates/default/src/scripts/checkout/otp.ts +106 -106
- package/templates/default/src/scripts/checkout/picker.ts +169 -169
- package/templates/default/src/scripts/checkout/quote.ts +169 -169
- package/templates/default/src/scripts/checkout/submit.ts +113 -113
- package/templates/default/src/scripts/checkout/tracking.ts +74 -74
- package/templates/default/src/scripts/countdown.ts +29 -29
- package/templates/default/src/scripts/events.ts +4 -4
- package/templates/default/src/scripts/hero.ts +49 -49
- package/templates/default/src/scripts/listing.ts +13 -13
- package/templates/default/src/scripts/order-form.ts +100 -100
- package/templates/default/src/scripts/product.ts +306 -306
- package/templates/default/src/scripts/public-config.ts +79 -79
- package/templates/default/src/scripts/reviews.ts +358 -358
- package/templates/default/src/scripts/site.ts +131 -131
- package/templates/default/src/scripts/thank-you.ts +11 -11
- package/templates/default/src/scripts/voice-note.ts +94 -94
- package/templates/default/src/styles/base.css +1030 -1030
- package/templates/default/src/styles/checkout.css +1111 -1111
- package/templates/default/src/styles/global.css +12 -12
- package/templates/default/src/styles/product.css +871 -871
- package/templates/default/src/styles/reviews.css +533 -533
- package/templates/default/src/styles/sections.css +931 -931
- package/templates/default/src/styles/shell.css +970 -970
- package/templates/default/src/styles/tokens.css +583 -583
- package/templates/default/src/theme/api-routes.ts +10 -10
- package/templates/default/src/theme/content/catalog.ts +117 -117
- package/templates/default/src/theme/content/checkout.ts +168 -168
- package/templates/default/src/theme/content/editor.ts +21 -21
- package/templates/default/src/theme/content/index.ts +45 -45
- package/templates/default/src/theme/content/reviews.ts +76 -76
- package/templates/default/src/theme/content/shell.ts +59 -59
- package/templates/default/src/theme/content/types.ts +12 -12
- package/templates/default/src/theme/documents/catalog.json +11 -11
- package/templates/default/src/theme/documents/category.json +11 -11
- package/templates/default/src/theme/documents/checkout.json +11 -11
- package/templates/default/src/theme/documents/collection.json +11 -11
- package/templates/default/src/theme/documents/contact.json +11 -11
- package/templates/default/src/theme/documents/footer.area.json +11 -11
- package/templates/default/src/theme/documents/header.area.json +16 -16
- package/templates/default/src/theme/documents/home.json +313 -313
- package/templates/default/src/theme/documents/landing.json +8 -8
- package/templates/default/src/theme/documents/page.json +11 -11
- package/templates/default/src/theme/documents/product.json +125 -125
- package/templates/default/src/theme/documents/search.json +11 -11
- package/templates/default/src/theme/documents/thank-you.json +11 -11
- package/templates/default/src/theme/documents/track-order.json +11 -11
- package/templates/default/src/theme/fields.ts +61 -61
- package/templates/default/src/theme/key.ts +11 -11
- package/templates/default/src/theme/labels.ts +231 -231
- package/templates/default/src/theme/locales.ts +11 -11
- package/templates/default/src/theme/palette.ts +14 -14
- package/templates/default/src/theme/sections/collection-cards.ts +65 -65
- package/templates/default/src/theme/sections/faq.ts +74 -74
- package/templates/default/src/theme/sections/featured-product.ts +42 -42
- package/templates/default/src/theme/sections/hero.ts +47 -47
- package/templates/default/src/theme/sections/image-banner.ts +25 -25
- package/templates/default/src/theme/sections/index.ts +40 -40
- package/templates/default/src/theme/sections/landing.ts +150 -150
- package/templates/default/src/theme/sections/listing.ts +84 -84
- package/templates/default/src/theme/sections/product-grid.ts +42 -42
- package/templates/default/src/theme/sections/product.ts +297 -297
- package/templates/default/src/theme/sections/rich-text.ts +39 -39
- package/templates/default/src/theme/sections/shared.ts +54 -54
- package/templates/default/src/theme/sections/shell.ts +85 -85
- package/templates/default/src/theme/sections/store-pages.ts +101 -101
- package/templates/default/src/theme/sections/testimonials.ts +61 -61
- package/templates/default/src/theme/sections/thank-you.ts +35 -35
- package/templates/default/src/theme/settings.ts +124 -124
- package/templates/default/src/theme/theme.ts +65 -65
- package/templates/default/tests/fixtures/canvas-tote.json +62 -62
- package/templates/default/tests/fixtures/linen-shirt.json +128 -128
- package/templates/default/tests/unit/checkout.test.ts +241 -241
- package/templates/default/tests/unit/contract.test.ts +170 -169
- package/templates/default/tests/unit/contrast.test.ts +68 -68
- package/templates/default/tests/unit/copy.test.ts +101 -101
- package/templates/default/tests/unit/design-values.test.ts +95 -95
- package/templates/default/tests/unit/editability.test.ts +180 -180
- package/templates/default/tests/unit/fixtures.ts +91 -91
- package/templates/default/tests/unit/footer.test.ts +54 -54
- package/templates/default/tests/unit/guards.test.ts +340 -340
- package/templates/default/tests/unit/images.test.ts +26 -26
- package/templates/default/tests/unit/landing.test.ts +151 -151
- package/templates/default/tests/unit/languages.test.ts +42 -42
- package/templates/default/tests/unit/middleware.test.ts +53 -53
- package/templates/default/tests/unit/offer-tiles.test.ts +75 -75
- package/templates/default/tests/unit/render.ts +38 -38
- package/templates/default/tests/unit/reviews.test.ts +25 -25
- package/templates/default/tests/unit/rules.test.ts +59 -59
- package/templates/default/tests/unit/source.ts +75 -75
- package/templates/default/tests/unit/store-pages.test.ts +147 -147
- package/templates/default/tests/unit/studio.test.ts +202 -202
- package/templates/default/tests/unit/testimonials.test.ts +52 -52
- package/templates/default/tests/unit/thank-you.test.ts +52 -52
- package/templates/default/tests/unit/tracking.test.ts +29 -29
- package/templates/default/tests/unit/voice-note.test.ts +42 -42
- package/templates/default/tsconfig.json +13 -13
- package/templates/default/vitest.config.ts +15 -15
- package/templates/default/wrangler.jsonc +16 -16
|
@@ -1,168 +1,168 @@
|
|
|
1
|
-
/** The words of buying: the basket, coupons, the order form, the thank-you page and order tracking. */
|
|
2
|
-
import type { Messages, Plurals } from "./types";
|
|
3
|
-
|
|
4
|
-
export const messages = {
|
|
5
|
-
"cart.title": { ar: "سلتك", fr: "Votre panier", en: "Your cart" },
|
|
6
|
-
"cart.empty": { ar: "سلتك فارغة", fr: "Votre panier est vide", en: "Your cart is empty" },
|
|
7
|
-
"cart.emptyHint": { ar: "لم تضف أي منتج بعد. تصفّح المنتجات واختر ما يعجبك.", fr: "Vous n'avez encore rien ajouté. Parcourez les produits et choisissez ce qui vous plaît.", en: "You have not added anything yet. Browse the products and pick what you like." },
|
|
8
|
-
"cart.subtotal": { ar: "المجموع الفرعي", fr: "Sous-total", en: "Subtotal" },
|
|
9
|
-
"cart.delivery": { ar: "التوصيل", fr: "Livraison", en: "Delivery" },
|
|
10
|
-
"cart.deliveryAtCheckout": { ar: "يُحسب حسب الولاية", fr: "Selon la wilaya", en: "Depends on the wilaya" },
|
|
11
|
-
"cart.total": { ar: "المجموع", fr: "Total", en: "Total" },
|
|
12
|
-
"cart.checkout": { ar: "إتمام الطلب", fr: "Passer la commande", en: "Checkout" },
|
|
13
|
-
"cart.remove": { ar: "حذف", fr: "Supprimer", en: "Remove" },
|
|
14
|
-
"cart.quantity": { ar: "الكمية", fr: "Quantité", en: "Quantity" },
|
|
15
|
-
"cart.decrease": { ar: "إنقاص الكمية", fr: "Diminuer la quantité", en: "Decrease quantity" },
|
|
16
|
-
"cart.increase": { ar: "زيادة الكمية", fr: "Augmenter la quantité", en: "Increase quantity" },
|
|
17
|
-
"cart.viewCart": { ar: "عرض السلة", fr: "Voir le panier", en: "View cart" },
|
|
18
|
-
"cart.freeProgress": { ar: "أضف {amount} للحصول على توصيل مجاني", fr: "Plus que {amount} pour la livraison offerte", en: "Add {amount} more for free delivery" },
|
|
19
|
-
"cart.freeQualified": { ar: "التوصيل مجاني لطلبك!", fr: "Livraison offerte !", en: "Free delivery unlocked!" },
|
|
20
|
-
"cart.gift": { ar: "هدية مجانية", fr: "Cadeau offert", en: "Free gift" },
|
|
21
|
-
"cart.full": { ar: "سلتك ممتلئة: أتمّ طلبك أو احذف منتجًا لإضافة آخر", fr: "Votre panier est plein : passez commande ou retirez un article pour en ajouter un autre", en: "Your cart is full: check out or remove an item to add another" },
|
|
22
|
-
"cart.validateFailed": { ar: "تعذّر تحديث الأسعار الآن، ستُراجع عند تأكيد الطلب.", fr: "Impossible d'actualiser les prix ; ils seront vérifiés à la commande.", en: "Couldn't refresh prices now; they'll be checked when you order." },
|
|
23
|
-
"cart.blockedMissing": { ar: "هذا المنتج لم يعد متوفرًا", fr: "Ce produit n'est plus disponible", en: "This product is no longer available" },
|
|
24
|
-
"cart.blockedOut": { ar: "نفدت الكمية", fr: "Rupture de stock", en: "Out of stock" },
|
|
25
|
-
"cart.blockedUnlisted": { ar: "غير معروض للبيع", fr: "Non disponible à la vente", en: "Not available for sale" },
|
|
26
|
-
"cart.trust": { ar: "الدفع عند الاستلام", fr: "Paiement à la livraison", en: "Cash on delivery" },
|
|
27
|
-
"cart.added": { ar: "أُضيف «{product}» إلى سلتك", fr: "« {product} » a été ajouté au panier", en: "“{product}” was added to your cart" },
|
|
28
|
-
"cart.couponApply": { ar: "تطبيق", fr: "Appliquer", en: "Apply" },
|
|
29
|
-
"track.title": { ar: "تتبّع طلبك", fr: "Suivre ma commande", en: "Track your order" },
|
|
30
|
-
"track.subtitle": { ar: "أدخل رقم الطلب ورقم الهاتف الذي طلبت به.", fr: "Saisissez le numéro de commande et le téléphone utilisé pour commander.", en: "Enter your order number and the phone you ordered with." },
|
|
31
|
-
"track.number": { ar: "رقم الطلب", fr: "Numéro de commande", en: "Order number" },
|
|
32
|
-
"track.numberHint": { ar: "تجده في صفحة تأكيد الطلب، مثل {example}.", fr: "Il figure sur la page de confirmation, par exemple {example}.", en: "It's on your confirmation page, like {example}." },
|
|
33
|
-
"track.phone": { ar: "رقم الهاتف", fr: "Téléphone", en: "Phone number" },
|
|
34
|
-
"track.submit": { ar: "ابحث عن طلبي", fr: "Trouver ma commande", en: "Find my order" },
|
|
35
|
-
"track.missing": { ar: "أدخل رقم الطلب ورقم الهاتف.", fr: "Saisissez le numéro de commande et le téléphone.", en: "Enter the order number and the phone." },
|
|
36
|
-
"track.invalidNumber": { ar: "هذا ليس رقم طلب. يبدو رقم الطلب هكذا: {example}.", fr: "Ce n'est pas un numéro de commande. Il ressemble à {example}.", en: "That isn't an order number. It looks like {example}." },
|
|
37
|
-
"track.invalidPhone": { ar: "تحقّق من رقم الهاتف.", fr: "Vérifiez le numéro de téléphone.", en: "Check the phone number." },
|
|
38
|
-
"track.notFound": { ar: "لم نجد طلبًا بهذا الرقم وهذا الهاتف. تحقّق منهما وأعد المحاولة.", fr: "Aucune commande ne correspond à ce numéro et à ce téléphone. Vérifiez-les et réessayez.", en: "We couldn't find an order with this number and phone. Check both and try again." },
|
|
39
|
-
"track.rateLimitedLater": { ar: "محاولات كثيرة. أعد المحاولة بعد قليل.", fr: "Trop d'essais. Réessayez dans un moment.", en: "Too many tries. Try again in a moment." },
|
|
40
|
-
"track.failed": { ar: "تعذّر البحث عن طلبك الآن. أعد المحاولة بعد لحظات.", fr: "Impossible de retrouver votre commande pour l'instant. Réessayez dans un instant.", en: "We couldn't look up your order right now. Try again in a moment." },
|
|
41
|
-
"track.placedOn": { ar: "طُلب في {date}", fr: "Passée le {date}", en: "Placed on {date}" },
|
|
42
|
-
"track.progress": { ar: "مراحل الطلب", fr: "Étapes de la commande", en: "Order progress" },
|
|
43
|
-
"track.delivery": { ar: "التوصيل", fr: "Livraison", en: "Delivery" },
|
|
44
|
-
"track.delivery.home": { ar: "إلى المنزل", fr: "À domicile", en: "To your door" },
|
|
45
|
-
"track.delivery.stopDesk": { ar: "في مكتب شركة التوصيل", fr: "Au bureau du transporteur", en: "At the carrier's office" },
|
|
46
|
-
"track.items": { ar: "طلبك", fr: "Votre commande", en: "Your order" },
|
|
47
|
-
"track.total": { ar: "تدفع عند الاستلام", fr: "À payer à la livraison", en: "To pay on delivery" },
|
|
48
|
-
"track.tracking": { ar: "رقم التتبّع", fr: "Numéro de suivi", en: "Tracking number" },
|
|
49
|
-
"track.contact": { ar: "سؤال عن طلبك؟ راسلنا", fr: "Une question ? Écrivez-nous", en: "A question? Message us" },
|
|
50
|
-
"track.another": { ar: "تتبّع طلبًا آخر", fr: "Suivre une autre commande", en: "Track another order" },
|
|
51
|
-
"track.stage.placed": { ar: "تم استلام الطلب", fr: "Commande reçue", en: "Order received" },
|
|
52
|
-
"track.stage.placed.hint": { ar: "استلمنا طلبك، والخطوة التالية تأكيده من المتجر.", fr: "Nous avons reçu votre commande. La boutique doit maintenant la confirmer.", en: "We've received your order. Next, the store confirms it." },
|
|
53
|
-
"track.stage.confirmed": { ar: "تم التأكيد", fr: "Confirmée", en: "Confirmed" },
|
|
54
|
-
"track.stage.confirmed.hint": { ar: "طلبك مؤكَّد وسيُجهَّز قريبًا.", fr: "Votre commande est confirmée et sera bientôt préparée.", en: "Your order is confirmed and will be prepared soon." },
|
|
55
|
-
"track.stage.preparing": { ar: "قيد التجهيز", fr: "En préparation", en: "Being prepared" },
|
|
56
|
-
"track.stage.preparing.hint": { ar: "المتجر يجهّز طردك.", fr: "La boutique prépare votre colis.", en: "The store is preparing your parcel." },
|
|
57
|
-
"track.stage.shipped": { ar: "تم الشحن", fr: "Expédiée", en: "Shipped" },
|
|
58
|
-
"track.stage.shipped.hint": { ar: "طردك عند شركة التوصيل.", fr: "Votre colis est chez le transporteur.", en: "Your parcel is with the carrier." },
|
|
59
|
-
"track.stage.outForDelivery": { ar: "في الطريق إليك", fr: "En cours de livraison", en: "Out for delivery" },
|
|
60
|
-
"track.stage.outForDelivery.hint": { ar: "المندوب في الطريق. أبقِ هاتفك قريبًا وجهّز المبلغ.", fr: "Le livreur est en route. Gardez votre téléphone à portée de main et préparez le montant.", en: "The driver is on the way. Keep your phone close and the amount ready." },
|
|
61
|
-
"track.stage.delivered": { ar: "تم التسليم", fr: "Livrée", en: "Delivered" },
|
|
62
|
-
"track.stage.delivered.hint": { ar: "وصلك طلبك. شكرًا لك!", fr: "Votre commande a été livrée. Merci !", en: "Your order was delivered. Thank you!" },
|
|
63
|
-
"track.stage.returned": { ar: "مُرتجَع", fr: "Retournée", en: "Returned" },
|
|
64
|
-
"track.stage.returned.hint": { ar: "لم يُستلم الطرد وهو في طريق العودة إلى المتجر. راسلنا لإعادة توصيله.", fr: "Le colis n'a pas été reçu et retourne à la boutique. Écrivez-nous pour le faire livrer à nouveau.", en: "The parcel wasn't received and is going back to the store. Message us to have it delivered again." },
|
|
65
|
-
"track.stage.cancelled": { ar: "ملغى", fr: "Annulée", en: "Cancelled" },
|
|
66
|
-
"track.stage.cancelled.hint": { ar: "أُلغي هذا الطلب. راسلنا إن كان ذلك خطأ.", fr: "Cette commande a été annulée. Écrivez-nous s'il s'agit d'une erreur.", en: "This order was cancelled. Message us if this is a mistake." },
|
|
67
|
-
"track.stage.other": { ar: "قيد المعالجة", fr: "En cours", en: "In progress" },
|
|
68
|
-
"track.stage.other.hint": { ar: "طلبك قيد المعالجة.", fr: "Votre commande est en cours de traitement.", en: "Your order is being processed." },
|
|
69
|
-
"checkout.title": { ar: "إتمام الطلب", fr: "Finaliser la commande", en: "Checkout" },
|
|
70
|
-
"checkout.payment": { ar: "الدفع عند الاستلام", fr: "Paiement à la livraison", en: "Cash on delivery" },
|
|
71
|
-
"checkout.name": { ar: "الاسم الكامل", fr: "Nom complet", en: "Full name" },
|
|
72
|
-
"checkout.phone": { ar: "رقم الهاتف", fr: "Téléphone", en: "Phone number" },
|
|
73
|
-
"checkout.email": { ar: "البريد الإلكتروني", fr: "E-mail", en: "Email" },
|
|
74
|
-
"checkout.wilaya": { ar: "الولاية", fr: "Wilaya", en: "Wilaya" },
|
|
75
|
-
"checkout.commune": { ar: "البلدية", fr: "Commune", en: "Commune" },
|
|
76
|
-
"checkout.address": { ar: "العنوان", fr: "Adresse", en: "Address" },
|
|
77
|
-
"checkout.notes": { ar: "ملاحظات", fr: "Notes", en: "Notes" },
|
|
78
|
-
"checkout.deliveryHome": { ar: "توصيل إلى المنزل", fr: "Livraison à domicile", en: "Home delivery" },
|
|
79
|
-
"checkout.deliveryDesk": { ar: "الاستلام من المكتب", fr: "Retrait au bureau", en: "Pick up at the desk" },
|
|
80
|
-
"checkout.deliveryLabel": { ar: "طريقة التوصيل", fr: "Mode de livraison", en: "Delivery method" },
|
|
81
|
-
"checkout.codNotice": { ar: "لا تدفع الآن. تدفع نقدًا عند استلام طلبك.", fr: "Rien à payer maintenant : vous payez à la réception.", en: "Nothing to pay now: you pay when it arrives." },
|
|
82
|
-
"checkout.place": { ar: "تأكيد الطلب", fr: "Confirmer la commande", en: "Confirm my order" },
|
|
83
|
-
"checkout.placing": { ar: "جارٍ إرسال الطلب…", fr: "Envoi de la commande…", en: "Placing your order…" },
|
|
84
|
-
"checkout.required": { ar: "هذه المعلومة مطلوبة", fr: "Ce champ est requis", en: "This field is required" },
|
|
85
|
-
"checkout.invalidField": { ar: "تحقّق من هذه المعلومة.", fr: "Vérifiez cette information.", en: "Please check this field." },
|
|
86
|
-
"checkout.invalidPhone": { ar: "أدخل رقم هاتف جزائري صحيح (مثال: 0555123456).", fr: "Saisissez un numéro algérien valide (ex. 0555123456).", en: "Enter a valid Algerian mobile number (e.g. 0555123456)." },
|
|
87
|
-
"checkout.invalidEmail": { ar: "أدخل بريدًا إلكترونيًا صحيحًا.", fr: "Saisissez un e-mail valide.", en: "Enter a valid email." },
|
|
88
|
-
"checkout.loadingFee": { ar: "جارٍ حساب التوصيل…", fr: "Calcul de la livraison…", en: "Calculating delivery…" },
|
|
89
|
-
"checkout.fee": { ar: "التوصيل", fr: "Livraison", en: "Delivery" },
|
|
90
|
-
"checkout.free": { ar: "مجاني", fr: "Offerte", en: "Free" },
|
|
91
|
-
"checkout.gift": { ar: "هدية مجانية", fr: "Cadeau offert", en: "Free gift" },
|
|
92
|
-
"checkout.discount": { ar: "الخصم", fr: "Remise", en: "Discount" },
|
|
93
|
-
"checkout.editCart": { ar: "تعديل السلة", fr: "Modifier le panier", en: "Edit cart" },
|
|
94
|
-
"checkout.otpTitle": { ar: "تأكيد رقم هاتفك", fr: "Vérifiez votre numéro", en: "Verify your number" },
|
|
95
|
-
"checkout.otpHint": { ar: "أرسلنا لك رمزًا عبر واتساب، أدخله هنا.", fr: "Nous vous avons envoyé un code sur WhatsApp.", en: "We sent you a code on WhatsApp — enter it here." },
|
|
96
|
-
"checkout.otpResend": { ar: "إعادة الإرسال", fr: "Renvoyer", en: "Resend" },
|
|
97
|
-
"checkout.otpCode": { ar: "رمز التحقق", fr: "Code de vérification", en: "Verification code" },
|
|
98
|
-
"checkout.otpChangePhone": { ar: "تغيير الرقم", fr: "Changer de numéro", en: "Change number" },
|
|
99
|
-
"checkout.otpVerified": { ar: "تم تأكيد رقمك", fr: "Numéro vérifié", en: "Number verified" },
|
|
100
|
-
"checkout.otpUnavailable": { ar: "التحقق عبر واتساب غير متاح الآن؛ يمكنك تأكيد الطلب بدونه.", fr: "La vérification WhatsApp est indisponible ; vous pouvez commander sans elle.", en: "WhatsApp verification is unavailable; you can still place your order." },
|
|
101
|
-
"checkout.otpError": { ar: "الرمز غير صحيح أو انتهت صلاحيته.", fr: "Code incorrect ou expiré.", en: "That code is wrong or expired." },
|
|
102
|
-
"checkout.otpExpired": { ar: "انتهت صلاحية الرمز، اطلب رمزًا جديدًا.", fr: "Ce code a expiré, demandez-en un nouveau.", en: "This code expired — request a new one." },
|
|
103
|
-
"checkout.couponToggle": { ar: "عندك كود تخفيض؟", fr: "Vous avez un code promo ?", en: "Have a discount code?" },
|
|
104
|
-
"checkout.couponPlaceholder": { ar: "كود التخفيض", fr: "Code promo", en: "Discount code" },
|
|
105
|
-
"checkout.assureNoPrepay": { ar: "لا دفع مسبق", fr: "Aucun paiement d'avance", en: "No prepayment" },
|
|
106
|
-
"checkout.assureFee": { ar: "سعر التوصيل يظهر قبل التأكيد", fr: "Frais de livraison affichés avant de confirmer", en: "Delivery fee shown before you confirm" },
|
|
107
|
-
"checkout.assureTrack": { ar: "تتبّع طلبك برقمه", fr: "Suivez votre commande avec son numéro", en: "Track your order with its number" },
|
|
108
|
-
"checkout.unavailable": { ar: "التوصيل غير متاح إلى هذه الوجهة.", fr: "La livraison n'est pas disponible pour cette destination.", en: "Delivery isn't available to this destination." },
|
|
109
|
-
"checkout.errorBody": { ar: "راجع معلوماتك وأعد المحاولة. لم يُخصم منك أي مبلغ.", fr: "Vérifiez vos informations et réessayez. Rien n'a été débité.", en: "Check your details and try again. Nothing was charged." },
|
|
110
|
-
"checkout.outOfStock": { ar: "هذا المنتج غير متوفر بالكمية المطلوبة. قلّل الكمية أو اختر خيارًا آخر.", fr: "Ce produit n'est pas disponible dans la quantité demandée. Réduisez la quantité ou choisissez une autre option.", en: "This product isn't available in the quantity you asked for. Lower the quantity or pick another option." },
|
|
111
|
-
"checkout.outOfStockNamed": { ar: "«{product}» غير متوفر بالكمية المطلوبة. قلّل الكمية أو اختر خيارًا آخر.", fr: "« {product} » n'est pas disponible dans la quantité demandée. Réduisez la quantité ou choisissez une autre option.", en: "“{product}” isn't available in the quantity you asked for. Lower the quantity or pick another option." },
|
|
112
|
-
"checkout.productUnavailable": { ar: "هذا المنتج لم يعد متاحًا للطلب.", fr: "Ce produit n'est plus disponible à la commande.", en: "This product can no longer be ordered." },
|
|
113
|
-
"checkout.productUnavailableNamed": { ar: "«{product}» لم يعد متاحًا للطلب.", fr: "« {product} » n'est plus disponible à la commande.", en: "“{product}” can no longer be ordered." },
|
|
114
|
-
"checkout.botCheckFailed": { ar: "لم يكتمل التحقق الأمني. انتظر لحظة ثم أكّد الطلب من جديد.", fr: "La vérification de sécurité n'a pas abouti. Patientez un instant, puis confirmez à nouveau.", en: "The security check didn't finish. Wait a moment, then confirm again." },
|
|
115
|
-
"checkout.phoneNotVerified": { ar: "تعذّر تأكيد رقم هاتفك. أكّده من جديد لإتمام الطلب.", fr: "Votre numéro n'a pas pu être vérifié. Vérifiez-le à nouveau pour commander.", en: "We couldn't verify your number. Verify it again to place your order." },
|
|
116
|
-
"checkout.fixFields": { ar: "صحّح المعلومات المشار إليها ثم أكّد الطلب.", fr: "Corrigez les informations signalées, puis confirmez.", en: "Correct the highlighted details, then confirm." },
|
|
117
|
-
"checkout.failed": { ar: "تعذّر إرسال طلبك. أعد المحاولة بعد لحظة.", fr: "Votre commande n'a pas pu être envoyée. Réessayez dans un instant.", en: "Your order couldn't be sent. Try again in a moment." },
|
|
118
|
-
"checkout.failedReference": { ar: "تعذّر إرسال طلبك. أعد المحاولة بعد لحظة. المرجع: {reference}", fr: "Votre commande n'a pas pu être envoyée. Réessayez dans un instant. Référence : {reference}", en: "Your order couldn't be sent. Try again in a moment. Reference: {reference}" },
|
|
119
|
-
"checkout.orderNumberNote": { ar: "بعد التأكيد يظهر لك رقم طلبك، فاحتفظ به لتتبّعه.", fr: "Après confirmation, vous recevez un numéro de commande : gardez-le pour la suivre.", en: "Once you confirm, you get an order number: keep it to track your order." },
|
|
120
|
-
"checkout.namePlaceholder": { ar: "الاسم الكامل *", fr: "Nom complet *", en: "Full name *" },
|
|
121
|
-
"checkout.phonePlaceholder": { ar: "رقم الهاتف *", fr: "Téléphone *", en: "Phone number *" },
|
|
122
|
-
"checkout.wilayaPlaceholder": { ar: "الولاية *", fr: "Wilaya *", en: "Wilaya *" },
|
|
123
|
-
"checkout.communePlaceholder": { ar: "البلدية *", fr: "Commune *", en: "Commune *" },
|
|
124
|
-
"checkout.addressPlaceholder": { ar: "العنوان (الحي، الشارع…)", fr: "Adresse (quartier, rue…)", en: "Address (area, street…)" },
|
|
125
|
-
"checkout.notesPlaceholder": { ar: "ملاحظة على الطلب (اختياري)", fr: "Note pour la commande (facultatif)", en: "Order note (optional)" },
|
|
126
|
-
"coupon.applied": { ar: "تم تطبيق الكود: −{amount}", fr: "Code appliqué : −{amount}", en: "Code applied: −{amount}" },
|
|
127
|
-
"coupon.appliedFreeShipping": { ar: "تم تطبيق الكود: التوصيل مجاني", fr: "Code appliqué : livraison offerte", en: "Code applied: free delivery" },
|
|
128
|
-
"coupon.notFound": { ar: "هذا الكود غير موجود.", fr: "Ce code n'existe pas.", en: "This code doesn't exist." },
|
|
129
|
-
"coupon.notStarted": { ar: "هذا الكود لم يبدأ بعد.", fr: "Ce code n'est pas encore actif.", en: "This code isn't active yet." },
|
|
130
|
-
"coupon.expired": { ar: "انتهت صلاحية هذا الكود.", fr: "Ce code a expiré.", en: "This code has expired." },
|
|
131
|
-
"coupon.usedUp": { ar: "نفدت استعمالات هذا الكود.", fr: "Ce code a atteint sa limite.", en: "This code has been used up." },
|
|
132
|
-
"coupon.identifyFirst": { ar: "أدخل رقم هاتفك أولًا لنتحقق من الكود.", fr: "Saisissez d'abord votre téléphone pour vérifier ce code.", en: "Enter your phone first so we can check this code." },
|
|
133
|
-
"coupon.notEligible": { ar: "هذا الكود غير مخصص لهذا الرقم.", fr: "Ce code n'est pas valable pour ce numéro.", en: "This code isn't valid for this number." },
|
|
134
|
-
"coupon.alreadyUsed": { ar: "سبق أن استعملت هذا الكود.", fr: "Vous avez déjà utilisé ce code.", en: "You've already used this code." },
|
|
135
|
-
"coupon.noEligibleProducts": { ar: "هذا الكود لا يشمل منتجات طلبك.", fr: "Ce code ne s'applique pas à ces produits.", en: "This code doesn't cover these products." },
|
|
136
|
-
"coupon.offerApplied": { ar: "طلبك يستفيد من عرض، فلا يُجمع معه الكود.", fr: "Une offre s'applique déjà ; le code ne se cumule pas.", en: "An offer already applies; the code can't be combined." },
|
|
137
|
-
"coupon.belowSubtotal": { ar: "أضف {amount} لاستعمال هذا الكود.", fr: "Ajoutez {amount} pour utiliser ce code.", en: "Add {amount} more to use this code." },
|
|
138
|
-
"coupon.belowQuantity": { ar: "أضف قطعًا أخرى لاستعمال هذا الكود.", fr: "Ajoutez d'autres articles pour utiliser ce code.", en: "Add more items to use this code." },
|
|
139
|
-
"coupon.deliveryAlreadyFree": { ar: "التوصيل مجاني لطلبك أصلًا.", fr: "La livraison est déjà offerte.", en: "Delivery is already free." },
|
|
140
|
-
"coupon.refused": { ar: "لا يمكن استعمال هذا الكود.", fr: "Ce code ne peut pas être utilisé.", en: "This code can't be used." },
|
|
141
|
-
"thankYou.title": { ar: "شكرًا لك!", fr: "Merci !", en: "Thank you!" },
|
|
142
|
-
"thankYou.subtitle": { ar: "وصلنا طلبك. احتفظ برقم الطلب لتتبّعه.", fr: "Nous avons bien reçu votre commande. Gardez son numéro pour la suivre.", en: "We received your order. Keep its number to track it." },
|
|
143
|
-
"thankYou.orderNumber": { ar: "رقم الطلب", fr: "Numéro de commande", en: "Order number" },
|
|
144
|
-
"thankYou.total": { ar: "تدفع عند الاستلام", fr: "À payer à la livraison", en: "To pay on delivery" },
|
|
145
|
-
"thankYou.payment": { ar: "طريقة الدفع", fr: "Paiement", en: "Payment" },
|
|
146
|
-
"thankYou.cod": { ar: "نقدًا عند الاستلام", fr: "En espèces à la livraison", en: "Cash on delivery" },
|
|
147
|
-
"thankYou.next": { ar: "ماذا بعد؟ يؤكد المتجر طلبك ثم يرسله، ويمكنك متابعة كل مرحلة في صفحة تتبّع الطلب.", fr: "Et ensuite ? La boutique confirme votre commande, puis l'expédie. Suivez chaque étape sur la page de suivi.", en: "What next? The store confirms your order, then ships it. Follow each step on the order tracking page." },
|
|
148
|
-
"thankYou.whatsapp": { ar: "راسلنا على واتساب", fr: "Nous écrire sur WhatsApp", en: "Message us on WhatsApp" },
|
|
149
|
-
"thankYou.continue": { ar: "متابعة التسوق", fr: "Continuer mes achats", en: "Continue shopping" },
|
|
150
|
-
} satisfies Messages;
|
|
151
|
-
|
|
152
|
-
export const plurals = {
|
|
153
|
-
"cart.count": {
|
|
154
|
-
ar: { zero: "لا قطع", one: "قطعة واحدة", two: "قطعتان", few: "{count} قطع", many: "{count} قطعة", other: "{count} قطعة" },
|
|
155
|
-
fr: { one: "{count} article", many: "{count} d'articles", other: "{count} articles" },
|
|
156
|
-
en: { one: "{count} item", other: "{count} items" },
|
|
157
|
-
},
|
|
158
|
-
"checkout.otpAttempts": {
|
|
159
|
-
ar: { zero: "رمز غير صحيح — لم تبقَ محاولات.", one: "رمز غير صحيح — بقيت محاولة واحدة.", two: "رمز غير صحيح — بقيت محاولتان.", few: "رمز غير صحيح — بقيت {count} محاولات.", many: "رمز غير صحيح — بقيت {count} محاولة.", other: "رمز غير صحيح — بقيت {count} محاولة." },
|
|
160
|
-
fr: { one: "Code incorrect — encore {count} essai.", many: "Code incorrect — encore {count} essais.", other: "Code incorrect — encore {count} essais." },
|
|
161
|
-
en: { one: "That code is wrong — 1 attempt left.", other: "That code is wrong — {count} attempts left." },
|
|
162
|
-
},
|
|
163
|
-
"track.rateLimited": {
|
|
164
|
-
ar: { zero: "محاولات كثيرة. أعد المحاولة بعد قليل.", one: "محاولات كثيرة. أعد المحاولة بعد دقيقة.", two: "محاولات كثيرة. أعد المحاولة بعد دقيقتين.", few: "محاولات كثيرة. أعد المحاولة بعد {count} دقائق.", many: "محاولات كثيرة. أعد المحاولة بعد {count} دقيقة.", other: "محاولات كثيرة. أعد المحاولة بعد {count} دقيقة." },
|
|
165
|
-
fr: { one: "Trop d'essais. Réessayez dans une minute.", many: "Trop d'essais. Réessayez dans {count} minutes.", other: "Trop d'essais. Réessayez dans {count} minutes." },
|
|
166
|
-
en: { one: "Too many tries. Try again in a minute.", other: "Too many tries. Try again in {count} minutes." },
|
|
167
|
-
},
|
|
168
|
-
} satisfies Plurals;
|
|
1
|
+
/** The words of buying: the basket, coupons, the order form, the thank-you page and order tracking. */
|
|
2
|
+
import type { Messages, Plurals } from "./types";
|
|
3
|
+
|
|
4
|
+
export const messages = {
|
|
5
|
+
"cart.title": { ar: "سلتك", fr: "Votre panier", en: "Your cart" },
|
|
6
|
+
"cart.empty": { ar: "سلتك فارغة", fr: "Votre panier est vide", en: "Your cart is empty" },
|
|
7
|
+
"cart.emptyHint": { ar: "لم تضف أي منتج بعد. تصفّح المنتجات واختر ما يعجبك.", fr: "Vous n'avez encore rien ajouté. Parcourez les produits et choisissez ce qui vous plaît.", en: "You have not added anything yet. Browse the products and pick what you like." },
|
|
8
|
+
"cart.subtotal": { ar: "المجموع الفرعي", fr: "Sous-total", en: "Subtotal" },
|
|
9
|
+
"cart.delivery": { ar: "التوصيل", fr: "Livraison", en: "Delivery" },
|
|
10
|
+
"cart.deliveryAtCheckout": { ar: "يُحسب حسب الولاية", fr: "Selon la wilaya", en: "Depends on the wilaya" },
|
|
11
|
+
"cart.total": { ar: "المجموع", fr: "Total", en: "Total" },
|
|
12
|
+
"cart.checkout": { ar: "إتمام الطلب", fr: "Passer la commande", en: "Checkout" },
|
|
13
|
+
"cart.remove": { ar: "حذف", fr: "Supprimer", en: "Remove" },
|
|
14
|
+
"cart.quantity": { ar: "الكمية", fr: "Quantité", en: "Quantity" },
|
|
15
|
+
"cart.decrease": { ar: "إنقاص الكمية", fr: "Diminuer la quantité", en: "Decrease quantity" },
|
|
16
|
+
"cart.increase": { ar: "زيادة الكمية", fr: "Augmenter la quantité", en: "Increase quantity" },
|
|
17
|
+
"cart.viewCart": { ar: "عرض السلة", fr: "Voir le panier", en: "View cart" },
|
|
18
|
+
"cart.freeProgress": { ar: "أضف {amount} للحصول على توصيل مجاني", fr: "Plus que {amount} pour la livraison offerte", en: "Add {amount} more for free delivery" },
|
|
19
|
+
"cart.freeQualified": { ar: "التوصيل مجاني لطلبك!", fr: "Livraison offerte !", en: "Free delivery unlocked!" },
|
|
20
|
+
"cart.gift": { ar: "هدية مجانية", fr: "Cadeau offert", en: "Free gift" },
|
|
21
|
+
"cart.full": { ar: "سلتك ممتلئة: أتمّ طلبك أو احذف منتجًا لإضافة آخر", fr: "Votre panier est plein : passez commande ou retirez un article pour en ajouter un autre", en: "Your cart is full: check out or remove an item to add another" },
|
|
22
|
+
"cart.validateFailed": { ar: "تعذّر تحديث الأسعار الآن، ستُراجع عند تأكيد الطلب.", fr: "Impossible d'actualiser les prix ; ils seront vérifiés à la commande.", en: "Couldn't refresh prices now; they'll be checked when you order." },
|
|
23
|
+
"cart.blockedMissing": { ar: "هذا المنتج لم يعد متوفرًا", fr: "Ce produit n'est plus disponible", en: "This product is no longer available" },
|
|
24
|
+
"cart.blockedOut": { ar: "نفدت الكمية", fr: "Rupture de stock", en: "Out of stock" },
|
|
25
|
+
"cart.blockedUnlisted": { ar: "غير معروض للبيع", fr: "Non disponible à la vente", en: "Not available for sale" },
|
|
26
|
+
"cart.trust": { ar: "الدفع عند الاستلام", fr: "Paiement à la livraison", en: "Cash on delivery" },
|
|
27
|
+
"cart.added": { ar: "أُضيف «{product}» إلى سلتك", fr: "« {product} » a été ajouté au panier", en: "“{product}” was added to your cart" },
|
|
28
|
+
"cart.couponApply": { ar: "تطبيق", fr: "Appliquer", en: "Apply" },
|
|
29
|
+
"track.title": { ar: "تتبّع طلبك", fr: "Suivre ma commande", en: "Track your order" },
|
|
30
|
+
"track.subtitle": { ar: "أدخل رقم الطلب ورقم الهاتف الذي طلبت به.", fr: "Saisissez le numéro de commande et le téléphone utilisé pour commander.", en: "Enter your order number and the phone you ordered with." },
|
|
31
|
+
"track.number": { ar: "رقم الطلب", fr: "Numéro de commande", en: "Order number" },
|
|
32
|
+
"track.numberHint": { ar: "تجده في صفحة تأكيد الطلب، مثل {example}.", fr: "Il figure sur la page de confirmation, par exemple {example}.", en: "It's on your confirmation page, like {example}." },
|
|
33
|
+
"track.phone": { ar: "رقم الهاتف", fr: "Téléphone", en: "Phone number" },
|
|
34
|
+
"track.submit": { ar: "ابحث عن طلبي", fr: "Trouver ma commande", en: "Find my order" },
|
|
35
|
+
"track.missing": { ar: "أدخل رقم الطلب ورقم الهاتف.", fr: "Saisissez le numéro de commande et le téléphone.", en: "Enter the order number and the phone." },
|
|
36
|
+
"track.invalidNumber": { ar: "هذا ليس رقم طلب. يبدو رقم الطلب هكذا: {example}.", fr: "Ce n'est pas un numéro de commande. Il ressemble à {example}.", en: "That isn't an order number. It looks like {example}." },
|
|
37
|
+
"track.invalidPhone": { ar: "تحقّق من رقم الهاتف.", fr: "Vérifiez le numéro de téléphone.", en: "Check the phone number." },
|
|
38
|
+
"track.notFound": { ar: "لم نجد طلبًا بهذا الرقم وهذا الهاتف. تحقّق منهما وأعد المحاولة.", fr: "Aucune commande ne correspond à ce numéro et à ce téléphone. Vérifiez-les et réessayez.", en: "We couldn't find an order with this number and phone. Check both and try again." },
|
|
39
|
+
"track.rateLimitedLater": { ar: "محاولات كثيرة. أعد المحاولة بعد قليل.", fr: "Trop d'essais. Réessayez dans un moment.", en: "Too many tries. Try again in a moment." },
|
|
40
|
+
"track.failed": { ar: "تعذّر البحث عن طلبك الآن. أعد المحاولة بعد لحظات.", fr: "Impossible de retrouver votre commande pour l'instant. Réessayez dans un instant.", en: "We couldn't look up your order right now. Try again in a moment." },
|
|
41
|
+
"track.placedOn": { ar: "طُلب في {date}", fr: "Passée le {date}", en: "Placed on {date}" },
|
|
42
|
+
"track.progress": { ar: "مراحل الطلب", fr: "Étapes de la commande", en: "Order progress" },
|
|
43
|
+
"track.delivery": { ar: "التوصيل", fr: "Livraison", en: "Delivery" },
|
|
44
|
+
"track.delivery.home": { ar: "إلى المنزل", fr: "À domicile", en: "To your door" },
|
|
45
|
+
"track.delivery.stopDesk": { ar: "في مكتب شركة التوصيل", fr: "Au bureau du transporteur", en: "At the carrier's office" },
|
|
46
|
+
"track.items": { ar: "طلبك", fr: "Votre commande", en: "Your order" },
|
|
47
|
+
"track.total": { ar: "تدفع عند الاستلام", fr: "À payer à la livraison", en: "To pay on delivery" },
|
|
48
|
+
"track.tracking": { ar: "رقم التتبّع", fr: "Numéro de suivi", en: "Tracking number" },
|
|
49
|
+
"track.contact": { ar: "سؤال عن طلبك؟ راسلنا", fr: "Une question ? Écrivez-nous", en: "A question? Message us" },
|
|
50
|
+
"track.another": { ar: "تتبّع طلبًا آخر", fr: "Suivre une autre commande", en: "Track another order" },
|
|
51
|
+
"track.stage.placed": { ar: "تم استلام الطلب", fr: "Commande reçue", en: "Order received" },
|
|
52
|
+
"track.stage.placed.hint": { ar: "استلمنا طلبك، والخطوة التالية تأكيده من المتجر.", fr: "Nous avons reçu votre commande. La boutique doit maintenant la confirmer.", en: "We've received your order. Next, the store confirms it." },
|
|
53
|
+
"track.stage.confirmed": { ar: "تم التأكيد", fr: "Confirmée", en: "Confirmed" },
|
|
54
|
+
"track.stage.confirmed.hint": { ar: "طلبك مؤكَّد وسيُجهَّز قريبًا.", fr: "Votre commande est confirmée et sera bientôt préparée.", en: "Your order is confirmed and will be prepared soon." },
|
|
55
|
+
"track.stage.preparing": { ar: "قيد التجهيز", fr: "En préparation", en: "Being prepared" },
|
|
56
|
+
"track.stage.preparing.hint": { ar: "المتجر يجهّز طردك.", fr: "La boutique prépare votre colis.", en: "The store is preparing your parcel." },
|
|
57
|
+
"track.stage.shipped": { ar: "تم الشحن", fr: "Expédiée", en: "Shipped" },
|
|
58
|
+
"track.stage.shipped.hint": { ar: "طردك عند شركة التوصيل.", fr: "Votre colis est chez le transporteur.", en: "Your parcel is with the carrier." },
|
|
59
|
+
"track.stage.outForDelivery": { ar: "في الطريق إليك", fr: "En cours de livraison", en: "Out for delivery" },
|
|
60
|
+
"track.stage.outForDelivery.hint": { ar: "المندوب في الطريق. أبقِ هاتفك قريبًا وجهّز المبلغ.", fr: "Le livreur est en route. Gardez votre téléphone à portée de main et préparez le montant.", en: "The driver is on the way. Keep your phone close and the amount ready." },
|
|
61
|
+
"track.stage.delivered": { ar: "تم التسليم", fr: "Livrée", en: "Delivered" },
|
|
62
|
+
"track.stage.delivered.hint": { ar: "وصلك طلبك. شكرًا لك!", fr: "Votre commande a été livrée. Merci !", en: "Your order was delivered. Thank you!" },
|
|
63
|
+
"track.stage.returned": { ar: "مُرتجَع", fr: "Retournée", en: "Returned" },
|
|
64
|
+
"track.stage.returned.hint": { ar: "لم يُستلم الطرد وهو في طريق العودة إلى المتجر. راسلنا لإعادة توصيله.", fr: "Le colis n'a pas été reçu et retourne à la boutique. Écrivez-nous pour le faire livrer à nouveau.", en: "The parcel wasn't received and is going back to the store. Message us to have it delivered again." },
|
|
65
|
+
"track.stage.cancelled": { ar: "ملغى", fr: "Annulée", en: "Cancelled" },
|
|
66
|
+
"track.stage.cancelled.hint": { ar: "أُلغي هذا الطلب. راسلنا إن كان ذلك خطأ.", fr: "Cette commande a été annulée. Écrivez-nous s'il s'agit d'une erreur.", en: "This order was cancelled. Message us if this is a mistake." },
|
|
67
|
+
"track.stage.other": { ar: "قيد المعالجة", fr: "En cours", en: "In progress" },
|
|
68
|
+
"track.stage.other.hint": { ar: "طلبك قيد المعالجة.", fr: "Votre commande est en cours de traitement.", en: "Your order is being processed." },
|
|
69
|
+
"checkout.title": { ar: "إتمام الطلب", fr: "Finaliser la commande", en: "Checkout" },
|
|
70
|
+
"checkout.payment": { ar: "الدفع عند الاستلام", fr: "Paiement à la livraison", en: "Cash on delivery" },
|
|
71
|
+
"checkout.name": { ar: "الاسم الكامل", fr: "Nom complet", en: "Full name" },
|
|
72
|
+
"checkout.phone": { ar: "رقم الهاتف", fr: "Téléphone", en: "Phone number" },
|
|
73
|
+
"checkout.email": { ar: "البريد الإلكتروني", fr: "E-mail", en: "Email" },
|
|
74
|
+
"checkout.wilaya": { ar: "الولاية", fr: "Wilaya", en: "Wilaya" },
|
|
75
|
+
"checkout.commune": { ar: "البلدية", fr: "Commune", en: "Commune" },
|
|
76
|
+
"checkout.address": { ar: "العنوان", fr: "Adresse", en: "Address" },
|
|
77
|
+
"checkout.notes": { ar: "ملاحظات", fr: "Notes", en: "Notes" },
|
|
78
|
+
"checkout.deliveryHome": { ar: "توصيل إلى المنزل", fr: "Livraison à domicile", en: "Home delivery" },
|
|
79
|
+
"checkout.deliveryDesk": { ar: "الاستلام من المكتب", fr: "Retrait au bureau", en: "Pick up at the desk" },
|
|
80
|
+
"checkout.deliveryLabel": { ar: "طريقة التوصيل", fr: "Mode de livraison", en: "Delivery method" },
|
|
81
|
+
"checkout.codNotice": { ar: "لا تدفع الآن. تدفع نقدًا عند استلام طلبك.", fr: "Rien à payer maintenant : vous payez à la réception.", en: "Nothing to pay now: you pay when it arrives." },
|
|
82
|
+
"checkout.place": { ar: "تأكيد الطلب", fr: "Confirmer la commande", en: "Confirm my order" },
|
|
83
|
+
"checkout.placing": { ar: "جارٍ إرسال الطلب…", fr: "Envoi de la commande…", en: "Placing your order…" },
|
|
84
|
+
"checkout.required": { ar: "هذه المعلومة مطلوبة", fr: "Ce champ est requis", en: "This field is required" },
|
|
85
|
+
"checkout.invalidField": { ar: "تحقّق من هذه المعلومة.", fr: "Vérifiez cette information.", en: "Please check this field." },
|
|
86
|
+
"checkout.invalidPhone": { ar: "أدخل رقم هاتف جزائري صحيح (مثال: 0555123456).", fr: "Saisissez un numéro algérien valide (ex. 0555123456).", en: "Enter a valid Algerian mobile number (e.g. 0555123456)." },
|
|
87
|
+
"checkout.invalidEmail": { ar: "أدخل بريدًا إلكترونيًا صحيحًا.", fr: "Saisissez un e-mail valide.", en: "Enter a valid email." },
|
|
88
|
+
"checkout.loadingFee": { ar: "جارٍ حساب التوصيل…", fr: "Calcul de la livraison…", en: "Calculating delivery…" },
|
|
89
|
+
"checkout.fee": { ar: "التوصيل", fr: "Livraison", en: "Delivery" },
|
|
90
|
+
"checkout.free": { ar: "مجاني", fr: "Offerte", en: "Free" },
|
|
91
|
+
"checkout.gift": { ar: "هدية مجانية", fr: "Cadeau offert", en: "Free gift" },
|
|
92
|
+
"checkout.discount": { ar: "الخصم", fr: "Remise", en: "Discount" },
|
|
93
|
+
"checkout.editCart": { ar: "تعديل السلة", fr: "Modifier le panier", en: "Edit cart" },
|
|
94
|
+
"checkout.otpTitle": { ar: "تأكيد رقم هاتفك", fr: "Vérifiez votre numéro", en: "Verify your number" },
|
|
95
|
+
"checkout.otpHint": { ar: "أرسلنا لك رمزًا عبر واتساب، أدخله هنا.", fr: "Nous vous avons envoyé un code sur WhatsApp.", en: "We sent you a code on WhatsApp — enter it here." },
|
|
96
|
+
"checkout.otpResend": { ar: "إعادة الإرسال", fr: "Renvoyer", en: "Resend" },
|
|
97
|
+
"checkout.otpCode": { ar: "رمز التحقق", fr: "Code de vérification", en: "Verification code" },
|
|
98
|
+
"checkout.otpChangePhone": { ar: "تغيير الرقم", fr: "Changer de numéro", en: "Change number" },
|
|
99
|
+
"checkout.otpVerified": { ar: "تم تأكيد رقمك", fr: "Numéro vérifié", en: "Number verified" },
|
|
100
|
+
"checkout.otpUnavailable": { ar: "التحقق عبر واتساب غير متاح الآن؛ يمكنك تأكيد الطلب بدونه.", fr: "La vérification WhatsApp est indisponible ; vous pouvez commander sans elle.", en: "WhatsApp verification is unavailable; you can still place your order." },
|
|
101
|
+
"checkout.otpError": { ar: "الرمز غير صحيح أو انتهت صلاحيته.", fr: "Code incorrect ou expiré.", en: "That code is wrong or expired." },
|
|
102
|
+
"checkout.otpExpired": { ar: "انتهت صلاحية الرمز، اطلب رمزًا جديدًا.", fr: "Ce code a expiré, demandez-en un nouveau.", en: "This code expired — request a new one." },
|
|
103
|
+
"checkout.couponToggle": { ar: "عندك كود تخفيض؟", fr: "Vous avez un code promo ?", en: "Have a discount code?" },
|
|
104
|
+
"checkout.couponPlaceholder": { ar: "كود التخفيض", fr: "Code promo", en: "Discount code" },
|
|
105
|
+
"checkout.assureNoPrepay": { ar: "لا دفع مسبق", fr: "Aucun paiement d'avance", en: "No prepayment" },
|
|
106
|
+
"checkout.assureFee": { ar: "سعر التوصيل يظهر قبل التأكيد", fr: "Frais de livraison affichés avant de confirmer", en: "Delivery fee shown before you confirm" },
|
|
107
|
+
"checkout.assureTrack": { ar: "تتبّع طلبك برقمه", fr: "Suivez votre commande avec son numéro", en: "Track your order with its number" },
|
|
108
|
+
"checkout.unavailable": { ar: "التوصيل غير متاح إلى هذه الوجهة.", fr: "La livraison n'est pas disponible pour cette destination.", en: "Delivery isn't available to this destination." },
|
|
109
|
+
"checkout.errorBody": { ar: "راجع معلوماتك وأعد المحاولة. لم يُخصم منك أي مبلغ.", fr: "Vérifiez vos informations et réessayez. Rien n'a été débité.", en: "Check your details and try again. Nothing was charged." },
|
|
110
|
+
"checkout.outOfStock": { ar: "هذا المنتج غير متوفر بالكمية المطلوبة. قلّل الكمية أو اختر خيارًا آخر.", fr: "Ce produit n'est pas disponible dans la quantité demandée. Réduisez la quantité ou choisissez une autre option.", en: "This product isn't available in the quantity you asked for. Lower the quantity or pick another option." },
|
|
111
|
+
"checkout.outOfStockNamed": { ar: "«{product}» غير متوفر بالكمية المطلوبة. قلّل الكمية أو اختر خيارًا آخر.", fr: "« {product} » n'est pas disponible dans la quantité demandée. Réduisez la quantité ou choisissez une autre option.", en: "“{product}” isn't available in the quantity you asked for. Lower the quantity or pick another option." },
|
|
112
|
+
"checkout.productUnavailable": { ar: "هذا المنتج لم يعد متاحًا للطلب.", fr: "Ce produit n'est plus disponible à la commande.", en: "This product can no longer be ordered." },
|
|
113
|
+
"checkout.productUnavailableNamed": { ar: "«{product}» لم يعد متاحًا للطلب.", fr: "« {product} » n'est plus disponible à la commande.", en: "“{product}” can no longer be ordered." },
|
|
114
|
+
"checkout.botCheckFailed": { ar: "لم يكتمل التحقق الأمني. انتظر لحظة ثم أكّد الطلب من جديد.", fr: "La vérification de sécurité n'a pas abouti. Patientez un instant, puis confirmez à nouveau.", en: "The security check didn't finish. Wait a moment, then confirm again." },
|
|
115
|
+
"checkout.phoneNotVerified": { ar: "تعذّر تأكيد رقم هاتفك. أكّده من جديد لإتمام الطلب.", fr: "Votre numéro n'a pas pu être vérifié. Vérifiez-le à nouveau pour commander.", en: "We couldn't verify your number. Verify it again to place your order." },
|
|
116
|
+
"checkout.fixFields": { ar: "صحّح المعلومات المشار إليها ثم أكّد الطلب.", fr: "Corrigez les informations signalées, puis confirmez.", en: "Correct the highlighted details, then confirm." },
|
|
117
|
+
"checkout.failed": { ar: "تعذّر إرسال طلبك. أعد المحاولة بعد لحظة.", fr: "Votre commande n'a pas pu être envoyée. Réessayez dans un instant.", en: "Your order couldn't be sent. Try again in a moment." },
|
|
118
|
+
"checkout.failedReference": { ar: "تعذّر إرسال طلبك. أعد المحاولة بعد لحظة. المرجع: {reference}", fr: "Votre commande n'a pas pu être envoyée. Réessayez dans un instant. Référence : {reference}", en: "Your order couldn't be sent. Try again in a moment. Reference: {reference}" },
|
|
119
|
+
"checkout.orderNumberNote": { ar: "بعد التأكيد يظهر لك رقم طلبك، فاحتفظ به لتتبّعه.", fr: "Après confirmation, vous recevez un numéro de commande : gardez-le pour la suivre.", en: "Once you confirm, you get an order number: keep it to track your order." },
|
|
120
|
+
"checkout.namePlaceholder": { ar: "الاسم الكامل *", fr: "Nom complet *", en: "Full name *" },
|
|
121
|
+
"checkout.phonePlaceholder": { ar: "رقم الهاتف *", fr: "Téléphone *", en: "Phone number *" },
|
|
122
|
+
"checkout.wilayaPlaceholder": { ar: "الولاية *", fr: "Wilaya *", en: "Wilaya *" },
|
|
123
|
+
"checkout.communePlaceholder": { ar: "البلدية *", fr: "Commune *", en: "Commune *" },
|
|
124
|
+
"checkout.addressPlaceholder": { ar: "العنوان (الحي، الشارع…)", fr: "Adresse (quartier, rue…)", en: "Address (area, street…)" },
|
|
125
|
+
"checkout.notesPlaceholder": { ar: "ملاحظة على الطلب (اختياري)", fr: "Note pour la commande (facultatif)", en: "Order note (optional)" },
|
|
126
|
+
"coupon.applied": { ar: "تم تطبيق الكود: −{amount}", fr: "Code appliqué : −{amount}", en: "Code applied: −{amount}" },
|
|
127
|
+
"coupon.appliedFreeShipping": { ar: "تم تطبيق الكود: التوصيل مجاني", fr: "Code appliqué : livraison offerte", en: "Code applied: free delivery" },
|
|
128
|
+
"coupon.notFound": { ar: "هذا الكود غير موجود.", fr: "Ce code n'existe pas.", en: "This code doesn't exist." },
|
|
129
|
+
"coupon.notStarted": { ar: "هذا الكود لم يبدأ بعد.", fr: "Ce code n'est pas encore actif.", en: "This code isn't active yet." },
|
|
130
|
+
"coupon.expired": { ar: "انتهت صلاحية هذا الكود.", fr: "Ce code a expiré.", en: "This code has expired." },
|
|
131
|
+
"coupon.usedUp": { ar: "نفدت استعمالات هذا الكود.", fr: "Ce code a atteint sa limite.", en: "This code has been used up." },
|
|
132
|
+
"coupon.identifyFirst": { ar: "أدخل رقم هاتفك أولًا لنتحقق من الكود.", fr: "Saisissez d'abord votre téléphone pour vérifier ce code.", en: "Enter your phone first so we can check this code." },
|
|
133
|
+
"coupon.notEligible": { ar: "هذا الكود غير مخصص لهذا الرقم.", fr: "Ce code n'est pas valable pour ce numéro.", en: "This code isn't valid for this number." },
|
|
134
|
+
"coupon.alreadyUsed": { ar: "سبق أن استعملت هذا الكود.", fr: "Vous avez déjà utilisé ce code.", en: "You've already used this code." },
|
|
135
|
+
"coupon.noEligibleProducts": { ar: "هذا الكود لا يشمل منتجات طلبك.", fr: "Ce code ne s'applique pas à ces produits.", en: "This code doesn't cover these products." },
|
|
136
|
+
"coupon.offerApplied": { ar: "طلبك يستفيد من عرض، فلا يُجمع معه الكود.", fr: "Une offre s'applique déjà ; le code ne se cumule pas.", en: "An offer already applies; the code can't be combined." },
|
|
137
|
+
"coupon.belowSubtotal": { ar: "أضف {amount} لاستعمال هذا الكود.", fr: "Ajoutez {amount} pour utiliser ce code.", en: "Add {amount} more to use this code." },
|
|
138
|
+
"coupon.belowQuantity": { ar: "أضف قطعًا أخرى لاستعمال هذا الكود.", fr: "Ajoutez d'autres articles pour utiliser ce code.", en: "Add more items to use this code." },
|
|
139
|
+
"coupon.deliveryAlreadyFree": { ar: "التوصيل مجاني لطلبك أصلًا.", fr: "La livraison est déjà offerte.", en: "Delivery is already free." },
|
|
140
|
+
"coupon.refused": { ar: "لا يمكن استعمال هذا الكود.", fr: "Ce code ne peut pas être utilisé.", en: "This code can't be used." },
|
|
141
|
+
"thankYou.title": { ar: "شكرًا لك!", fr: "Merci !", en: "Thank you!" },
|
|
142
|
+
"thankYou.subtitle": { ar: "وصلنا طلبك. احتفظ برقم الطلب لتتبّعه.", fr: "Nous avons bien reçu votre commande. Gardez son numéro pour la suivre.", en: "We received your order. Keep its number to track it." },
|
|
143
|
+
"thankYou.orderNumber": { ar: "رقم الطلب", fr: "Numéro de commande", en: "Order number" },
|
|
144
|
+
"thankYou.total": { ar: "تدفع عند الاستلام", fr: "À payer à la livraison", en: "To pay on delivery" },
|
|
145
|
+
"thankYou.payment": { ar: "طريقة الدفع", fr: "Paiement", en: "Payment" },
|
|
146
|
+
"thankYou.cod": { ar: "نقدًا عند الاستلام", fr: "En espèces à la livraison", en: "Cash on delivery" },
|
|
147
|
+
"thankYou.next": { ar: "ماذا بعد؟ يؤكد المتجر طلبك ثم يرسله، ويمكنك متابعة كل مرحلة في صفحة تتبّع الطلب.", fr: "Et ensuite ? La boutique confirme votre commande, puis l'expédie. Suivez chaque étape sur la page de suivi.", en: "What next? The store confirms your order, then ships it. Follow each step on the order tracking page." },
|
|
148
|
+
"thankYou.whatsapp": { ar: "راسلنا على واتساب", fr: "Nous écrire sur WhatsApp", en: "Message us on WhatsApp" },
|
|
149
|
+
"thankYou.continue": { ar: "متابعة التسوق", fr: "Continuer mes achats", en: "Continue shopping" },
|
|
150
|
+
} satisfies Messages;
|
|
151
|
+
|
|
152
|
+
export const plurals = {
|
|
153
|
+
"cart.count": {
|
|
154
|
+
ar: { zero: "لا قطع", one: "قطعة واحدة", two: "قطعتان", few: "{count} قطع", many: "{count} قطعة", other: "{count} قطعة" },
|
|
155
|
+
fr: { one: "{count} article", many: "{count} d'articles", other: "{count} articles" },
|
|
156
|
+
en: { one: "{count} item", other: "{count} items" },
|
|
157
|
+
},
|
|
158
|
+
"checkout.otpAttempts": {
|
|
159
|
+
ar: { zero: "رمز غير صحيح — لم تبقَ محاولات.", one: "رمز غير صحيح — بقيت محاولة واحدة.", two: "رمز غير صحيح — بقيت محاولتان.", few: "رمز غير صحيح — بقيت {count} محاولات.", many: "رمز غير صحيح — بقيت {count} محاولة.", other: "رمز غير صحيح — بقيت {count} محاولة." },
|
|
160
|
+
fr: { one: "Code incorrect — encore {count} essai.", many: "Code incorrect — encore {count} essais.", other: "Code incorrect — encore {count} essais." },
|
|
161
|
+
en: { one: "That code is wrong — 1 attempt left.", other: "That code is wrong — {count} attempts left." },
|
|
162
|
+
},
|
|
163
|
+
"track.rateLimited": {
|
|
164
|
+
ar: { zero: "محاولات كثيرة. أعد المحاولة بعد قليل.", one: "محاولات كثيرة. أعد المحاولة بعد دقيقة.", two: "محاولات كثيرة. أعد المحاولة بعد دقيقتين.", few: "محاولات كثيرة. أعد المحاولة بعد {count} دقائق.", many: "محاولات كثيرة. أعد المحاولة بعد {count} دقيقة.", other: "محاولات كثيرة. أعد المحاولة بعد {count} دقيقة." },
|
|
165
|
+
fr: { one: "Trop d'essais. Réessayez dans une minute.", many: "Trop d'essais. Réessayez dans {count} minutes.", other: "Trop d'essais. Réessayez dans {count} minutes." },
|
|
166
|
+
en: { one: "Too many tries. Try again in a minute.", other: "Too many tries. Try again in {count} minutes." },
|
|
167
|
+
},
|
|
168
|
+
} satisfies Plurals;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/** Hints the editor's preview shows on a section that has nothing to show yet. Shoppers never see them. */
|
|
2
|
-
import type { Messages, Plurals } from "./types";
|
|
3
|
-
|
|
4
|
-
export const messages = {
|
|
5
|
-
"preview.hero": { ar: "أضف عنوانًا لشريحة لتظهر هنا.", fr: "Ajoutez un titre à une diapositive pour l'afficher.", en: "Give a slide a title to show it here." },
|
|
6
|
-
"preview.collections": { ar: "اختر مجموعات لتظهر بطاقاتها هنا.", fr: "Choisissez des collections pour afficher leurs cartes.", en: "Pick collections to show their cards here." },
|
|
7
|
-
"preview.products": { ar: "اختر مجموعة فيها منتجات لتظهر هنا.", fr: "Choisissez une collection qui a des produits.", en: "Pick a collection with products to show them here." },
|
|
8
|
-
"preview.product": { ar: "اختر منتجًا ليظهر هنا.", fr: "Choisissez un produit à afficher ici.", en: "Pick a product to show it here." },
|
|
9
|
-
"preview.testimonials": { ar: "تظهر هنا آراء زبائنك بعد نشرها.", fr: "Les avis de vos clients s'affichent ici une fois publiés.", en: "Your customers' reviews show here once published." },
|
|
10
|
-
"preview.landingImages": { ar: "تظهر هنا صور هذه الصفحة. أضفها من لوحة الصور.", fr: "Les images de cette page s'affichent ici. Ajoutez-les depuis le panneau Images.", en: "This page's images show here. Add them from the Images panel." },
|
|
11
|
-
"preview.countdown": { ar: "حدّد متى ينتهي العرض ليظهر العد التنازلي.", fr: "Choisissez quand l'offre se termine pour afficher le compte à rebours.", en: "Set when the offer ends to show the countdown." },
|
|
12
|
-
"preview.steps": { ar: "أضف خطوة واحدة على الأقل.", fr: "Ajoutez au moins une étape.", en: "Add at least one step." },
|
|
13
|
-
"preview.text": { ar: "اكتب نصًا ليظهر هنا.", fr: "Écrivez un texte pour l'afficher ici.", en: "Write some text to show it here." },
|
|
14
|
-
"preview.faq": { ar: "أضف أسئلة وأجوبة لتظهر هنا.", fr: "Ajoutez des questions et réponses.", en: "Add questions and answers to show them here." },
|
|
15
|
-
"preview.reviews": { ar: "تظهر الآراء هنا عندما يقبلها المتجر.", fr: "Les avis s'affichent ici quand la boutique les accepte.", en: "Reviews show here once the store takes them." },
|
|
16
|
-
"preview.listing": { ar: "تظهر المنتجات هنا عندما يكون للمتجر منتجات من هذا النوع.", fr: "Les produits s'affichent ici quand la boutique en a.", en: "Products show here once the store has some of this kind." },
|
|
17
|
-
"preview.page": { ar: "تظهر الصفحة هنا عندما تنشئ صفحة نصية.", fr: "La page s'affiche ici une fois créée.", en: "The page shows here once you create a text page." },
|
|
18
|
-
} satisfies Messages;
|
|
19
|
-
|
|
20
|
-
export const plurals = {
|
|
21
|
-
} satisfies Plurals;
|
|
1
|
+
/** Hints the editor's preview shows on a section that has nothing to show yet. Shoppers never see them. */
|
|
2
|
+
import type { Messages, Plurals } from "./types";
|
|
3
|
+
|
|
4
|
+
export const messages = {
|
|
5
|
+
"preview.hero": { ar: "أضف عنوانًا لشريحة لتظهر هنا.", fr: "Ajoutez un titre à une diapositive pour l'afficher.", en: "Give a slide a title to show it here." },
|
|
6
|
+
"preview.collections": { ar: "اختر مجموعات لتظهر بطاقاتها هنا.", fr: "Choisissez des collections pour afficher leurs cartes.", en: "Pick collections to show their cards here." },
|
|
7
|
+
"preview.products": { ar: "اختر مجموعة فيها منتجات لتظهر هنا.", fr: "Choisissez une collection qui a des produits.", en: "Pick a collection with products to show them here." },
|
|
8
|
+
"preview.product": { ar: "اختر منتجًا ليظهر هنا.", fr: "Choisissez un produit à afficher ici.", en: "Pick a product to show it here." },
|
|
9
|
+
"preview.testimonials": { ar: "تظهر هنا آراء زبائنك بعد نشرها.", fr: "Les avis de vos clients s'affichent ici une fois publiés.", en: "Your customers' reviews show here once published." },
|
|
10
|
+
"preview.landingImages": { ar: "تظهر هنا صور هذه الصفحة. أضفها من لوحة الصور.", fr: "Les images de cette page s'affichent ici. Ajoutez-les depuis le panneau Images.", en: "This page's images show here. Add them from the Images panel." },
|
|
11
|
+
"preview.countdown": { ar: "حدّد متى ينتهي العرض ليظهر العد التنازلي.", fr: "Choisissez quand l'offre se termine pour afficher le compte à rebours.", en: "Set when the offer ends to show the countdown." },
|
|
12
|
+
"preview.steps": { ar: "أضف خطوة واحدة على الأقل.", fr: "Ajoutez au moins une étape.", en: "Add at least one step." },
|
|
13
|
+
"preview.text": { ar: "اكتب نصًا ليظهر هنا.", fr: "Écrivez un texte pour l'afficher ici.", en: "Write some text to show it here." },
|
|
14
|
+
"preview.faq": { ar: "أضف أسئلة وأجوبة لتظهر هنا.", fr: "Ajoutez des questions et réponses.", en: "Add questions and answers to show them here." },
|
|
15
|
+
"preview.reviews": { ar: "تظهر الآراء هنا عندما يقبلها المتجر.", fr: "Les avis s'affichent ici quand la boutique les accepte.", en: "Reviews show here once the store takes them." },
|
|
16
|
+
"preview.listing": { ar: "تظهر المنتجات هنا عندما يكون للمتجر منتجات من هذا النوع.", fr: "Les produits s'affichent ici quand la boutique en a.", en: "Products show here once the store has some of this kind." },
|
|
17
|
+
"preview.page": { ar: "تظهر الصفحة هنا عندما تنشئ صفحة نصية.", fr: "La page s'affiche ici une fois créée.", en: "The page shows here once you create a text page." },
|
|
18
|
+
} satisfies Messages;
|
|
19
|
+
|
|
20
|
+
export const plurals = {
|
|
21
|
+
} satisfies Plurals;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The theme's own words, in every language it speaks. Each key lives in one
|
|
3
|
-
* area file with all its translations side by side, so a text is changed in
|
|
4
|
-
* one place. A merchant can edit any of them in the editor; a key a section
|
|
5
|
-
* field names (`contentKey`) is where that field's text starts.
|
|
6
|
-
*
|
|
7
|
-
* Business data — prices, product names, fees, the store's answers — never
|
|
8
|
-
* lives here; it comes from the store.
|
|
9
|
-
*/
|
|
10
|
-
import { LOCALES, type Locale } from "../locales";
|
|
11
|
-
import * as shell from "./shell";
|
|
12
|
-
import * as catalog from "./catalog";
|
|
13
|
-
import * as checkout from "./checkout";
|
|
14
|
-
import * as reviews from "./reviews";
|
|
15
|
-
import * as editor from "./editor";
|
|
16
|
-
|
|
17
|
-
const messages = {
|
|
18
|
-
...shell.messages,
|
|
19
|
-
...catalog.messages,
|
|
20
|
-
...checkout.messages,
|
|
21
|
-
...reviews.messages,
|
|
22
|
-
...editor.messages,
|
|
23
|
-
};
|
|
24
|
-
const plurals = {
|
|
25
|
-
...shell.plurals,
|
|
26
|
-
...catalog.plurals,
|
|
27
|
-
...checkout.plurals,
|
|
28
|
-
...reviews.plurals,
|
|
29
|
-
...editor.plurals,
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/** Every key a component may read. A plural is read by its key; its forms are found by the count. */
|
|
33
|
-
export type ContentKey = keyof typeof messages | keyof typeof plurals;
|
|
34
|
-
|
|
35
|
-
/** One language's pack as the platform stores it: flat keys, a plural's forms as `key_form`. */
|
|
36
|
-
function pack(locale: Locale): Record<string, string> {
|
|
37
|
-
const flat: Record<string, string> = {};
|
|
38
|
-
for (const [key, text] of Object.entries(messages)) flat[key] = text[locale];
|
|
39
|
-
for (const [key, forms] of Object.entries(plurals)) {
|
|
40
|
-
for (const [form, text] of Object.entries(forms[locale])) flat[`${key}_${form}`] = text;
|
|
41
|
-
}
|
|
42
|
-
return flat;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const content = Object.fromEntries(LOCALES.map((locale) => [locale, pack(locale)])) as Record<Locale, Record<string, string>>;
|
|
1
|
+
/**
|
|
2
|
+
* The theme's own words, in every language it speaks. Each key lives in one
|
|
3
|
+
* area file with all its translations side by side, so a text is changed in
|
|
4
|
+
* one place. A merchant can edit any of them in the editor; a key a section
|
|
5
|
+
* field names (`contentKey`) is where that field's text starts.
|
|
6
|
+
*
|
|
7
|
+
* Business data — prices, product names, fees, the store's answers — never
|
|
8
|
+
* lives here; it comes from the store.
|
|
9
|
+
*/
|
|
10
|
+
import { LOCALES, type Locale } from "../locales";
|
|
11
|
+
import * as shell from "./shell";
|
|
12
|
+
import * as catalog from "./catalog";
|
|
13
|
+
import * as checkout from "./checkout";
|
|
14
|
+
import * as reviews from "./reviews";
|
|
15
|
+
import * as editor from "./editor";
|
|
16
|
+
|
|
17
|
+
const messages = {
|
|
18
|
+
...shell.messages,
|
|
19
|
+
...catalog.messages,
|
|
20
|
+
...checkout.messages,
|
|
21
|
+
...reviews.messages,
|
|
22
|
+
...editor.messages,
|
|
23
|
+
};
|
|
24
|
+
const plurals = {
|
|
25
|
+
...shell.plurals,
|
|
26
|
+
...catalog.plurals,
|
|
27
|
+
...checkout.plurals,
|
|
28
|
+
...reviews.plurals,
|
|
29
|
+
...editor.plurals,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** Every key a component may read. A plural is read by its key; its forms are found by the count. */
|
|
33
|
+
export type ContentKey = keyof typeof messages | keyof typeof plurals;
|
|
34
|
+
|
|
35
|
+
/** One language's pack as the platform stores it: flat keys, a plural's forms as `key_form`. */
|
|
36
|
+
function pack(locale: Locale): Record<string, string> {
|
|
37
|
+
const flat: Record<string, string> = {};
|
|
38
|
+
for (const [key, text] of Object.entries(messages)) flat[key] = text[locale];
|
|
39
|
+
for (const [key, forms] of Object.entries(plurals)) {
|
|
40
|
+
for (const [form, text] of Object.entries(forms[locale])) flat[`${key}_${form}`] = text;
|
|
41
|
+
}
|
|
42
|
+
return flat;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export const content = Object.fromEntries(LOCALES.map((locale) => [locale, pack(locale)])) as Record<Locale, Record<string, string>>;
|