AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

text.ts 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /**
  2. * The few words the storefront's built-in pages need, in each store language.
  3. * Section text comes from the store plan; this is only for pages we build ourselves.
  4. */
  5. const words = {
  6. en: {
  7. shop: 'Shop',
  8. allProducts: 'All products',
  9. viewAll: 'View all',
  10. soldOut: 'Sold out',
  11. inStock: 'In stock',
  12. addToCart: 'Add to cart',
  13. quantity: 'Quantity',
  14. added: 'Added to your cart.',
  15. viewCart: 'View cart',
  16. cart: 'Cart',
  17. yourCart: 'Your cart',
  18. cartEmpty: 'Your cart is empty.',
  19. continueShopping: 'Continue shopping',
  20. remove: 'Remove',
  21. decrease: 'Decrease quantity',
  22. increase: 'Increase quantity',
  23. subtotal: 'Subtotal',
  24. shippingNote: 'Shipping is worked out at checkout.',
  25. checkout: 'Checkout',
  26. contactDetails: 'Your details',
  27. deliveryAddress: 'Delivery address',
  28. fullName: 'Full name',
  29. email: 'Email',
  30. phone: 'Phone number',
  31. addressLine1: 'Address',
  32. addressLine2: 'Unit, floor, building (optional)',
  33. city: 'City',
  34. postcode: 'Postcode',
  35. state: 'State',
  36. chooseState: 'Choose a state',
  37. orderSummary: 'Order summary',
  38. total: 'Total',
  39. payNow: 'Continue to payment',
  40. paySecure: 'You will pay on a secure Stripe page.',
  41. backToCart: 'Back to cart',
  42. thankYou: 'Thank you for your order',
  43. orderPaid: (number: number, email: string) =>
  44. `Order #${number} is paid. We sent a confirmation to ${email}.`,
  45. orderPendingTitle: 'Payment not completed',
  46. orderPending: (number: number) =>
  47. `Order #${number} has not been paid yet. Your cart is still saved, so you can try again.`,
  48. deliverTo: 'Deliver to',
  49. quantityShort: 'Qty',
  50. cartAdjusted:
  51. 'Some items changed because stock ran low. Please check your cart.',
  52. onlyLeft: (count: number) => `Only ${count} left`,
  53. cartCount: (count: number) =>
  54. count === 1 ? 'Cart, 1 item' : `Cart, ${count} items`,
  55. backToShop: 'Back to shop',
  56. noProducts: 'No products yet. Please check back soon.',
  57. productCount: (count: number) =>
  58. count === 1 ? '1 product' : `${count} products`,
  59. },
  60. ms: {
  61. shop: 'Kedai',
  62. allProducts: 'Semua produk',
  63. viewAll: 'Lihat semua',
  64. soldOut: 'Habis dijual',
  65. inStock: 'Ada stok',
  66. addToCart: 'Tambah ke troli',
  67. quantity: 'Kuantiti',
  68. added: 'Ditambah ke troli anda.',
  69. viewCart: 'Lihat troli',
  70. cart: 'Troli',
  71. yourCart: 'Troli anda',
  72. cartEmpty: 'Troli anda kosong.',
  73. continueShopping: 'Teruskan membeli-belah',
  74. remove: 'Buang',
  75. decrease: 'Kurangkan kuantiti',
  76. increase: 'Tambah kuantiti',
  77. subtotal: 'Jumlah kecil',
  78. shippingNote: 'Kos penghantaran dikira semasa pembayaran.',
  79. checkout: 'Bayar',
  80. contactDetails: 'Butiran anda',
  81. deliveryAddress: 'Alamat penghantaran',
  82. fullName: 'Nama penuh',
  83. email: 'E-mel',
  84. phone: 'Nombor telefon',
  85. addressLine1: 'Alamat',
  86. addressLine2: 'Unit, tingkat, bangunan (pilihan)',
  87. city: 'Bandar',
  88. postcode: 'Poskod',
  89. state: 'Negeri',
  90. chooseState: 'Pilih negeri',
  91. orderSummary: 'Ringkasan pesanan',
  92. total: 'Jumlah',
  93. payNow: 'Teruskan ke pembayaran',
  94. paySecure: 'Anda akan membayar di halaman Stripe yang selamat.',
  95. backToCart: 'Kembali ke troli',
  96. thankYou: 'Terima kasih atas pesanan anda',
  97. orderPaid: (number: number, email: string) =>
  98. `Pesanan #${number} telah dibayar. Pengesahan dihantar ke ${email}.`,
  99. orderPendingTitle: 'Pembayaran belum selesai',
  100. orderPending: (number: number) =>
  101. `Pesanan #${number} belum dibayar. Troli anda masih disimpan, jadi anda boleh cuba lagi.`,
  102. deliverTo: 'Hantar ke',
  103. quantityShort: 'Kuantiti',
  104. cartAdjusted:
  105. 'Beberapa item berubah kerana stok berkurangan. Sila semak troli anda.',
  106. onlyLeft: (count: number) => `Tinggal ${count} sahaja`,
  107. cartCount: (count: number) => `Troli, ${count} item`,
  108. backToShop: 'Kembali ke kedai',
  109. noProducts: 'Belum ada produk. Sila datang semula nanti.',
  110. productCount: (count: number) => `${count} produk`,
  111. },
  112. };
  113. export type StorefrontWords = (typeof words)['en'];
  114. export function storefrontText(language: string): StorefrontWords {
  115. return language === 'ms' ? words.ms : words.en;
  116. }