ts-glitter 17.2.8 → 17.3.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/lowcode/Entry.js CHANGED
@@ -89,7 +89,7 @@ export class Entry {
89
89
  }
90
90
  window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : clockF();
91
91
  console.log(`Entry-time:`, window.renderClock.stop());
92
- glitter.share.editerVersion = 'V_17.2.8';
92
+ glitter.share.editerVersion = 'V_17.3.0';
93
93
  glitter.share.start = new Date();
94
94
  const vm = {
95
95
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -90,7 +90,7 @@ export class Entry {
90
90
  }
91
91
  (window as any).renderClock = (window as any).renderClock ?? clockF();
92
92
  console.log(`Entry-time:`, (window as any).renderClock.stop());
93
- glitter.share.editerVersion = 'V_17.2.8';
93
+ glitter.share.editerVersion = 'V_17.3.0';
94
94
  glitter.share.start = new Date();
95
95
  const vm: {
96
96
  appConfig: any;
@@ -514,6 +514,27 @@ export class ShoppingInformation {
514
514
  />
515
515
  </div>
516
516
  </div>
517
+ <div class="d-flex flex-column mt-2" style="gap:8px;">
518
+ <div style="color: #393939;font-size: 16px;">預設顯示幣別</div>
519
+ <div style="color: #8D8D8D;font-size:13px;">
520
+ 當查無相關幣別支援國家,前台將預設使用此幣別進行顯示
521
+ </div>
522
+ <div class="d-flex align-items-center justify-content-center">
523
+ ${BgWidget.select({
524
+ gvc: gvc,
525
+ callback: (text) => {
526
+ vm.data.currency_code_f_def = text;
527
+ },
528
+ default: vm.data.currency_code_f_def,
529
+ options: Currency.code.map((dd) => {
530
+ return {
531
+ key: dd.currency_code,
532
+ value: dd.currency_title
533
+ };
534
+ })
535
+ })}
536
+ </div>
537
+ </div>
517
538
  ${vm.data.multi_currency ? `<div class="d-flex flex-column " style="gap:8px;">
518
539
  <div style="color: #393939;font-size: 16px;">啟用貨幣切換</div>
519
540
  <div style="color: #8D8D8D;font-size:13px;">
@@ -545,6 +545,27 @@ export class ShoppingInformation {
545
545
  />
546
546
  </div>
547
547
  </div>
548
+ <div class="d-flex flex-column mt-2" style="gap:8px;">
549
+ <div style="color: #393939;font-size: 16px;">預設顯示幣別</div>
550
+ <div style="color: #8D8D8D;font-size:13px;">
551
+ 當查無相關幣別支援國家,前台將預設使用此幣別進行顯示
552
+ </div>
553
+ <div class="d-flex align-items-center justify-content-center">
554
+ ${BgWidget.select({
555
+ gvc: gvc,
556
+ callback: (text) => {
557
+ vm.data.currency_code_f_def = text
558
+ },
559
+ default: vm.data.currency_code_f_def,
560
+ options: Currency.code.map((dd) => {
561
+ return {
562
+ key: dd.currency_code,
563
+ value: dd.currency_title
564
+ }
565
+ })
566
+ })}
567
+ </div>
568
+ </div>
548
569
  ${vm.data.multi_currency ? `<div class="d-flex flex-column " style="gap:8px;">
549
570
  <div style="color: #393939;font-size: 16px;">啟用貨幣切換</div>
550
571
  <div style="color: #8D8D8D;font-size:13px;">
@@ -17,7 +17,7 @@ export class Currency {
17
17
  }
18
18
  else {
19
19
  last_select = Currency.code.find((dd) => {
20
- return dd.currency_code === window.store_info.currency_code;
20
+ return dd.currency_code === (window.store_info.currency_code_f_def || window.store_info.currency_code);
21
21
  }).country_code;
22
22
  }
23
23
  }
@@ -61,7 +61,6 @@ export class Currency{
61
61
 
62
62
  public static getCurrency(){
63
63
  (window as any).store_info.currency_code=(window as any).store_info.currency_code||'TWD';
64
-
65
64
  if(!(window as any).store_info.multi_currency){
66
65
  return Currency.code.find((dd)=>{
67
66
  return dd.currency_code=== (window as any).store_info.currency_code
@@ -79,7 +78,7 @@ public static getCurrency(){
79
78
  last_select=(window as any).ip_country
80
79
  }else{
81
80
  last_select=Currency.code.find((dd)=>{
82
- return dd.currency_code===(window as any).store_info.currency_code
81
+ return dd.currency_code===((window as any).store_info.currency_code_f_def || (window as any).store_info.currency_code)
83
82
  })!.country_code
84
83
  }
85
84
  }
@@ -14,9 +14,11 @@ export class Language {
14
14
  value: '繁體中文',
15
15
  },
16
16
  ];
17
- return sup.filter((dd) => {
18
- return (window.parent.store_info.language_setting.support).includes(dd.key);
19
- }).sort((dd) => {
17
+ return sup
18
+ .filter((dd) => {
19
+ return window.parent.store_info.language_setting.support.includes(dd.key);
20
+ })
21
+ .sort((dd) => {
20
22
  return dd.key === window.parent.store_info.language_setting.def ? -1 : 1;
21
23
  });
22
24
  }
@@ -120,7 +122,7 @@ export class Language {
120
122
  key: 'c_cancel_order',
121
123
  tw: '請問確定要取消此訂單嗎?',
122
124
  cn: '请问确定要取消此订单吗?',
123
- en: `Are you sure you want to cancel this order?`
125
+ en: `Are you sure you want to cancel this order?`,
124
126
  },
125
127
  { key: 's_cancel_order', tw: '取消訂單成功', cn: '取消订单成功', en: `Order canceled successfully` },
126
128
  { key: 'newWebPay', tw: '藍新金流', cn: '蓝新金流', en: `NewebPay` },
@@ -140,25 +142,25 @@ export class Language {
140
142
  key: 'min_p_count_d',
141
143
  tw: '_p_ 最少購買數量為_c_件',
142
144
  cn: '_p_ 最少购买数量为_c_件',
143
- en: `_p_ Minimum purchase quantity is _c_ pieces.`
145
+ en: `_p_ Minimum purchase quantity is _c_ pieces.`,
144
146
  },
145
147
  {
146
148
  key: 'max_p_count_d',
147
149
  tw: '_p_ 最多購買數量為_c_件',
148
150
  cn: '_p_ 最多购买数量为_c_件',
149
- en: `_p_ Maximum purchase quantity is _c_ pieces.`
151
+ en: `_p_ Maximum purchase quantity is _c_ pieces.`,
150
152
  },
151
153
  {
152
154
  key: 'min_p_count',
153
155
  tw: '此商品最少購買數量為_c_件',
154
156
  cn: '此商品最少购买数量为_c_件',
155
- en: `Minimum purchase quantity is _c_ pieces.`
157
+ en: `Minimum purchase quantity is _c_ pieces.`,
156
158
  },
157
159
  {
158
160
  key: 'max_p_count',
159
161
  tw: '此商品最多購買數量為_c_件',
160
162
  cn: '此商品最多购买数量为_c_件',
161
- en: `Maximum purchase quantity is _c_ pieces.`
163
+ en: `Maximum purchase quantity is _c_ pieces.`,
162
164
  },
163
165
  { key: 'ship_global_express', tw: '國際快遞', cn: '国际快递', en: `International express` },
164
166
  { key: 'ship_HILIFEC2C', tw: '萊爾富店到店', cn: '莱尔富店到店', en: `Hi-Life Store-to-Store Delivery` },
@@ -167,7 +169,7 @@ export class Language {
167
169
  key: 'ship_UNIMARTC2C',
168
170
  tw: '7-ELEVEN超商交貨便',
169
171
  cn: '7-ELEVEN便利店送货便',
170
- en: `7-ELEVEN Store Delivery Service`
172
+ en: `7-ELEVEN Store Delivery Service`,
171
173
  },
172
174
  { key: 'ship_shop', tw: '實體門市取貨', cn: '实体门市取货', en: `In-Store Pickup` },
173
175
  { key: 'ship_FAMIC2C', tw: '全家店到店', cn: '全家店到店', en: `FamilyMart Store-to-Store Delivery` },
@@ -198,7 +200,7 @@ export class Language {
198
200
  key: 'max_discount_order',
199
201
  tw: '此份訂單最多可折抵',
200
202
  cn: '此份订单最多可折抵',
201
- en: 'Maximum discount for this order'
203
+ en: 'Maximum discount for this order',
202
204
  },
203
205
  { key: 'total_amount', tw: '總金額', cn: '总金额', en: 'Total amount' },
204
206
  { key: 'additional_purchase_items', tw: '可加購商品', cn: '可加购商品', en: 'Additional purchase items' },
@@ -206,7 +208,7 @@ export class Language {
206
208
  key: 'payment_and_shipping_methods',
207
209
  tw: '付款及配送方式',
208
210
  cn: '付款及配送方式',
209
- en: 'Payment and shipping'
211
+ en: 'Payment and shipping',
210
212
  },
211
213
  { key: 'payment_method', tw: '付款方式', cn: '付款方式', en: 'Payment method' },
212
214
  { key: 'shipping_method', tw: '配送方式', cn: '配送方式', en: 'Shipping method' },
@@ -223,7 +225,7 @@ export class Language {
223
225
  key: 'enter_delivery_notes',
224
226
  tw: '請輸入送貨備註',
225
227
  cn: '请输入送货备注',
226
- en: 'Please enter delivery notes'
228
+ en: 'Please enter delivery notes',
227
229
  },
228
230
  { key: 'send_to_user_email', tw: '傳送至用戶信箱', cn: '传送至用户邮箱', en: 'Send to user email' },
229
231
  { key: 'mobile_barcode_device', tw: '手機條碼載具', cn: '手机条码载具', en: 'Mobile barcode device' },
@@ -239,7 +241,7 @@ export class Language {
239
241
  key: 'same_as_buyer_info',
240
242
  tw: '收件人同購買人資料',
241
243
  cn: '收件人同购买人资料',
242
- en: 'Recipient same as buyer information'
244
+ en: 'Recipient same as buyer information',
243
245
  },
244
246
  { key: 'personal', tw: '個人', cn: '个人', en: 'Personal' },
245
247
  { key: 'company', tw: '公司', cn: '公司', en: 'Company' },
@@ -260,7 +262,7 @@ export class Language {
260
262
  key: 'not_meet_usage_criteria',
261
263
  tw: '未達使用標準',
262
264
  cn: '未达使用标准',
263
- en: 'Does not meet usage criteria'
265
+ en: 'Does not meet usage criteria',
264
266
  },
265
267
  { key: 'code_unusable', tw: '此代碼無法使用', cn: '此代码无法使用', en: 'This code cannot be used' },
266
268
  { key: 'enter_promo_code', tw: '請輸入優惠代碼', cn: '请输入优惠代码', en: 'Please enter coupon code' },
@@ -275,31 +277,31 @@ export class Language {
275
277
  key: 'city',
276
278
  tw: '城市',
277
279
  cn: '城市',
278
- en: 'City'
280
+ en: 'City',
279
281
  },
280
282
  {
281
283
  key: 'state',
282
284
  tw: '州/省',
283
285
  cn: '州/省',
284
- en: 'State/Province'
286
+ en: 'State/Province',
285
287
  },
286
288
  {
287
289
  key: 'postal_code',
288
290
  tw: '郵遞區號',
289
291
  cn: '邮政编码',
290
- en: 'Postal code'
292
+ en: 'Postal code',
291
293
  },
292
294
  {
293
295
  key: 'please_enter_delivery_address',
294
296
  tw: '請輸入配送地址',
295
297
  cn: '请输入配送地址',
296
- en: 'Please enter delivery address'
298
+ en: 'Please enter delivery address',
297
299
  },
298
300
  {
299
301
  key: 'please_enter_contact_number',
300
302
  tw: '請輸入聯絡電話',
301
303
  cn: '请输入联系电话',
302
- en: 'Please enter contact number'
304
+ en: 'Please enter contact number',
303
305
  },
304
306
  { key: 'please_enter_name', tw: '請輸入姓名', cn: '请输入姓名', en: 'Please enter name' },
305
307
  { key: 'please_enter_email', tw: '請輸入電子信箱', cn: '请输入电子邮箱', en: 'Please enter email' },
@@ -309,25 +311,25 @@ export class Language {
309
311
  key: 'please_enter_carrier_number',
310
312
  tw: '請輸入載具號碼',
311
313
  cn: '请输入载具号码',
312
- en: 'Please enter carrier number'
314
+ en: 'Please enter carrier number',
313
315
  },
314
316
  {
315
317
  key: 'please_enter_company_name',
316
318
  tw: '請輸入公司名稱',
317
319
  cn: '请输入公司名称',
318
- en: 'Please enter company name'
320
+ en: 'Please enter company name',
319
321
  },
320
322
  {
321
323
  key: 'please_enter_company_tax_id',
322
324
  tw: '請輸入公司統一編號',
323
325
  cn: '请输入公司统一编码',
324
- en: 'Please enter company tax ID'
326
+ en: 'Please enter company tax ID',
325
327
  },
326
328
  {
327
329
  key: 'please_enter_donation_code',
328
330
  tw: '請輸入捐贈碼',
329
331
  cn: '请输入捐赠码',
330
- en: 'Please enter donation code'
332
+ en: 'Please enter donation code',
331
333
  },
332
334
  {
333
335
  key: 'name_length_restrictions',
@@ -345,7 +347,7 @@ export class Language {
345
347
  key: 'select_delivery_store',
346
348
  tw: '請選擇「配送門市」',
347
349
  cn: '请选择「配送门市」',
348
- en: 'Please select "Delivery Store"'
350
+ en: 'Please select "Delivery Store"',
349
351
  },
350
352
  { key: 'please_select_gift', tw: '請選擇「贈品」', cn: '请选择「赠品」', en: 'Please select "Gift"' },
351
353
  { key: 'customer_name', tw: '顧客姓名', cn: '顾客姓名', en: 'Customer name' },
@@ -360,7 +362,7 @@ export class Language {
360
362
  key: 'phone_format_starting_with_09',
361
363
  tw: '09 開頭的手機格式',
362
364
  cn: '以 09 開头的手机格式',
363
- en: 'Phone format starting with 09'
365
+ en: 'Phone format starting with 09',
364
366
  },
365
367
  { key: 'addon', tw: '加購品', cn: '加购品', en: 'Addon' },
366
368
  { key: 'gift', tw: '贈品', cn: '赠品', en: 'Gift' },
@@ -373,7 +375,7 @@ export class Language {
373
375
  key: 'distance_from_target_amount',
374
376
  tw: '距離目標金額還差',
375
377
  cn: '距离目标金额还差',
376
- en: 'Amount remaining to target'
378
+ en: 'Amount remaining to target',
377
379
  },
378
380
  { key: 'member_login', tw: '會員登入', cn: '会员登录', en: 'Login' },
379
381
  { key: 'member_register', tw: '會員註冊', cn: '会员注册', en: 'Register' },
@@ -393,6 +395,7 @@ export class Language {
393
395
  { key: 'sort_by_date', tw: '依照上架時間', cn: '按上架时间排序', en: 'Sort by Date' },
394
396
  { key: 'sort_by_price_asc', tw: '價格由低至高', cn: '价格由低到高', en: 'Price Low to High' },
395
397
  { key: 'sort_by_price_desc', tw: '價格由高至低', cn: '价格由高到低', en: 'Price High to Low' },
398
+ { key: 'sort_by_sales_desc', tw: '依照銷售量高', cn: '按销售量高', en: 'Sales High to Low' },
396
399
  { key: 'no_related_products', tw: '查無相關商品', cn: '暂无相关商品', en: 'No Related Products' },
397
400
  { key: 'my', tw: '我的', cn: '我的', en: 'My' },
398
401
  { key: 'my_coupons', tw: '我的優惠券', cn: '我的优惠券', en: 'Coupons' },
@@ -412,13 +415,13 @@ export class Language {
412
415
  key: 'please_enter_password_again',
413
416
  tw: '請再次輸入密碼',
414
417
  cn: '请再次输入密码',
415
- en: 'Please enter password again'
418
+ en: 'Please enter password again',
416
419
  },
417
420
  {
418
421
  key: 'email_phone_placeholder',
419
422
  tw: '請輸入信箱或電話',
420
423
  cn: '请输入邮箱或电话',
421
- en: 'Please enter email or phone number'
424
+ en: 'Please enter email or phone number',
422
425
  },
423
426
  { key: 'email_phone', tw: '信箱或電話', cn: '邮箱或电话', en: 'Email or Phone Number' },
424
427
  { key: 'email_placeholder', tw: '請輸入信箱', cn: '请输入邮箱', en: 'Please enter email' },
@@ -426,37 +429,37 @@ export class Language {
426
429
  key: 'please_enter_verification_code',
427
430
  tw: '請輸入驗證碼',
428
431
  cn: '请输入验证码',
429
- en: 'Please enter verification code'
432
+ en: 'Please enter verification code',
430
433
  },
431
434
  {
432
435
  key: 'please_enter_email_verification_code',
433
436
  tw: '請輸入信箱驗證碼',
434
437
  cn: '请输入邮箱验证码',
435
- en: 'Please enter email verification code'
438
+ en: 'Please enter email verification code',
436
439
  },
437
440
  {
438
441
  key: 'please_enter_sms_verification_code',
439
442
  tw: '請輸入簡訊驗證碼',
440
443
  cn: '请输入短信验证码',
441
- en: 'Please enter sms verification code'
444
+ en: 'Please enter sms verification code',
442
445
  },
443
446
  {
444
447
  key: 'enter_website_password',
445
448
  tw: '請輸入網站密碼',
446
449
  cn: '请输入网站密码',
447
- en: 'Please enter website password'
450
+ en: 'Please enter website password',
448
451
  },
449
452
  {
450
453
  key: 'enter_your_bank_name',
451
454
  tw: '請輸入您的銀行名稱',
452
455
  cn: '请输入您的银行名称',
453
- en: 'Please enter your bank name'
456
+ en: 'Please enter your bank name',
454
457
  },
455
458
  {
456
459
  key: 'enter_your_bank_account_name',
457
460
  tw: '請輸入您的銀行戶名',
458
461
  cn: '请输入您的银行户名',
459
- en: 'Please enter your bank account name'
462
+ en: 'Please enter your bank account name',
460
463
  },
461
464
  { key: 'enter_five_digits', tw: '請輸入五位數字', cn: '请输入五位数字', en: 'Please enter five digits' },
462
465
  { key: 'new_password_placeholder', tw: '請輸入新密碼', cn: '请输入新密码', en: 'Please enter New Password' },
@@ -464,62 +467,62 @@ export class Language {
464
467
  key: 'enter_phone_number',
465
468
  tw: '請輸入手機號碼',
466
469
  cn: '请输入手机号码',
467
- en: 'Please enter your phone number'
470
+ en: 'Please enter your phone number',
468
471
  },
469
472
  {
470
473
  key: 'enter_valid_email',
471
474
  tw: '請輸入有效電子信箱',
472
475
  cn: '请输入有效电子邮箱',
473
- en: 'Please enter a valid email address'
476
+ en: 'Please enter a valid email address',
474
477
  },
475
478
  {
476
479
  key: 'enter_valid_phone_number',
477
480
  tw: '請輸入有效手機號碼',
478
481
  cn: '请输入有效手机号码',
479
- en: 'Please enter a valid phone number'
482
+ en: 'Please enter a valid phone number',
480
483
  },
481
484
  { key: 'enter_verification_code', tw: '輸入驗證碼', cn: '输入验证码', en: 'Enter Verification Code' },
482
485
  {
483
486
  key: 'reset_password_verification_code',
484
487
  tw: '重設密碼驗證碼',
485
488
  cn: '重设密码验证码',
486
- en: 'Reset Password Verification Code'
489
+ en: 'Reset Password Verification Code',
487
490
  },
488
491
  {
489
492
  key: 'verification_code_sent_to',
490
493
  tw: '驗證碼已發送至',
491
494
  cn: '验证码已发送至',
492
- en: 'Verification Code Sent to'
495
+ en: 'Verification Code Sent to',
493
496
  },
494
497
  {
495
498
  key: 'password_min_length',
496
499
  tw: '密碼必須大於8位數',
497
500
  cn: '密码必须大于8位数',
498
- en: 'Password must be greater than 8 characters'
501
+ en: 'Password must be greater than 8 characters',
499
502
  },
500
503
  {
501
504
  key: 'please_confirm_password_again',
502
505
  tw: '請再次輸入確認密碼',
503
506
  cn: '请再次输入确认密码',
504
- en: 'Please enter confirm password again'
507
+ en: 'Please enter confirm password again',
505
508
  },
506
509
  {
507
510
  key: 'email_verification_code_incorrect',
508
511
  tw: '信箱驗證碼輸入錯誤',
509
512
  cn: '邮箱验证码输入错误',
510
- en: 'Email verification code entered incorrectly'
513
+ en: 'Email verification code entered incorrectly',
511
514
  },
512
515
  {
513
516
  key: 'sms_verification_code_incorrect',
514
517
  tw: '簡訊驗證碼輸入錯誤',
515
518
  cn: '短信验证码输入错误',
516
- en: 'SMS verification code entered incorrectly'
519
+ en: 'SMS verification code entered incorrectly',
517
520
  },
518
521
  {
519
522
  key: 'phone_number_already_exists',
520
523
  tw: '此電話號碼已存在',
521
524
  cn: '此电话号码已存在',
522
- en: 'This phone number already exists'
525
+ en: 'This phone number already exists',
523
526
  },
524
527
  { key: 'email_already_exists', tw: '此信箱已存在', cn: '此邮箱已存在', en: 'This email already exists' },
525
528
  { key: 'update_exception', tw: '更新異常', cn: '更新异常', en: 'Update Exception' },
@@ -537,14 +540,14 @@ export class Language {
537
540
  key: 'can_meet_renewal_criteria',
538
541
  tw: '即可達成續會條件',
539
542
  cn: '即可达成续会条件',
540
- en: 'Can Meet Renewal Criteria'
543
+ en: 'Can Meet Renewal Criteria',
541
544
  },
542
545
  { key: 'single_purchase_reaches', tw: '單筆消費達', cn: '单笔消费达', en: 'Single Purchase Reaches' },
543
546
  {
544
547
  key: 'accumulated_spending_reaches',
545
548
  tw: '累積消費額達',
546
549
  cn: '累积消费额达',
547
- en: 'Accumulated Spending Reaches'
550
+ en: 'Accumulated Spending Reaches',
548
551
  },
549
552
  { key: 'upgrade_to', tw: '即可升級至', cn: '即可升级至', en: 'Upgrade To' },
550
553
  { key: 'days', tw: '天', cn: '天', en: 'Days' },
@@ -560,20 +563,20 @@ export class Language {
560
563
  key: 'view_membership_level_rules',
561
564
  tw: '查看會員級數規則',
562
565
  cn: '查看会员级数规则',
563
- en: 'View Membership Level Rules'
566
+ en: 'View Membership Level Rules',
564
567
  },
565
568
  { key: 'membership_barcode', tw: '會員條碼', cn: '会员条码', en: 'Membership Barcode' },
566
569
  {
567
570
  key: 'present_membership_barcode',
568
571
  tw: '出示會員條碼',
569
572
  cn: '出示会员条码',
570
- en: 'Present Membership Barcode'
573
+ en: 'Present Membership Barcode',
571
574
  },
572
575
  {
573
576
  key: 'current_accumulated_spending_amount',
574
577
  tw: '目前累積消費金額',
575
578
  cn: '当前累积消费金额',
576
- en: 'Current Accumulated Spending Amount'
579
+ en: 'Current Accumulated Spending Amount',
577
580
  },
578
581
  { key: 'can_upgrade', tw: '即可升級', cn: '即可升级', en: 'Can Upgrade' },
579
582
  { key: 'edit_profile', tw: '編輯個人資料', cn: '编辑个人资料', en: 'Edit Profile' },
@@ -606,7 +609,7 @@ export class Language {
606
609
  key: 'no_coupons_available',
607
610
  tw: '目前沒有任何優惠券',
608
611
  cn: '目前没有任何优惠券',
609
- en: 'Currently no coupons available'
612
+ en: 'Currently no coupons available',
610
613
  },
611
614
  { key: 'show_qr_code', tw: '顯示 QR code', cn: '显示 QR code', en: 'Show QR Code' },
612
615
  { key: 'coupon_qr_code', tw: '優惠券 QR code', cn: '优惠券 QR code', en: 'Coupon QR Code' },
@@ -616,14 +619,14 @@ export class Language {
616
619
  key: 'no_items_added',
617
620
  tw: '目前沒有加入任何商品',
618
621
  cn: '目前没有添加任何商品',
619
- en: 'Currently there are no items added'
622
+ en: 'Currently there are no items added',
620
623
  },
621
624
  { key: 'error', tw: '發生錯誤', cn: '發生錯誤', en: 'Error' },
622
625
  {
623
626
  key: 'ai_assisted_shopping',
624
627
  tw: '透過 AI 可以協助你快速找到喜歡的商品',
625
628
  cn: '通过AI可以帮助您快速找到喜欢的商品',
626
- en: 'AI can assist you in quickly finding products you like.'
629
+ en: 'AI can assist you in quickly finding products you like.',
627
630
  },
628
631
  { key: 'product_list', tw: '產品列表', cn: '产品列表', en: 'Product List' },
629
632
  { key: 'save', tw: '儲存', cn: '保存', en: 'Save' },
@@ -631,7 +634,7 @@ export class Language {
631
634
  key: 'incorrect_website_password',
632
635
  tw: '網站密碼輸入錯誤',
633
636
  cn: '网站密码输入错误',
634
- en: 'Incorrect website password entered'
637
+ en: 'Incorrect website password entered',
635
638
  },
636
639
  { key: 'no_access_permission', tw: '無訪問權限', cn: '无访问权限', en: 'No access permission' },
637
640
  { key: 'payment_time', tw: '付款時間', cn: '付款时间', en: 'Payment Time' },
@@ -641,7 +644,7 @@ export class Language {
641
644
  key: 'last_five_digits_of_bank_account',
642
645
  tw: '銀行帳號後五碼',
643
646
  cn: '银行账号后五码',
644
- en: 'Last Five Digits of Bank Account'
647
+ en: 'Last Five Digits of Bank Account',
645
648
  },
646
649
  { key: 'bank_name', tw: '銀行名稱', cn: '银行名称', en: 'Bank Name' },
647
650
  { key: 'bank_code', tw: '銀行代碼', cn: '银行代码', en: 'Bank Code' },
@@ -655,13 +658,13 @@ export class Language {
655
658
  key: 'bank_account_name_not_filled',
656
659
  tw: '銀行戶名未填寫',
657
660
  cn: '银行户名未填写',
658
- en: 'Bank account name not filled'
661
+ en: 'Bank account name not filled',
659
662
  },
660
663
  {
661
664
  key: 'last_five_digits_five_digits',
662
665
  tw: '銀行帳號後五碼需為五位數字',
663
666
  cn: '银行账号后五码需为五位数字',
664
- en: 'Last five digits of bank account must be five digits'
667
+ en: 'Last five digits of bank account must be five digits',
665
668
  },
666
669
  { key: 'file_upload', tw: '檔案上傳', cn: '文件上传', en: 'File Upload' },
667
670
  { key: 'payment_info', tw: '付款資訊', cn: '付款信息', en: 'Payment Information' },
@@ -676,7 +679,7 @@ export class Language {
676
679
  key: 'upload_screenshot_for_verification',
677
680
  tw: '請上傳截圖,以便我們進行核款',
678
681
  cn: '请上传截图,以便我们进行核款',
679
- en: 'Please upload a screenshot for verification'
682
+ en: 'Please upload a screenshot for verification',
680
683
  },
681
684
  {
682
685
  key: 'upload_screenshot_or_transfer_proof',
@@ -697,7 +700,7 @@ export class Language {
697
700
  key: 'reupload_checkout_proof',
698
701
  tw: '重新上傳結帳證明',
699
702
  cn: '重新上传结账证明',
700
- en: 'Reupload checkout proof'
703
+ en: 'Reupload checkout proof',
701
704
  },
702
705
  { key: 'upload_checkout_proof', tw: '上傳結帳證明', cn: '上传结账证明', en: 'Upload checkout proof' },
703
706
  { key: 'order_information', tw: '訂單資訊', cn: '订单信息', en: 'Order Information' },
@@ -738,19 +741,19 @@ export class Language {
738
741
  key: 'member_exists_prompt',
739
742
  tw: '已經有會員了?前往',
740
743
  cn: '已经有会员了?前往',
741
- en: 'Already have an account? Go to'
744
+ en: 'Already have an account? Go to',
742
745
  },
743
746
  {
744
747
  key: 'member_not_exists_prompt',
745
748
  tw: '還沒有成為會員?前往',
746
749
  cn: '还没有成为会员?前往',
747
- en: 'Not a member yet? Go to'
750
+ en: 'Not a member yet? Go to',
748
751
  },
749
752
  {
750
753
  key: 'registration_terms_agreement',
751
754
  tw: '註冊完成時,即代表您同意我們的',
752
755
  cn: '注册完成时,即代表您同意我们的',
753
- en: 'By completing the registration, you agree to our'
756
+ en: 'By completing the registration, you agree to our',
754
757
  },
755
758
  { key: 'terms_of_service', tw: '服務條款', cn: '服务条款', en: 'Terms of Service' },
756
759
  { key: 'privacy_policy', tw: '隱私條款', cn: '隐私政策', en: 'Privacy Policy' },
@@ -758,7 +761,7 @@ export class Language {
758
761
  key: 'login_terms_agreement',
759
762
  tw: '登入完成時,即代表您同意我們的',
760
763
  cn: '登录完成时,即代表您同意我们的',
761
- en: 'By completing the login, you agree to our'
764
+ en: 'By completing the login, you agree to our',
762
765
  },
763
766
  { key: 'and', tw: '和', cn: '和', en: 'and' },
764
767
  { key: 'or', tw: '或', cn: '或', en: 'or' },
@@ -770,7 +773,7 @@ export class Language {
770
773
  key: 'password_mismatch',
771
774
  tw: '密碼與確認密碼不符',
772
775
  cn: '密码与确认密码不符',
773
- en: 'Passwords do not match'
776
+ en: 'Passwords do not match',
774
777
  },
775
778
  { key: 'registration_success', tw: '註冊成功', cn: '注册成功', en: 'Registration successful' },
776
779
  { key: 'registration_failure', tw: '註冊失敗', cn: '注册失败', en: 'Registration failed' },
@@ -778,19 +781,19 @@ export class Language {
778
781
  key: 'existing_user',
779
782
  tw: '此為已註冊的使用者',
780
783
  cn: '此为已注册的用户',
781
- en: 'This user is already registered'
784
+ en: 'This user is already registered',
782
785
  },
783
786
  {
784
787
  key: 'incorrect_credentials',
785
788
  tw: '帳號或密碼錯誤',
786
789
  cn: '帐号或密码错误',
787
- en: 'Incorrect account or password'
790
+ en: 'Incorrect account or password',
788
791
  },
789
792
  {
790
793
  key: 'verification_code_sent',
791
794
  tw: '成功寄送驗證碼',
792
795
  cn: '成功发送验证码',
793
- en: 'Verification code sent successfully'
796
+ en: 'Verification code sent successfully',
794
797
  },
795
798
  { key: 'system_error', tw: '系統錯誤', cn: '系统错误', en: 'System error' },
796
799
  { key: 'password_change_success', tw: '更換密碼成功', cn: '更换密码成功', en: 'Password change successful' },
@@ -799,7 +802,7 @@ export class Language {
799
802
  key: 'resend_code_timer',
800
803
  tw: 'xxx秒後可重新取得驗證碼',
801
804
  cn: 'xxx秒后可重新获取验证码',
802
- en: 'Resend the verification code in xxx seconds'
805
+ en: 'Resend the verification code in xxx seconds',
803
806
  },
804
807
  { key: 'form_name', tw: '姓名', cn: '名字', en: 'Name' },
805
808
  { key: 'form_email', tw: '信箱 / 帳號', cn: '邮箱 / 账号', en: 'Email' },
@@ -809,7 +812,7 @@ export class Language {
809
812
  { key: 'term', tw: '服務條款', cn: '服务条款', en: 'Terms of Service' },
810
813
  { key: 'refund', tw: '退換貨政策', cn: '退換貨政策', en: 'Refund policy' },
811
814
  { key: 'delivery', tw: '購買與配送須知', cn: '配送须知', en: 'Shipping instructions' },
812
- { key: 'pieces', tw: '件', cn: '件', en: 'Pieces' }
815
+ { key: 'pieces', tw: '件', cn: '件', en: 'Pieces' },
813
816
  ];
814
817
  }
815
818
  static getLanguageCustomText(text) {
@@ -827,7 +830,7 @@ export class Language {
827
830
  });
828
831
  if (find_) {
829
832
  convert = convert || '';
830
- convert = (convert.replace(placeholder, find_[Language.getLanguage()]));
833
+ convert = convert.replace(placeholder, find_[Language.getLanguage()]);
831
834
  }
832
835
  }
833
836
  return convert;