create-abcart-theme 0.0.0-stage → 0.10.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 +127 -0
- package/LICENSE +202 -0
- package/NOTICE +2 -0
- package/README.md +64 -2
- package/bin/create-abcart-theme.mjs +4 -0
- package/package.json +47 -4
- package/src/args.mjs +113 -0
- package/src/banner.mjs +21 -0
- package/src/cli.mjs +119 -0
- package/src/create.mjs +82 -0
- package/src/package-manager.mjs +32 -0
- package/src/style.mjs +17 -0
- package/templates/default/.agents/skills/shopify-theme-asset-collector/SKILL.md +125 -0
- package/templates/default/.agents/skills/shopify-theme-asset-collector/scripts/collect_public_assets.py +370 -0
- package/templates/default/.agents/skills/wocart-docs/SKILL.md +146 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/SKILL.md +58 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/inputs-and-rights.md +47 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/layout-rtl-and-phone.md +36 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/measure-the-design.md +60 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/tokens-sections-content.md +103 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/verify-and-report.md +102 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/scripts/compare-design.cjs +230 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/scripts/qa-pages.cjs +219 -0
- package/templates/default/.dev.vars.example +12 -0
- package/templates/default/AGENTS.md +240 -0
- package/templates/default/README.md +184 -0
- package/templates/default/_gitignore +11 -0
- package/templates/default/astro.config.mjs +85 -0
- package/templates/default/package.json +36 -0
- package/templates/default/public/fonts/OFL.txt +96 -0
- package/templates/default/public/fonts/alexandria-arabic.woff2 +0 -0
- package/templates/default/public/fonts/fraunces-latin.woff2 +0 -0
- package/templates/default/src/actions/index.ts +22 -0
- package/templates/default/src/components/cart/AddToCartButton.astro +45 -0
- package/templates/default/src/components/cart/CartDrawer.astro +47 -0
- package/templates/default/src/components/cart/CartSummary.astro +11 -0
- package/templates/default/src/components/cart/FreeShipping.astro +7 -0
- package/templates/default/src/components/checkout/CheckoutMain.astro +29 -0
- package/templates/default/src/components/checkout/OrderForm.astro +280 -0
- package/templates/default/src/components/checkout/ThankYouMain.astro +68 -0
- package/templates/default/src/components/landing/LandingImages.astro +51 -0
- package/templates/default/src/components/landing/LandingOrder.astro +46 -0
- package/templates/default/src/components/landing/LandingProduct.astro +41 -0
- package/templates/default/src/components/listing/ListingMain.astro +93 -0
- package/templates/default/src/components/listing/PageMain.astro +52 -0
- package/templates/default/src/components/listing/Pagination.astro +31 -0
- package/templates/default/src/components/listing/SortControl.astro +35 -0
- package/templates/default/src/components/product/BuyBox.astro +96 -0
- package/templates/default/src/components/product/Description.astro +24 -0
- package/templates/default/src/components/product/Gallery.astro +66 -0
- package/templates/default/src/components/product/MobileBuyBar.astro +29 -0
- package/templates/default/src/components/product/OfferChoice.astro +66 -0
- package/templates/default/src/components/product/ProductMain.astro +40 -0
- package/templates/default/src/components/product/ProductReviews.astro +72 -0
- package/templates/default/src/components/product/RelatedProducts.astro +30 -0
- package/templates/default/src/components/product/blocks/BenefitsBlock.astro +13 -0
- package/templates/default/src/components/product/blocks/CollapsibleBlock.astro +20 -0
- package/templates/default/src/components/product/blocks/DescriptionBlock.astro +19 -0
- package/templates/default/src/components/product/blocks/DetailsBlock.astro +33 -0
- package/templates/default/src/components/product/blocks/GalleryBlock.astro +12 -0
- package/templates/default/src/components/product/blocks/OrderBlock.astro +30 -0
- package/templates/default/src/components/product/blocks/PriceBlock.astro +23 -0
- package/templates/default/src/components/product/blocks/RatingBlock.astro +16 -0
- package/templates/default/src/components/product/blocks/StockBlock.astro +22 -0
- package/templates/default/src/components/product/blocks/TextBlock.astro +11 -0
- package/templates/default/src/components/product/blocks/TitleBlock.astro +20 -0
- package/templates/default/src/components/reviews/ReviewCard.astro +46 -0
- package/templates/default/src/components/reviews/ReviewForm.astro +113 -0
- package/templates/default/src/components/reviews/VoiceNote.astro +60 -0
- package/templates/default/src/components/sections/CollectionCards.astro +65 -0
- package/templates/default/src/components/sections/Countdown.astro +57 -0
- package/templates/default/src/components/sections/Faq.astro +44 -0
- package/templates/default/src/components/sections/FeaturedProduct.astro +71 -0
- package/templates/default/src/components/sections/Hero.astro +99 -0
- package/templates/default/src/components/sections/ImageBanner.astro +46 -0
- package/templates/default/src/components/sections/ProductGrid.astro +47 -0
- package/templates/default/src/components/sections/RichText.astro +35 -0
- package/templates/default/src/components/sections/Steps.astro +46 -0
- package/templates/default/src/components/sections/Testimonials.astro +57 -0
- package/templates/default/src/components/shell/Footer.astro +80 -0
- package/templates/default/src/components/shell/Header.astro +89 -0
- package/templates/default/src/components/shell/LanguageMenu.astro +33 -0
- package/templates/default/src/components/shell/MobileMenu.astro +65 -0
- package/templates/default/src/components/shell/SearchDialog.astro +19 -0
- package/templates/default/src/components/shell/TopBar.astro +54 -0
- package/templates/default/src/components/shell/WhatsAppWidget.astro +111 -0
- package/templates/default/src/components/store/ContactMain.astro +79 -0
- package/templates/default/src/components/store/SearchMain.astro +56 -0
- package/templates/default/src/components/store/TrackOrderMain.astro +161 -0
- package/templates/default/src/components/surface/Area.astro +20 -0
- package/templates/default/src/components/surface/PreviewBridge.astro +24 -0
- package/templates/default/src/components/surface/Sections.astro +35 -0
- package/templates/default/src/components/ui/Breadcrumbs.astro +36 -0
- package/templates/default/src/components/ui/Button.astro +45 -0
- package/templates/default/src/components/ui/EditorPlaceholder.astro +24 -0
- package/templates/default/src/components/ui/Icon.astro +93 -0
- package/templates/default/src/components/ui/Logo.astro +36 -0
- package/templates/default/src/components/ui/Photo.astro +46 -0
- package/templates/default/src/components/ui/Price.astro +24 -0
- package/templates/default/src/components/ui/ProductCard.astro +41 -0
- package/templates/default/src/components/ui/Rating.astro +22 -0
- package/templates/default/src/components/ui/Section.astro +34 -0
- package/templates/default/src/components/ui/SectionHeading.astro +19 -0
- package/templates/default/src/env.d.ts +23 -0
- package/templates/default/src/layouts/StoreLayout.astro +145 -0
- package/templates/default/src/lib/browser-copy.ts +37 -0
- package/templates/default/src/lib/context.ts +89 -0
- package/templates/default/src/lib/coupon-notice.ts +47 -0
- package/templates/default/src/lib/i18n.ts +32 -0
- package/templates/default/src/lib/images.ts +38 -0
- package/templates/default/src/lib/listing-query.ts +41 -0
- package/templates/default/src/lib/money.ts +16 -0
- package/templates/default/src/lib/motion.ts +16 -0
- package/templates/default/src/lib/nav.ts +26 -0
- package/templates/default/src/lib/offer-tiles.ts +105 -0
- package/templates/default/src/lib/order-outcome.ts +66 -0
- package/templates/default/src/lib/otp-message.ts +21 -0
- package/templates/default/src/lib/products.ts +38 -0
- package/templates/default/src/lib/review-refusals.ts +31 -0
- package/templates/default/src/lib/store.ts +31 -0
- package/templates/default/src/lib/whatsapp.ts +29 -0
- package/templates/default/src/middleware.ts +23 -0
- package/templates/default/src/pages/404.astro +22 -0
- package/templates/default/src/pages/api/abandoned/convert.ts +4 -0
- package/templates/default/src/pages/api/abandoned/upsert.ts +4 -0
- package/templates/default/src/pages/api/cart/validate.ts +4 -0
- package/templates/default/src/pages/api/communes/[wilayaId].ts +4 -0
- package/templates/default/src/pages/api/otp/send.ts +4 -0
- package/templates/default/src/pages/api/otp/verify.ts +4 -0
- package/templates/default/src/pages/api/reviews/[productId].ts +3 -0
- package/templates/default/src/pages/api/reviews/eligibility.ts +3 -0
- package/templates/default/src/pages/api/reviews/submit.ts +3 -0
- package/templates/default/src/pages/api/reviews/upload.ts +3 -0
- package/templates/default/src/pages/category/[slug].astro +20 -0
- package/templates/default/src/pages/checkout.astro +25 -0
- package/templates/default/src/pages/collections/[handle].astro +20 -0
- package/templates/default/src/pages/contact.astro +17 -0
- package/templates/default/src/pages/index.astro +9 -0
- package/templates/default/src/pages/lp/[slug].astro +47 -0
- package/templates/default/src/pages/pages/[slug].astro +16 -0
- package/templates/default/src/pages/products/[handle].astro +37 -0
- package/templates/default/src/pages/products/index.astro +15 -0
- package/templates/default/src/pages/robots.txt.ts +9 -0
- package/templates/default/src/pages/search.astro +19 -0
- package/templates/default/src/pages/sitemap.xml.ts +12 -0
- package/templates/default/src/pages/thank-you.astro +33 -0
- package/templates/default/src/pages/track-order.astro +17 -0
- package/templates/default/src/pages/wocart-preview.astro +43 -0
- package/templates/default/src/pages/wocart-revalidate.ts +10 -0
- package/templates/default/src/pages/wocart-styles.css.ts +5 -0
- package/templates/default/src/pages/wocart-theme.json.ts +5 -0
- package/templates/default/src/scripts/cart.ts +371 -0
- package/templates/default/src/scripts/checkout/coupon.ts +96 -0
- package/templates/default/src/scripts/checkout/delivery.ts +86 -0
- package/templates/default/src/scripts/checkout/form.ts +54 -0
- package/templates/default/src/scripts/checkout/otp.ts +106 -0
- package/templates/default/src/scripts/checkout/picker.ts +169 -0
- package/templates/default/src/scripts/checkout/quote.ts +169 -0
- package/templates/default/src/scripts/checkout/submit.ts +113 -0
- package/templates/default/src/scripts/checkout/tracking.ts +74 -0
- package/templates/default/src/scripts/countdown.ts +29 -0
- package/templates/default/src/scripts/events.ts +4 -0
- package/templates/default/src/scripts/hero.ts +49 -0
- package/templates/default/src/scripts/listing.ts +13 -0
- package/templates/default/src/scripts/order-form.ts +100 -0
- package/templates/default/src/scripts/product.ts +306 -0
- package/templates/default/src/scripts/public-config.ts +79 -0
- package/templates/default/src/scripts/reviews.ts +358 -0
- package/templates/default/src/scripts/site.ts +131 -0
- package/templates/default/src/scripts/thank-you.ts +11 -0
- package/templates/default/src/scripts/voice-note.ts +94 -0
- package/templates/default/src/styles/base.css +1030 -0
- package/templates/default/src/styles/checkout.css +1111 -0
- package/templates/default/src/styles/global.css +12 -0
- package/templates/default/src/styles/product.css +871 -0
- package/templates/default/src/styles/reviews.css +533 -0
- package/templates/default/src/styles/sections.css +931 -0
- package/templates/default/src/styles/shell.css +970 -0
- package/templates/default/src/styles/tokens.css +583 -0
- package/templates/default/src/theme/api-routes.ts +10 -0
- package/templates/default/src/theme/content/catalog.ts +117 -0
- package/templates/default/src/theme/content/checkout.ts +168 -0
- package/templates/default/src/theme/content/editor.ts +21 -0
- package/templates/default/src/theme/content/index.ts +45 -0
- package/templates/default/src/theme/content/reviews.ts +76 -0
- package/templates/default/src/theme/content/shell.ts +59 -0
- package/templates/default/src/theme/content/types.ts +12 -0
- package/templates/default/src/theme/documents/catalog.json +11 -0
- package/templates/default/src/theme/documents/category.json +11 -0
- package/templates/default/src/theme/documents/checkout.json +11 -0
- package/templates/default/src/theme/documents/collection.json +11 -0
- package/templates/default/src/theme/documents/contact.json +11 -0
- package/templates/default/src/theme/documents/footer.area.json +11 -0
- package/templates/default/src/theme/documents/header.area.json +16 -0
- package/templates/default/src/theme/documents/home.json +313 -0
- package/templates/default/src/theme/documents/landing.json +8 -0
- package/templates/default/src/theme/documents/page.json +11 -0
- package/templates/default/src/theme/documents/product.json +125 -0
- package/templates/default/src/theme/documents/search.json +11 -0
- package/templates/default/src/theme/documents/thank-you.json +11 -0
- package/templates/default/src/theme/documents/track-order.json +11 -0
- package/templates/default/src/theme/fields.ts +61 -0
- package/templates/default/src/theme/key.ts +11 -0
- package/templates/default/src/theme/labels.ts +231 -0
- package/templates/default/src/theme/locales.ts +11 -0
- package/templates/default/src/theme/palette.ts +14 -0
- package/templates/default/src/theme/sections/collection-cards.ts +65 -0
- package/templates/default/src/theme/sections/faq.ts +74 -0
- package/templates/default/src/theme/sections/featured-product.ts +42 -0
- package/templates/default/src/theme/sections/hero.ts +47 -0
- package/templates/default/src/theme/sections/image-banner.ts +25 -0
- package/templates/default/src/theme/sections/index.ts +40 -0
- package/templates/default/src/theme/sections/landing.ts +150 -0
- package/templates/default/src/theme/sections/listing.ts +84 -0
- package/templates/default/src/theme/sections/product-grid.ts +42 -0
- package/templates/default/src/theme/sections/product.ts +297 -0
- package/templates/default/src/theme/sections/rich-text.ts +39 -0
- package/templates/default/src/theme/sections/shared.ts +54 -0
- package/templates/default/src/theme/sections/shell.ts +85 -0
- package/templates/default/src/theme/sections/store-pages.ts +101 -0
- package/templates/default/src/theme/sections/testimonials.ts +61 -0
- package/templates/default/src/theme/sections/thank-you.ts +35 -0
- package/templates/default/src/theme/settings.ts +124 -0
- package/templates/default/src/theme/theme.ts +65 -0
- package/templates/default/tests/fixtures/canvas-tote.json +62 -0
- package/templates/default/tests/fixtures/linen-shirt.json +128 -0
- package/templates/default/tests/unit/checkout.test.ts +241 -0
- package/templates/default/tests/unit/contract.test.ts +169 -0
- package/templates/default/tests/unit/contrast.test.ts +68 -0
- package/templates/default/tests/unit/copy.test.ts +101 -0
- package/templates/default/tests/unit/design-values.test.ts +95 -0
- package/templates/default/tests/unit/editability.test.ts +180 -0
- package/templates/default/tests/unit/fixtures.ts +91 -0
- package/templates/default/tests/unit/footer.test.ts +54 -0
- package/templates/default/tests/unit/guards.test.ts +340 -0
- package/templates/default/tests/unit/images.test.ts +26 -0
- package/templates/default/tests/unit/landing.test.ts +151 -0
- package/templates/default/tests/unit/languages.test.ts +42 -0
- package/templates/default/tests/unit/middleware.test.ts +53 -0
- package/templates/default/tests/unit/offer-tiles.test.ts +75 -0
- package/templates/default/tests/unit/render.ts +38 -0
- package/templates/default/tests/unit/reviews.test.ts +25 -0
- package/templates/default/tests/unit/rules.test.ts +59 -0
- package/templates/default/tests/unit/source.ts +75 -0
- package/templates/default/tests/unit/store-pages.test.ts +147 -0
- package/templates/default/tests/unit/studio.test.ts +202 -0
- package/templates/default/tests/unit/testimonials.test.ts +52 -0
- package/templates/default/tests/unit/thank-you.test.ts +52 -0
- package/templates/default/tests/unit/tracking.test.ts +29 -0
- package/templates/default/tests/unit/voice-note.test.ts +42 -0
- package/templates/default/tsconfig.json +13 -0
- package/templates/default/vitest.config.ts +15 -0
- package/templates/default/wrangler.jsonc +17 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/** The words of the pages a shopper browses: home sections, listings, search, the product page, offers and landing pages. */
|
|
2
|
+
import type { Messages, Plurals } from "./types";
|
|
3
|
+
|
|
4
|
+
export const messages = {
|
|
5
|
+
"product.add": { ar: "أضف إلى السلة", fr: "Ajouter au panier", en: "Add to cart" },
|
|
6
|
+
"product.buy": { ar: "اشترِ الآن", fr: "Acheter maintenant", en: "Buy now" },
|
|
7
|
+
"product.order": { ar: "اطلب الآن", fr: "Commander", en: "Order now" },
|
|
8
|
+
"product.choose": { ar: "اختر الخيارات", fr: "Choisir", en: "Choose options" },
|
|
9
|
+
"product.soldOut": { ar: "نفدت الكمية", fr: "Épuisé", en: "Sold out" },
|
|
10
|
+
"product.from": { ar: "ابتداءً من", fr: "À partir de", en: "From" },
|
|
11
|
+
"product.save": { ar: "وفّر {percent}%", fr: "−{percent} %", en: "Save {percent}%" },
|
|
12
|
+
"product.quantity": { ar: "الكمية", fr: "Quantité", en: "Quantity" },
|
|
13
|
+
"product.variant": { ar: "{option}:", fr: "{option} :", en: "{option}:" },
|
|
14
|
+
"product.description": { ar: "الوصف", fr: "Description", en: "Description" },
|
|
15
|
+
"product.details": { ar: "التفاصيل", fr: "Détails", en: "Details" },
|
|
16
|
+
"product.category": { ar: "الفئة", fr: "Catégorie", en: "Category" },
|
|
17
|
+
"product.sku": { ar: "المرجع", fr: "Référence", en: "SKU" },
|
|
18
|
+
"product.tags": { ar: "الوسوم", fr: "Mots-clés", en: "Tags" },
|
|
19
|
+
"product.cod": { ar: "ادفع نقدًا عند استلام طلبك.", fr: "Payez en espèces à la réception.", en: "Pay in cash when your order arrives." },
|
|
20
|
+
"product.gallery": { ar: "صور المنتج", fr: "Photos du produit", en: "Product photos" },
|
|
21
|
+
"product.reviews": { ar: "آراء الزبائن", fr: "Avis clients", en: "Customer reviews" },
|
|
22
|
+
"product.reviewsEmpty": { ar: "لا توجد آراء بعد. كن أول من يكتب رأيه.", fr: "Pas encore d'avis. Soyez le premier.", en: "No reviews yet. Be the first." },
|
|
23
|
+
"product.verified": { ar: "شراء موثّق", fr: "Achat vérifié", en: "Verified purchase" },
|
|
24
|
+
"product.completeOrder": { ar: "اطلب الآن وادفع عند الاستلام", fr: "Commandez, payez à la livraison", en: "Order now, pay on delivery" },
|
|
25
|
+
"product.related": { ar: "قد يعجبك أيضًا", fr: "Vous aimerez aussi", en: "You may also like" },
|
|
26
|
+
"offer.title": { ar: "اختر العرض", fr: "Choisissez votre offre", en: "Choose your offer" },
|
|
27
|
+
"offer.single": { ar: "قطعة واحدة", fr: "Une pièce", en: "One piece" },
|
|
28
|
+
"offer.best": { ar: "الأوفر", fr: "Meilleure offre", en: "Best value" },
|
|
29
|
+
"offer.freeShipping": { ar: "توصيل مجاني", fr: "Livraison offerte", en: "Free delivery" },
|
|
30
|
+
"offer.saving": { ar: "توفر {amount}", fr: "Vous économisez {amount}", en: "You save {amount}" },
|
|
31
|
+
"offer.each": { ar: "{price} للقطعة", fr: "{price} la pièce", en: "{price} each" },
|
|
32
|
+
"offer.eachPiece": { ar: "اختر لكل قطعة:", fr: "Choisissez pour chaque pièce :", en: "Choose for each piece:" },
|
|
33
|
+
"offer.piece": { ar: "القطعة {n}", fr: "Pièce {n}", en: "Piece {n}" },
|
|
34
|
+
"home.collections.title": { ar: "تسوّق", fr: "Nos", en: "Shop by" },
|
|
35
|
+
"home.collections.accent": { ar: "حسب المجموعة", fr: "collections", en: "collection" },
|
|
36
|
+
"home.collections.subtitle": { ar: "كل منتجاتنا، مرتّبة لتجد ما تبحث عنه بسرعة.", fr: "Tous nos produits, rangés pour trouver vite ce que vous cherchez.", en: "All our products, sorted so you find what you need fast." },
|
|
37
|
+
"home.products.title": { ar: "الأكثر", fr: "Les plus", en: "Best" },
|
|
38
|
+
"home.products.accent": { ar: "طلبًا", fr: "demandés", en: "sellers" },
|
|
39
|
+
"home.products.subtitle": { ar: "منتجات مختارة من المتجر.", fr: "Une sélection de la boutique.", en: "A selection from the store." },
|
|
40
|
+
"home.banner.title": { ar: "عروض", fr: "Offres", en: "Seasonal" },
|
|
41
|
+
"home.banner.accent": { ar: "الموسم", fr: "du moment", en: "offers" },
|
|
42
|
+
"home.banner.subtitle": { ar: "اكتشف عروض المتجر، والدفع عند الاستلام.", fr: "Découvrez les offres de la boutique, payées à la livraison.", en: "See the store's offers, paid on delivery." },
|
|
43
|
+
"home.banner.cta": { ar: "اكتشف العرض", fr: "Voir l'offre", en: "Shop the offer" },
|
|
44
|
+
"home.featured.title": { ar: "اختيار", fr: "Coup de", en: "Pick of" },
|
|
45
|
+
"home.featured.accent": { ar: "الأسبوع", fr: "cœur", en: "the week" },
|
|
46
|
+
"home.testimonials.title": { ar: "آراء", fr: "L'avis de nos", en: "What customers" },
|
|
47
|
+
"home.testimonials.accent": { ar: "الزبائن", fr: "clients", en: "say" },
|
|
48
|
+
"home.testimonials.subtitle": { ar: "ما يقوله من طلب قبلك.", fr: "Ce qu'en disent ceux qui ont commandé avant vous.", en: "What people who ordered before you say." },
|
|
49
|
+
"home.faq.title": { ar: "أسئلة", fr: "Questions", en: "Common" },
|
|
50
|
+
"home.faq.accent": { ar: "شائعة", fr: "fréquentes", en: "questions" },
|
|
51
|
+
"home.faq.subtitle": { ar: "كل ما تريد معرفته قبل أن تطلب.", fr: "Tout ce qu'il faut savoir avant de commander.", en: "Everything to know before you order." },
|
|
52
|
+
"collection.subtitle": { ar: "تصفّح كل منتجات المتجر.", fr: "Parcourez tous les produits de la boutique.", en: "Browse every product in the store." },
|
|
53
|
+
"collection.all": { ar: "الكل", fr: "Tout", en: "All" },
|
|
54
|
+
"collection.empty": { ar: "لا توجد منتجات هنا بعد.", fr: "Aucun produit ici pour l'instant.", en: "No products here yet." },
|
|
55
|
+
"listing.page": { ar: "الصفحة {page}", fr: "Page {page}", en: "Page {page}" },
|
|
56
|
+
"listing.pageOf": { ar: "الصفحة {page} من {pages}", fr: "Page {page} sur {pages}", en: "Page {page} of {pages}" },
|
|
57
|
+
"listing.sort": { ar: "الترتيب", fr: "Trier par", en: "Sort by" },
|
|
58
|
+
"listing.sort.default": { ar: "المقترحة", fr: "Recommandés", en: "Recommended" },
|
|
59
|
+
"listing.sort.newest": { ar: "الأحدث", fr: "Nouveautés", en: "Newest" },
|
|
60
|
+
"listing.sort.priceAscending": { ar: "السعر: من الأقل إلى الأعلى", fr: "Prix croissant", en: "Price: low to high" },
|
|
61
|
+
"listing.sort.priceDescending": { ar: "السعر: من الأعلى إلى الأقل", fr: "Prix décroissant", en: "Price: high to low" },
|
|
62
|
+
"listing.sort.apply": { ar: "تطبيق", fr: "Appliquer", en: "Apply" },
|
|
63
|
+
"search.title": { ar: "البحث", fr: "Recherche", en: "Search" },
|
|
64
|
+
"search.placeholder": { ar: "ابحث عن منتج…", fr: "Rechercher un produit…", en: "Search products…" },
|
|
65
|
+
"search.submit": { ar: "بحث", fr: "Rechercher", en: "Search" },
|
|
66
|
+
"search.empty": { ar: "لا توجد نتائج مطابقة.", fr: "Aucun résultat.", en: "No matching products." },
|
|
67
|
+
"search.hint": { ar: "ابحث باسم المنتج.", fr: "Cherchez par nom de produit.", en: "Search by product name." },
|
|
68
|
+
"countdown.title": { ar: "ينتهي العرض بعد", fr: "L'offre se termine dans", en: "Offer ends in" },
|
|
69
|
+
"countdown.days": { ar: "يوم", fr: "jours", en: "days" },
|
|
70
|
+
"countdown.hours": { ar: "ساعة", fr: "heures", en: "hours" },
|
|
71
|
+
"countdown.minutes": { ar: "دقيقة", fr: "min", en: "min" },
|
|
72
|
+
"countdown.seconds": { ar: "ثانية", fr: "sec", en: "sec" },
|
|
73
|
+
"landing.steps.title": { ar: "اطلب", fr: "Commandez", en: "Order" },
|
|
74
|
+
"landing.steps.accent": { ar: "في 3 خطوات", fr: "en 3 étapes", en: "in 3 steps" },
|
|
75
|
+
"landing.steps.subtitle": { ar: "لا شيء تدفعه الآن: تدفع عند الاستلام.", fr: "Rien à payer maintenant : vous payez à la livraison.", en: "Nothing to pay now: you pay on delivery." },
|
|
76
|
+
"contact.title": { ar: "تواصل معنا", fr: "Contactez-nous", en: "Get in touch" },
|
|
77
|
+
"contact.body": { ar: "سؤال عن منتج أو عن طلب؟ تواصل مع المتجر من هنا.", fr: "Une question sur un produit ou une commande ? Contactez la boutique ici.", en: "A question about a product or an order? Reach the store here." },
|
|
78
|
+
"contact.whatsapp": { ar: "واتساب", fr: "WhatsApp", en: "WhatsApp" },
|
|
79
|
+
"contact.email": { ar: "البريد الإلكتروني", fr: "E-mail", en: "Email" },
|
|
80
|
+
"contact.phone": { ar: "الهاتف", fr: "Téléphone", en: "Phone" },
|
|
81
|
+
"contact.address": { ar: "العنوان", fr: "Adresse", en: "Address" },
|
|
82
|
+
"contact.hoursTitle": { ar: "أوقات العمل", fr: "Horaires", en: "Opening hours" },
|
|
83
|
+
"contact.none": { ar: "لم يضف المتجر بعد طريقة للتواصل معه.", fr: "La boutique n'a pas encore indiqué comment la joindre.", en: "The store has not shared a way to reach it yet." },
|
|
84
|
+
} satisfies Messages;
|
|
85
|
+
|
|
86
|
+
export const plurals = {
|
|
87
|
+
"reviews.count": {
|
|
88
|
+
ar: { zero: "لا آراء", one: "رأي واحد", two: "رأيان", few: "{count} آراء", many: "{count} رأيًا", other: "{count} رأي" },
|
|
89
|
+
fr: { one: "{count} avis", many: "{count} d'avis", other: "{count} avis" },
|
|
90
|
+
en: { one: "{count} review", other: "{count} reviews" },
|
|
91
|
+
},
|
|
92
|
+
"product.lowStock": {
|
|
93
|
+
ar: { zero: "نفدت الكمية", one: "بقيت قطعة واحدة فقط!", two: "بقيت قطعتان فقط!", few: "بقيت {count} قطع فقط!", many: "بقيت {count} قطعة فقط!", other: "بقيت {count} قطعة فقط!" },
|
|
94
|
+
fr: { one: "Plus qu'une pièce !", many: "Plus que {count} pièces !", other: "Plus que {count} pièces !" },
|
|
95
|
+
en: { one: "Only 1 left!", other: "Only {count} left!" },
|
|
96
|
+
},
|
|
97
|
+
"collection.count": {
|
|
98
|
+
ar: { zero: "لا منتجات", one: "منتج واحد", two: "منتجان", few: "{count} منتجات", many: "{count} منتجًا", other: "{count} منتج" },
|
|
99
|
+
fr: { one: "{count} produit", many: "{count} de produits", other: "{count} produits" },
|
|
100
|
+
en: { one: "{count} product", other: "{count} products" },
|
|
101
|
+
},
|
|
102
|
+
"offer.quantity": {
|
|
103
|
+
ar: { zero: "بلا قطع", one: "قطعة واحدة", two: "قطعتان", few: "{count} قطع", many: "{count} قطعة", other: "{count} قطعة" },
|
|
104
|
+
fr: { one: "{count} pièce", many: "{count} de pièces", other: "{count} pièces" },
|
|
105
|
+
en: { one: "{count} piece", other: "{count} pieces" },
|
|
106
|
+
},
|
|
107
|
+
"offer.gift": {
|
|
108
|
+
ar: { zero: "+ {product} هدية", one: "+ {product} هدية", two: "+ قطعتان من {product} هدية", few: "+ {count} قطع من {product} هدية", many: "+ {count} قطعة من {product} هدية", other: "+ {count} قطعة من {product} هدية" },
|
|
109
|
+
fr: { one: "+ {product} offert", many: "+ {count} {product} offerts", other: "+ {count} {product} offerts" },
|
|
110
|
+
en: { one: "+ {product} free", other: "+ {count} × {product} free" },
|
|
111
|
+
},
|
|
112
|
+
"search.results": {
|
|
113
|
+
ar: { zero: "لا نتائج لـ «{query}»", one: "نتيجة واحدة لـ «{query}»", two: "نتيجتان لـ «{query}»", few: "{count} نتائج لـ «{query}»", many: "{count} نتيجة لـ «{query}»", other: "{count} نتيجة لـ «{query}»" },
|
|
114
|
+
fr: { one: "{count} résultat pour « {query} »", many: "{count} de résultats pour « {query} »", other: "{count} résultats pour « {query} »" },
|
|
115
|
+
en: { one: "{count} result for “{query}”", other: "{count} results for “{query}”" },
|
|
116
|
+
},
|
|
117
|
+
} satisfies Plurals;
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +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>>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/** The words of reviews: the list, the form, photos and voice notes, and every refusal. */
|
|
2
|
+
import type { Messages, Plurals } from "./types";
|
|
3
|
+
|
|
4
|
+
export const messages = {
|
|
5
|
+
"reviews.write": { ar: "اكتب رأيك", fr: "Donner mon avis", en: "Write a review" },
|
|
6
|
+
"reviews.more": { ar: "عرض المزيد من الآراء", fr: "Voir plus d'avis", en: "Show more reviews" },
|
|
7
|
+
"reviews.play": { ar: "تشغيل الرسالة الصوتية", fr: "Écouter le message vocal", en: "Play voice note" },
|
|
8
|
+
"reviews.pause": { ar: "إيقاف مؤقت", fr: "Pause", en: "Pause" },
|
|
9
|
+
"reviews.voice": { ar: "رسالة صوتية", fr: "Message vocal", en: "Voice note" },
|
|
10
|
+
"reviews.voiceSeek": { ar: "موضع التشغيل", fr: "Position de lecture", en: "Playback position" },
|
|
11
|
+
"reviews.voicePosition": { ar: "{elapsed} من {total}", fr: "{elapsed} sur {total}", en: "{elapsed} of {total}" },
|
|
12
|
+
"reviews.voiceError": { ar: "تعذّر تشغيل الرسالة الصوتية.", fr: "Impossible de lire le message vocal.", en: "The voice note could not be played." },
|
|
13
|
+
"reviews.voiceRetry": { ar: "إعادة المحاولة", fr: "Réessayer", en: "Try again" },
|
|
14
|
+
"reviews.photos": { ar: "الصور", fr: "Photos", en: "Photos" },
|
|
15
|
+
"reviews.openPhoto": { ar: "عرض الصورة كاملة", fr: "Agrandir la photo", en: "Open the photo" },
|
|
16
|
+
"reviews.findLead": { ar: "أدخل رقم طلبك ورقم الهاتف الذي طلبت به. يمكنك كتابة رأيك بعد استلام الطلب.", fr: "Saisissez votre numéro de commande et le téléphone utilisé. Vous pouvez donner votre avis après la livraison.", en: "Enter your order number and the phone you ordered with. You can review once it's delivered." },
|
|
17
|
+
"reviews.orderNumber": { ar: "رقم الطلب", fr: "Numéro de commande", en: "Order number" },
|
|
18
|
+
"reviews.findOrder": { ar: "متابعة", fr: "Continuer", en: "Continue" },
|
|
19
|
+
"reviews.orderFound": { ar: "الطلب {order}", fr: "Commande {order}", en: "Order {order}" },
|
|
20
|
+
"reviews.changeOrder": { ar: "تغيير", fr: "Modifier", en: "Change" },
|
|
21
|
+
"reviews.whichProduct": { ar: "أي منتج؟", fr: "Quel produit ?", en: "Which product?" },
|
|
22
|
+
"reviews.alreadyReviewed": { ar: "تم تقييمه", fr: "Déjà noté", en: "Already reviewed" },
|
|
23
|
+
"reviews.yourRating": { ar: "تقييمك", fr: "Votre note", en: "Your rating" },
|
|
24
|
+
"reviews.title": { ar: "العنوان", fr: "Titre", en: "Title" },
|
|
25
|
+
"reviews.body": { ar: "رأيك", fr: "Votre avis", en: "Your review" },
|
|
26
|
+
"reviews.voiceInstead": { ar: "يمكن للرسالة الصوتية أن تغني عن النص.", fr: "Un message vocal peut remplacer le texte.", en: "A voice note can stand in for the text." },
|
|
27
|
+
"reviews.addPhotos": { ar: "أضف صورًا", fr: "Ajouter des photos", en: "Add photos" },
|
|
28
|
+
"reviews.record": { ar: "سجّل رسالة", fr: "Enregistrer", en: "Record" },
|
|
29
|
+
"reviews.stop": { ar: "إيقاف", fr: "Arrêter", en: "Stop" },
|
|
30
|
+
"reviews.sendAudio": { ar: "أرسل ملفًا صوتيًا", fr: "Joindre un audio", en: "Attach audio" },
|
|
31
|
+
"reviews.send": { ar: "نشر رأيي", fr: "Publier mon avis", en: "Post my review" },
|
|
32
|
+
"reviews.sending": { ar: "جارٍ الإرسال…", fr: "Envoi…", en: "Sending…" },
|
|
33
|
+
"reviews.notSent": { ar: "لم يُرسل", fr: "Non envoyé", en: "Not sent" },
|
|
34
|
+
"reviews.errorOrder": { ar: "لم نجد طلبًا بهذا الرقم وهذا الهاتف.", fr: "Aucune commande avec ce numéro et ce téléphone.", en: "No order matches that number and phone." },
|
|
35
|
+
"reviews.errorOrderFormat": { ar: "تحقّق من رقم الطلب كما وصلك، مثل ORD-20261023-0042.", fr: "Vérifiez le numéro tel que vous l'avez reçu, par exemple ORD-20261023-0042.", en: "Check the order number as you received it, like ORD-20261023-0042." },
|
|
36
|
+
"reviews.errorNotDelivered": { ar: "يمكنك تقييم الطلب بعد استلامه.", fr: "Vous pourrez donner votre avis après la livraison.", en: "You can review the order once it's delivered." },
|
|
37
|
+
"reviews.errorRateLimited": { ar: "محاولات كثيرة، أعد المحاولة بعد قليل.", fr: "Trop d'essais, réessayez dans un moment.", en: "Too many tries — please wait a moment." },
|
|
38
|
+
"reviews.errorDuplicate": { ar: "سبق أن قيّمت هذا المنتج.", fr: "Vous avez déjà noté ce produit.", en: "You've already reviewed this product." },
|
|
39
|
+
"reviews.errorFileType": { ar: "هذا النوع من الملفات غير مقبول.", fr: "Ce type de fichier n'est pas accepté.", en: "This file type isn't accepted." },
|
|
40
|
+
"reviews.errorFileSize": { ar: "الملف كبير جدًا.", fr: "Le fichier est trop lourd.", en: "The file is too large." },
|
|
41
|
+
"reviews.errorDisabled": { ar: "هذا المتجر لا يستقبل الآراء حاليًا.", fr: "Cette boutique ne reçoit pas d'avis pour le moment.", en: "This store isn't taking reviews right now." },
|
|
42
|
+
"reviews.errorProduct": { ar: "لا يمكن تقييم هذا المنتج من هذا الطلب.", fr: "Ce produit ne peut pas être noté depuis cette commande.", en: "This product can't be reviewed from this order." },
|
|
43
|
+
"reviews.errorGrant": { ar: "انتهت مهلة إرسال الملفات، أعد البحث عن طلبك.", fr: "Le délai d'envoi des fichiers est passé : retrouvez votre commande.", en: "The time to send files has run out — find your order again." },
|
|
44
|
+
"reviews.errorUploadMissing": { ar: "لم يصل أحد الملفات، أرسله من جديد.", fr: "Un fichier n'est pas arrivé : envoyez-le à nouveau.", en: "A file didn't arrive — send it again." },
|
|
45
|
+
"reviews.errorMediaLimit": { ar: "يتجاوز هذا عدد الصور أو التسجيلات المسموح به.", fr: "C'est plus de photos ou de messages vocaux que la boutique n'en accepte.", en: "That's more photos or voice notes than the store takes." },
|
|
46
|
+
"reviews.errorGeneric": { ar: "حدث خطأ، أعد المحاولة.", fr: "Une erreur est survenue, réessayez.", en: "Something went wrong — try again." },
|
|
47
|
+
"reviews.nothingLeft": { ar: "قيّمت كل منتجات هذا الطلب، شكرًا لك!", fr: "Vous avez noté tous les produits de cette commande, merci !", en: "You've reviewed everything in this order — thank you!" },
|
|
48
|
+
"reviews.micDenied": { ar: "لم نتمكن من استعمال الميكروفون.", fr: "Le micro n'est pas accessible.", en: "We couldn't use the microphone." },
|
|
49
|
+
"reviews.ratingRequired": { ar: "اختر عدد النجوم.", fr: "Choisissez une note.", en: "Choose a rating." },
|
|
50
|
+
"reviews.waitUploads": { ar: "انتظر حتى تُرسل كل الملفات.", fr: "Attendez la fin de l'envoi des fichiers.", en: "Wait until every file is sent." },
|
|
51
|
+
"reviews.thanksPublished": { ar: "شكرًا! رأيك منشور الآن.", fr: "Merci ! Votre avis est publié.", en: "Thank you! Your review is live." },
|
|
52
|
+
"reviews.thanksPending": { ar: "شكرًا! سيظهر رأيك بعد مراجعته.", fr: "Merci ! Votre avis paraîtra après vérification.", en: "Thank you! Your review will appear once checked." },
|
|
53
|
+
} satisfies Messages;
|
|
54
|
+
|
|
55
|
+
export const plurals = {
|
|
56
|
+
"reviews.photosLimit": {
|
|
57
|
+
ar: { zero: "(بلا صور)", one: "(صورة واحدة كحد أقصى)", two: "(صورتان كحد أقصى)", few: "(حتى {count} صور)", many: "(حتى {count} صورة)", other: "(حتى {count} صورة)" },
|
|
58
|
+
fr: { one: "(une photo max.)", many: "(jusqu'à {count} photos)", other: "(jusqu'à {count} photos)" },
|
|
59
|
+
en: { one: "(one photo at most)", other: "(up to {count} photos)" },
|
|
60
|
+
},
|
|
61
|
+
"reviews.tooManyPhotos": {
|
|
62
|
+
ar: { zero: "لا تُقبل الصور.", one: "صورة واحدة فقط.", two: "صورتان فقط.", few: "{count} صور فقط.", many: "{count} صورة فقط.", other: "{count} صورة فقط." },
|
|
63
|
+
fr: { one: "Une photo seulement.", many: "{count} photos maximum.", other: "{count} photos maximum." },
|
|
64
|
+
en: { one: "One photo only.", other: "{count} photos at most." },
|
|
65
|
+
},
|
|
66
|
+
"reviews.tooShort": {
|
|
67
|
+
ar: { zero: "اكتب رأيك أو سجّل رسالة صوتية.", one: "اكتب حرفًا واحدًا على الأقل أو سجّل رسالة صوتية.", two: "اكتب حرفين على الأقل أو سجّل رسالة صوتية.", few: "اكتب {count} أحرف على الأقل أو سجّل رسالة صوتية.", many: "اكتب {count} حرفًا على الأقل أو سجّل رسالة صوتية.", other: "اكتب {count} حرف على الأقل أو سجّل رسالة صوتية." },
|
|
68
|
+
fr: { one: "Écrivez au moins {count} caractère ou enregistrez un message.", many: "Écrivez au moins {count} caractères ou enregistrez un message.", other: "Écrivez au moins {count} caractères ou enregistrez un message." },
|
|
69
|
+
en: { one: "Write at least {count} character or record a voice note.", other: "Write at least {count} characters or record a voice note." },
|
|
70
|
+
},
|
|
71
|
+
"reviews.voiceLimit": {
|
|
72
|
+
ar: { zero: "(بلا تسجيل)", one: "(ثانية واحدة)", two: "(ثانيتان كحد أقصى)", few: "(حتى {count} ثوانٍ)", many: "(حتى {count} ثانية)", other: "(حتى {count} ثانية)" },
|
|
73
|
+
fr: { one: "(une seconde max.)", many: "(jusqu'à {count} secondes)", other: "(jusqu'à {count} secondes)" },
|
|
74
|
+
en: { one: "(one second at most)", other: "(up to {count} seconds)" },
|
|
75
|
+
},
|
|
76
|
+
} satisfies Plurals;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** The words every page shares: the header, the footer, menus, buttons and accessibility labels. */
|
|
2
|
+
import type { Messages, Plurals } from "./types";
|
|
3
|
+
|
|
4
|
+
export const messages = {
|
|
5
|
+
"brand.tagline": { ar: "اطلب عبر الإنترنت وادفع عند الاستلام.", fr: "Commandez en ligne, payez à la livraison.", en: "Order online, pay on delivery." },
|
|
6
|
+
"nav.home": { ar: "الرئيسية", fr: "Accueil", en: "Home" },
|
|
7
|
+
"nav.shop": { ar: "كل المنتجات", fr: "Tous les produits", en: "All products" },
|
|
8
|
+
"nav.contact": { ar: "اتصل بنا", fr: "Contact", en: "Contact" },
|
|
9
|
+
"nav.search": { ar: "البحث", fr: "Rechercher", en: "Search" },
|
|
10
|
+
"nav.menu": { ar: "القائمة", fr: "Menu", en: "Menu" },
|
|
11
|
+
"nav.language": { ar: "اللغة", fr: "Langue", en: "Language" },
|
|
12
|
+
"nav.skip": { ar: "انتقل إلى المحتوى", fr: "Aller au contenu", en: "Skip to content" },
|
|
13
|
+
"common.loading": { ar: "جارٍ التحميل…", fr: "Chargement…", en: "Loading…" },
|
|
14
|
+
"common.retry": { ar: "أعد المحاولة", fr: "Réessayer", en: "Try again" },
|
|
15
|
+
"common.viewAll": { ar: "عرض الكل", fr: "Tout voir", en: "View all" },
|
|
16
|
+
"common.shopNow": { ar: "تسوق الآن", fr: "Découvrir", en: "Shop now" },
|
|
17
|
+
"common.continueShopping": { ar: "متابعة التسوق", fr: "Continuer mes achats", en: "Continue shopping" },
|
|
18
|
+
"common.optional": { ar: "اختياري", fr: "facultatif", en: "optional" },
|
|
19
|
+
"common.close": { ar: "إغلاق", fr: "Fermer", en: "Close" },
|
|
20
|
+
"common.previous": { ar: "السابق", fr: "Précédent", en: "Previous" },
|
|
21
|
+
"common.next": { ar: "التالي", fr: "Suivant", en: "Next" },
|
|
22
|
+
"common.backToTop": { ar: "العودة إلى الأعلى", fr: "Retour en haut", en: "Back to top" },
|
|
23
|
+
"common.inStock": { ar: "متوفر", fr: "En stock", en: "In stock" },
|
|
24
|
+
"a11y.breadcrumb": { ar: "مسار التنقل", fr: "Fil d'Ariane", en: "Breadcrumb" },
|
|
25
|
+
"a11y.pagination": { ar: "الصفحات", fr: "Pagination", en: "Pagination" },
|
|
26
|
+
"a11y.categories": { ar: "الفئات", fr: "Catégories", en: "Categories" },
|
|
27
|
+
"a11y.featured": { ar: "العروض المميزة", fr: "À la une", en: "Featured" },
|
|
28
|
+
"a11y.slides": { ar: "الشرائح", fr: "Diapositives", en: "Slides" },
|
|
29
|
+
"a11y.slide": { ar: "الشريحة {n}", fr: "Diapositive {n}", en: "Slide {n}" },
|
|
30
|
+
"a11y.previousSlide": { ar: "الشريحة السابقة", fr: "Diapositive précédente", en: "Previous slide" },
|
|
31
|
+
"a11y.nextSlide": { ar: "الشريحة التالية", fr: "Diapositive suivante", en: "Next slide" },
|
|
32
|
+
"a11y.photoOf": { ar: "الصورة {n} من {total}", fr: "Photo {n} sur {total}", en: "Photo {n} of {total}" },
|
|
33
|
+
"a11y.rating": { ar: "التقييم {rating} من 5", fr: "Note : {rating} sur 5", en: "Rated {rating} out of 5" },
|
|
34
|
+
"header.cart": { ar: "سلة التسوق", fr: "Panier", en: "Shopping cart" },
|
|
35
|
+
"header.openMenu": { ar: "فتح القائمة", fr: "Ouvrir le menu", en: "Open menu" },
|
|
36
|
+
"header.closeMenu": { ar: "إغلاق القائمة", fr: "Fermer le menu", en: "Close menu" },
|
|
37
|
+
"nav.track": { ar: "تتبّع طلبي", fr: "Suivre ma commande", en: "Track my order" },
|
|
38
|
+
"page.backHome": { ar: "العودة إلى الرئيسية", fr: "Retour à l'accueil", en: "Back to home" },
|
|
39
|
+
"page.notFound": { ar: "الصفحة غير موجودة", fr: "Page introuvable", en: "Page not found" },
|
|
40
|
+
"page.notFoundBody": { ar: "الرابط غير موجود أو تغيّر.", fr: "Ce lien n'existe pas ou a changé.", en: "This link doesn't exist or has changed." },
|
|
41
|
+
"footer.about": { ar: "اطلب عبر الإنترنت وادفع نقدًا عند استلام طلبك.", fr: "Commandez en ligne et payez en espèces à la réception.", en: "Order online and pay in cash when your order arrives." },
|
|
42
|
+
"footer.shop": { ar: "المتجر", fr: "Boutique", en: "Shop" },
|
|
43
|
+
"footer.collection.new-arrivals": { ar: "وصل حديثًا", fr: "Nouveautés", en: "New arrivals" },
|
|
44
|
+
"footer.collection.best-sellers": { ar: "الأكثر مبيعًا", fr: "Meilleures ventes", en: "Best sellers" },
|
|
45
|
+
"footer.collection.featured": { ar: "مختارات", fr: "Sélection", en: "Featured" },
|
|
46
|
+
"footer.help": { ar: "المساعدة", fr: "Aide", en: "Help" },
|
|
47
|
+
"footer.contact": { ar: "تواصل معنا", fr: "Contact", en: "Contact" },
|
|
48
|
+
"footer.rights": { ar: "© {year} {store}. جميع الحقوق محفوظة.", fr: "© {year} {store}. Tous droits réservés.", en: "© {year} {store}. All rights reserved." },
|
|
49
|
+
"footer.payment": { ar: "الدفع عند الاستلام", fr: "Paiement à la livraison", en: "Cash on delivery" },
|
|
50
|
+
"whatsapp.label": { ar: "تواصل معنا عبر واتساب", fr: "Écrivez-nous sur WhatsApp", en: "Chat with us on WhatsApp" },
|
|
51
|
+
"whatsapp.product": { ar: "مرحبًا، أريد الاستفسار عن {product}.", fr: "Bonjour, je me renseigne sur {product}.", en: "Hello, I'd like to ask about {product}." },
|
|
52
|
+
"whatsapp.order": { ar: "مرحبًا، بخصوص الطلب {order}.", fr: "Bonjour, au sujet de la commande {order}.", en: "Hello, about order {order}." },
|
|
53
|
+
"whatsapp.general": { ar: "مرحبًا، أحتاج مساعدة.", fr: "Bonjour, j'ai besoin d'aide.", en: "Hello, I need some help." },
|
|
54
|
+
"whatsapp.caption": { ar: "خدمة العملاء", fr: "Service client", en: "Customer service" },
|
|
55
|
+
"whatsapp.welcome": { ar: "مرحبًا! كيف يمكننا مساعدتك؟", fr: "Bonjour ! Comment pouvons-nous vous aider ?", en: "Hello! How can we help you?" },
|
|
56
|
+
} satisfies Messages;
|
|
57
|
+
|
|
58
|
+
export const plurals = {
|
|
59
|
+
} satisfies Plurals;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluralCategory } from "@abcart/theme/messages";
|
|
2
|
+
import type { Locale } from "../locales";
|
|
3
|
+
|
|
4
|
+
/** One piece of text, in every language the theme speaks. */
|
|
5
|
+
export type Messages = Record<string, Record<Locale, string>>;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A count, in each language's own plural forms (CLDR): Arabic uses six
|
|
9
|
+
* (`zero`, `one`, `two`, `few`, `many`, `other`), French three, English two.
|
|
10
|
+
* `{count}` and any other `{name}` are filled in when the text is shown.
|
|
11
|
+
*/
|
|
12
|
+
export type Plurals = Record<string, Record<Locale, Partial<Record<PluralCategory, string>>>>;
|