@wix/himalaya-cli 0.1858.0 → 0.1860.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/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{b2b76cc19f21f7c6d8b1a3cd6aa1ac0f194b052fa183761d08bd4f43fd46f844.bin → a60c092217d4c21970ff66e8b63221007e49d0792eb9d5fe66238f8efbce884a.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +633 -335
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/one-app-to-himi-app.md +2 -1
- package/guides/testing-himi-apps.md +4 -5
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/beauty-salon/l10n/ar.json +0 -5
- package/templates/beauty-salon/l10n/cs.json +0 -5
- package/templates/beauty-salon/l10n/da.json +0 -5
- package/templates/beauty-salon/l10n/de.json +0 -5
- package/templates/beauty-salon/l10n/el.json +0 -5
- package/templates/beauty-salon/l10n/en.json +1 -6
- package/templates/beauty-salon/l10n/es.json +0 -5
- package/templates/beauty-salon/l10n/fi.json +0 -5
- package/templates/beauty-salon/l10n/fr.json +0 -5
- package/templates/beauty-salon/l10n/he.json +0 -5
- package/templates/beauty-salon/l10n/hu.json +0 -5
- package/templates/beauty-salon/l10n/id.json +0 -5
- package/templates/beauty-salon/l10n/it.json +0 -5
- package/templates/beauty-salon/l10n/ja.json +0 -5
- package/templates/beauty-salon/l10n/ko.json +0 -5
- package/templates/beauty-salon/l10n/lt.json +0 -5
- package/templates/beauty-salon/l10n/nl.json +0 -5
- package/templates/beauty-salon/l10n/no.json +0 -5
- package/templates/beauty-salon/l10n/pl.json +0 -5
- package/templates/beauty-salon/l10n/pt.json +0 -5
- package/templates/beauty-salon/l10n/ru.json +0 -5
- package/templates/beauty-salon/l10n/sv.json +0 -5
- package/templates/beauty-salon/l10n/th.json +0 -5
- package/templates/beauty-salon/l10n/tr.json +0 -5
- package/templates/beauty-salon/l10n/uk.json +0 -5
- package/templates/beauty-salon/l10n/vi.json +0 -5
- package/templates/beauty-salon/l10n/zh.json +0 -5
- package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/branded-lite/dev/index.ts +3148 -2899
- package/templates/branded-lite/l10n/ar.json +181 -87
- package/templates/branded-lite/l10n/cs.json +181 -87
- package/templates/branded-lite/l10n/da.json +181 -87
- package/templates/branded-lite/l10n/de.json +181 -87
- package/templates/branded-lite/l10n/el.json +181 -87
- package/templates/branded-lite/l10n/en.json +105 -37
- package/templates/branded-lite/l10n/es.json +181 -87
- package/templates/branded-lite/l10n/fi.json +181 -87
- package/templates/branded-lite/l10n/fr.json +181 -87
- package/templates/branded-lite/l10n/he.json +150 -77
- package/templates/branded-lite/l10n/hu.json +181 -87
- package/templates/branded-lite/l10n/id.json +181 -87
- package/templates/branded-lite/l10n/it.json +181 -87
- package/templates/branded-lite/l10n/ja.json +181 -87
- package/templates/branded-lite/l10n/ko.json +181 -87
- package/templates/branded-lite/l10n/lt.json +181 -87
- package/templates/branded-lite/l10n/nl.json +181 -87
- package/templates/branded-lite/l10n/no.json +181 -87
- package/templates/branded-lite/l10n/pl.json +181 -87
- package/templates/branded-lite/l10n/pt.json +181 -87
- package/templates/branded-lite/l10n/ru.json +181 -87
- package/templates/branded-lite/l10n/sv.json +181 -87
- package/templates/branded-lite/l10n/th.json +181 -87
- package/templates/branded-lite/l10n/tr.json +181 -87
- package/templates/branded-lite/l10n/uk.json +181 -87
- package/templates/branded-lite/l10n/vi.json +181 -87
- package/templates/branded-lite/l10n/zh.json +181 -87
- package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/branded-lite/tier5-src/_shared/loyalty-offerings.ts +23 -5
- package/templates/branded-lite/tier5-src/_shared/loyalty-status-section.ts +1 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty/index.ts +280 -99
- package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty-rewards/index.ts +158 -43
- package/templates/brandy/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/community-club/l10n/ar.json +0 -5
- package/templates/community-club/l10n/cs.json +0 -5
- package/templates/community-club/l10n/da.json +0 -5
- package/templates/community-club/l10n/de.json +0 -5
- package/templates/community-club/l10n/el.json +0 -5
- package/templates/community-club/l10n/en.json +1 -6
- package/templates/community-club/l10n/es.json +0 -5
- package/templates/community-club/l10n/fi.json +0 -5
- package/templates/community-club/l10n/fr.json +0 -5
- package/templates/community-club/l10n/he.json +0 -5
- package/templates/community-club/l10n/hu.json +0 -5
- package/templates/community-club/l10n/id.json +0 -5
- package/templates/community-club/l10n/it.json +0 -5
- package/templates/community-club/l10n/ja.json +0 -5
- package/templates/community-club/l10n/ko.json +0 -5
- package/templates/community-club/l10n/lt.json +0 -5
- package/templates/community-club/l10n/nl.json +0 -5
- package/templates/community-club/l10n/no.json +0 -5
- package/templates/community-club/l10n/pl.json +0 -5
- package/templates/community-club/l10n/pt.json +0 -5
- package/templates/community-club/l10n/ru.json +0 -5
- package/templates/community-club/l10n/sv.json +0 -5
- package/templates/community-club/l10n/th.json +0 -5
- package/templates/community-club/l10n/tr.json +0 -5
- package/templates/community-club/l10n/uk.json +0 -5
- package/templates/community-club/l10n/vi.json +0 -5
- package/templates/community-club/l10n/zh.json +0 -5
- package/templates/community-club/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/conference/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/events-meetups/l10n/ar.json +0 -5
- package/templates/events-meetups/l10n/cs.json +0 -5
- package/templates/events-meetups/l10n/da.json +0 -5
- package/templates/events-meetups/l10n/de.json +0 -5
- package/templates/events-meetups/l10n/el.json +0 -5
- package/templates/events-meetups/l10n/en.json +1 -6
- package/templates/events-meetups/l10n/es.json +0 -5
- package/templates/events-meetups/l10n/fi.json +0 -5
- package/templates/events-meetups/l10n/fr.json +0 -5
- package/templates/events-meetups/l10n/he.json +0 -5
- package/templates/events-meetups/l10n/hu.json +0 -5
- package/templates/events-meetups/l10n/id.json +0 -5
- package/templates/events-meetups/l10n/it.json +0 -5
- package/templates/events-meetups/l10n/ja.json +0 -5
- package/templates/events-meetups/l10n/ko.json +0 -5
- package/templates/events-meetups/l10n/lt.json +0 -5
- package/templates/events-meetups/l10n/nl.json +0 -5
- package/templates/events-meetups/l10n/no.json +0 -5
- package/templates/events-meetups/l10n/pl.json +0 -5
- package/templates/events-meetups/l10n/pt.json +0 -5
- package/templates/events-meetups/l10n/ru.json +0 -5
- package/templates/events-meetups/l10n/sv.json +0 -5
- package/templates/events-meetups/l10n/th.json +0 -5
- package/templates/events-meetups/l10n/tr.json +0 -5
- package/templates/events-meetups/l10n/uk.json +0 -5
- package/templates/events-meetups/l10n/vi.json +0 -5
- package/templates/events-meetups/l10n/zh.json +0 -5
- package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/fitness-gym/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/gym-fitness/l10n/ar.json +0 -5
- package/templates/gym-fitness/l10n/cs.json +0 -5
- package/templates/gym-fitness/l10n/da.json +0 -5
- package/templates/gym-fitness/l10n/de.json +0 -5
- package/templates/gym-fitness/l10n/el.json +0 -5
- package/templates/gym-fitness/l10n/en.json +1 -6
- package/templates/gym-fitness/l10n/es.json +0 -5
- package/templates/gym-fitness/l10n/fi.json +0 -5
- package/templates/gym-fitness/l10n/fr.json +0 -5
- package/templates/gym-fitness/l10n/he.json +0 -5
- package/templates/gym-fitness/l10n/hu.json +0 -5
- package/templates/gym-fitness/l10n/id.json +0 -5
- package/templates/gym-fitness/l10n/it.json +0 -5
- package/templates/gym-fitness/l10n/ja.json +0 -5
- package/templates/gym-fitness/l10n/ko.json +0 -5
- package/templates/gym-fitness/l10n/lt.json +0 -5
- package/templates/gym-fitness/l10n/nl.json +0 -5
- package/templates/gym-fitness/l10n/no.json +0 -5
- package/templates/gym-fitness/l10n/pl.json +0 -5
- package/templates/gym-fitness/l10n/pt.json +0 -5
- package/templates/gym-fitness/l10n/ru.json +0 -5
- package/templates/gym-fitness/l10n/sv.json +0 -5
- package/templates/gym-fitness/l10n/th.json +0 -5
- package/templates/gym-fitness/l10n/tr.json +0 -5
- package/templates/gym-fitness/l10n/uk.json +0 -5
- package/templates/gym-fitness/l10n/vi.json +0 -5
- package/templates/gym-fitness/l10n/zh.json +0 -5
- package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/medical-services/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/nonprofit-cause/l10n/ar.json +0 -5
- package/templates/nonprofit-cause/l10n/cs.json +0 -5
- package/templates/nonprofit-cause/l10n/da.json +0 -5
- package/templates/nonprofit-cause/l10n/de.json +0 -5
- package/templates/nonprofit-cause/l10n/el.json +0 -5
- package/templates/nonprofit-cause/l10n/en.json +1 -6
- package/templates/nonprofit-cause/l10n/es.json +0 -5
- package/templates/nonprofit-cause/l10n/fi.json +0 -5
- package/templates/nonprofit-cause/l10n/fr.json +0 -5
- package/templates/nonprofit-cause/l10n/he.json +0 -5
- package/templates/nonprofit-cause/l10n/hu.json +0 -5
- package/templates/nonprofit-cause/l10n/id.json +0 -5
- package/templates/nonprofit-cause/l10n/it.json +0 -5
- package/templates/nonprofit-cause/l10n/ja.json +0 -5
- package/templates/nonprofit-cause/l10n/ko.json +0 -5
- package/templates/nonprofit-cause/l10n/lt.json +0 -5
- package/templates/nonprofit-cause/l10n/nl.json +0 -5
- package/templates/nonprofit-cause/l10n/no.json +0 -5
- package/templates/nonprofit-cause/l10n/pl.json +0 -5
- package/templates/nonprofit-cause/l10n/pt.json +0 -5
- package/templates/nonprofit-cause/l10n/ru.json +0 -5
- package/templates/nonprofit-cause/l10n/sv.json +0 -5
- package/templates/nonprofit-cause/l10n/th.json +0 -5
- package/templates/nonprofit-cause/l10n/tr.json +0 -5
- package/templates/nonprofit-cause/l10n/uk.json +0 -5
- package/templates/nonprofit-cause/l10n/vi.json +0 -5
- package/templates/nonprofit-cause/l10n/zh.json +0 -5
- package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/podcast-creator/l10n/ar.json +0 -5
- package/templates/podcast-creator/l10n/cs.json +0 -5
- package/templates/podcast-creator/l10n/da.json +0 -5
- package/templates/podcast-creator/l10n/de.json +0 -5
- package/templates/podcast-creator/l10n/el.json +0 -5
- package/templates/podcast-creator/l10n/en.json +1 -6
- package/templates/podcast-creator/l10n/es.json +0 -5
- package/templates/podcast-creator/l10n/fi.json +0 -5
- package/templates/podcast-creator/l10n/fr.json +0 -5
- package/templates/podcast-creator/l10n/he.json +0 -5
- package/templates/podcast-creator/l10n/hu.json +0 -5
- package/templates/podcast-creator/l10n/id.json +0 -5
- package/templates/podcast-creator/l10n/it.json +0 -5
- package/templates/podcast-creator/l10n/ja.json +0 -5
- package/templates/podcast-creator/l10n/ko.json +0 -5
- package/templates/podcast-creator/l10n/lt.json +0 -5
- package/templates/podcast-creator/l10n/nl.json +0 -5
- package/templates/podcast-creator/l10n/no.json +0 -5
- package/templates/podcast-creator/l10n/pl.json +0 -5
- package/templates/podcast-creator/l10n/pt.json +0 -5
- package/templates/podcast-creator/l10n/ru.json +0 -5
- package/templates/podcast-creator/l10n/sv.json +0 -5
- package/templates/podcast-creator/l10n/th.json +0 -5
- package/templates/podcast-creator/l10n/tr.json +0 -5
- package/templates/podcast-creator/l10n/uk.json +0 -5
- package/templates/podcast-creator/l10n/vi.json +0 -5
- package/templates/podcast-creator/l10n/zh.json +0 -5
- package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/portfolio-creative/l10n/ar.json +0 -5
- package/templates/portfolio-creative/l10n/cs.json +0 -5
- package/templates/portfolio-creative/l10n/da.json +0 -5
- package/templates/portfolio-creative/l10n/de.json +0 -5
- package/templates/portfolio-creative/l10n/el.json +0 -5
- package/templates/portfolio-creative/l10n/en.json +1 -6
- package/templates/portfolio-creative/l10n/es.json +0 -5
- package/templates/portfolio-creative/l10n/fi.json +0 -5
- package/templates/portfolio-creative/l10n/fr.json +0 -5
- package/templates/portfolio-creative/l10n/he.json +0 -5
- package/templates/portfolio-creative/l10n/hu.json +0 -5
- package/templates/portfolio-creative/l10n/id.json +0 -5
- package/templates/portfolio-creative/l10n/it.json +0 -5
- package/templates/portfolio-creative/l10n/ja.json +0 -5
- package/templates/portfolio-creative/l10n/ko.json +0 -5
- package/templates/portfolio-creative/l10n/lt.json +0 -5
- package/templates/portfolio-creative/l10n/nl.json +0 -5
- package/templates/portfolio-creative/l10n/no.json +0 -5
- package/templates/portfolio-creative/l10n/pl.json +0 -5
- package/templates/portfolio-creative/l10n/pt.json +0 -5
- package/templates/portfolio-creative/l10n/ru.json +0 -5
- package/templates/portfolio-creative/l10n/sv.json +0 -5
- package/templates/portfolio-creative/l10n/th.json +0 -5
- package/templates/portfolio-creative/l10n/tr.json +0 -5
- package/templates/portfolio-creative/l10n/uk.json +0 -5
- package/templates/portfolio-creative/l10n/vi.json +0 -5
- package/templates/portfolio-creative/l10n/zh.json +0 -5
- package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/restaurant/l10n/ar.json +0 -5
- package/templates/restaurant/l10n/cs.json +0 -5
- package/templates/restaurant/l10n/da.json +0 -5
- package/templates/restaurant/l10n/de.json +0 -5
- package/templates/restaurant/l10n/el.json +0 -5
- package/templates/restaurant/l10n/en.json +1 -6
- package/templates/restaurant/l10n/es.json +0 -5
- package/templates/restaurant/l10n/fi.json +0 -5
- package/templates/restaurant/l10n/fr.json +0 -5
- package/templates/restaurant/l10n/he.json +0 -5
- package/templates/restaurant/l10n/hu.json +0 -5
- package/templates/restaurant/l10n/id.json +0 -5
- package/templates/restaurant/l10n/it.json +0 -5
- package/templates/restaurant/l10n/ja.json +0 -5
- package/templates/restaurant/l10n/ko.json +0 -5
- package/templates/restaurant/l10n/lt.json +0 -5
- package/templates/restaurant/l10n/nl.json +0 -5
- package/templates/restaurant/l10n/no.json +0 -5
- package/templates/restaurant/l10n/pl.json +0 -5
- package/templates/restaurant/l10n/pt.json +0 -5
- package/templates/restaurant/l10n/ru.json +0 -5
- package/templates/restaurant/l10n/sv.json +0 -5
- package/templates/restaurant/l10n/th.json +0 -5
- package/templates/restaurant/l10n/tr.json +0 -5
- package/templates/restaurant/l10n/uk.json +0 -5
- package/templates/restaurant/l10n/vi.json +0 -5
- package/templates/restaurant/l10n/zh.json +0 -5
- package/templates/restaurant/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/retail-store/l10n/ar.json +0 -5
- package/templates/retail-store/l10n/cs.json +0 -5
- package/templates/retail-store/l10n/da.json +0 -5
- package/templates/retail-store/l10n/de.json +0 -5
- package/templates/retail-store/l10n/el.json +0 -5
- package/templates/retail-store/l10n/en.json +1 -6
- package/templates/retail-store/l10n/es.json +0 -5
- package/templates/retail-store/l10n/fi.json +0 -5
- package/templates/retail-store/l10n/fr.json +0 -5
- package/templates/retail-store/l10n/he.json +0 -5
- package/templates/retail-store/l10n/hu.json +0 -5
- package/templates/retail-store/l10n/id.json +0 -5
- package/templates/retail-store/l10n/it.json +0 -5
- package/templates/retail-store/l10n/ja.json +0 -5
- package/templates/retail-store/l10n/ko.json +0 -5
- package/templates/retail-store/l10n/lt.json +0 -5
- package/templates/retail-store/l10n/nl.json +0 -5
- package/templates/retail-store/l10n/no.json +0 -5
- package/templates/retail-store/l10n/pl.json +0 -5
- package/templates/retail-store/l10n/pt.json +0 -5
- package/templates/retail-store/l10n/ru.json +0 -5
- package/templates/retail-store/l10n/sv.json +0 -5
- package/templates/retail-store/l10n/th.json +0 -5
- package/templates/retail-store/l10n/tr.json +0 -5
- package/templates/retail-store/l10n/uk.json +0 -5
- package/templates/retail-store/l10n/vi.json +0 -5
- package/templates/retail-store/l10n/zh.json +0 -5
- package/templates/retail-store/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/salon-spa/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/wholesale-store/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/yoga-studio/l10n/ar.json +0 -5
- package/templates/yoga-studio/l10n/cs.json +0 -5
- package/templates/yoga-studio/l10n/da.json +0 -5
- package/templates/yoga-studio/l10n/de.json +0 -5
- package/templates/yoga-studio/l10n/el.json +0 -5
- package/templates/yoga-studio/l10n/en.json +1 -6
- package/templates/yoga-studio/l10n/es.json +0 -5
- package/templates/yoga-studio/l10n/fi.json +0 -5
- package/templates/yoga-studio/l10n/fr.json +0 -5
- package/templates/yoga-studio/l10n/he.json +0 -5
- package/templates/yoga-studio/l10n/hu.json +0 -5
- package/templates/yoga-studio/l10n/id.json +0 -5
- package/templates/yoga-studio/l10n/it.json +0 -5
- package/templates/yoga-studio/l10n/ja.json +0 -5
- package/templates/yoga-studio/l10n/ko.json +0 -5
- package/templates/yoga-studio/l10n/lt.json +0 -5
- package/templates/yoga-studio/l10n/nl.json +0 -5
- package/templates/yoga-studio/l10n/no.json +0 -5
- package/templates/yoga-studio/l10n/pl.json +0 -5
- package/templates/yoga-studio/l10n/pt.json +0 -5
- package/templates/yoga-studio/l10n/ru.json +0 -5
- package/templates/yoga-studio/l10n/sv.json +0 -5
- package/templates/yoga-studio/l10n/th.json +0 -5
- package/templates/yoga-studio/l10n/tr.json +0 -5
- package/templates/yoga-studio/l10n/uk.json +0 -5
- package/templates/yoga-studio/l10n/vi.json +0 -5
- package/templates/yoga-studio/l10n/zh.json +0 -5
- package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +0 -1
|
@@ -2,6 +2,72 @@
|
|
|
2
2
|
"$source": "en",
|
|
3
3
|
"$note": "Machine translation, NOT REVIEWED: rows with origin \"machine\" are machine translations nobody has reviewed. Rows with origin \"one-app:<module>:<key>\" are Wix One App translations matched by identical English text, ending and capitalization.",
|
|
4
4
|
"messages": {
|
|
5
|
+
"h_0e5410bb01f0": {
|
|
6
|
+
"source": "Your points",
|
|
7
|
+
"key": "loyalty.yourPoints",
|
|
8
|
+
"translation": "你的积分",
|
|
9
|
+
"origin": "machine"
|
|
10
|
+
},
|
|
11
|
+
"h_435080ba6692": {
|
|
12
|
+
"source": "Tiers",
|
|
13
|
+
"key": "loyalty.tiersHeading",
|
|
14
|
+
"translation": "等级",
|
|
15
|
+
"origin": "machine"
|
|
16
|
+
},
|
|
17
|
+
"h_5370164e0cb6": {
|
|
18
|
+
"source": "Rewards you can get with points show here.",
|
|
19
|
+
"key": "loyalty.emptyBody",
|
|
20
|
+
"translation": "可用积分兑换的奖励会显示在这里。",
|
|
21
|
+
"origin": "machine"
|
|
22
|
+
},
|
|
23
|
+
"h_5ba1b462e9d2": {
|
|
24
|
+
"source": "Coupon ready",
|
|
25
|
+
"key": "loyalty.couponReady",
|
|
26
|
+
"translation": "优惠券已就绪",
|
|
27
|
+
"origin": "machine"
|
|
28
|
+
},
|
|
29
|
+
"h_7161a187dbc4": {
|
|
30
|
+
"source": "No rewards yet",
|
|
31
|
+
"key": "loyalty.emptyTitle",
|
|
32
|
+
"translation": "暂无奖励",
|
|
33
|
+
"origin": "machine"
|
|
34
|
+
},
|
|
35
|
+
"h_7c62a1424469": {
|
|
36
|
+
"source": "Available",
|
|
37
|
+
"key": "loyalty.available",
|
|
38
|
+
"translation": "可兑换",
|
|
39
|
+
"origin": "machine"
|
|
40
|
+
},
|
|
41
|
+
"h_8e3df45a49db": {
|
|
42
|
+
"source": "Copied",
|
|
43
|
+
"key": "loyalty.copied",
|
|
44
|
+
"translation": "已复制",
|
|
45
|
+
"origin": "machine"
|
|
46
|
+
},
|
|
47
|
+
"h_c05b3898cf5e": {
|
|
48
|
+
"source": "Go to Home",
|
|
49
|
+
"key": "loyalty.goHome",
|
|
50
|
+
"translation": "前往首页",
|
|
51
|
+
"origin": "machine"
|
|
52
|
+
},
|
|
53
|
+
"h_d026575316fe": {
|
|
54
|
+
"source": "Your tier",
|
|
55
|
+
"key": "loyalty.yourTier",
|
|
56
|
+
"translation": "你的等级",
|
|
57
|
+
"origin": "machine"
|
|
58
|
+
},
|
|
59
|
+
"h_efcbceefc334": {
|
|
60
|
+
"source": "Your rewards couldn't be loaded.",
|
|
61
|
+
"key": "loyalty.memberRewardsError",
|
|
62
|
+
"translation": "无法加载你的奖励。",
|
|
63
|
+
"origin": "machine"
|
|
64
|
+
},
|
|
65
|
+
"h_f6532ba824e8": {
|
|
66
|
+
"source": "No ways to earn points yet",
|
|
67
|
+
"key": "loyalty.earningEmpty",
|
|
68
|
+
"translation": "暂无赚取积分的方式",
|
|
69
|
+
"origin": "machine"
|
|
70
|
+
},
|
|
5
71
|
"h_386533b2cd21": {
|
|
6
72
|
"key": "blogPost.leaveCommentCta",
|
|
7
73
|
"source": "Leave a comment…",
|
|
@@ -2150,12 +2216,6 @@
|
|
|
2150
2216
|
"translation": "群組",
|
|
2151
2217
|
"origin": "one-app:wix-one-app-creation__creationStrings__messages_en.json:CREATION_APPS_GROUPS_TITLE_V3"
|
|
2152
2218
|
},
|
|
2153
|
-
"h_af74f7c5362a": {
|
|
2154
|
-
"key": "coupon.copyCta",
|
|
2155
|
-
"source": "Copy",
|
|
2156
|
-
"translation": "複製",
|
|
2157
|
-
"origin": "one-app:mobile-apps-ai-assistant-chat-sdk:assistant-sdk.user-message.action-sheet.copy"
|
|
2158
|
-
},
|
|
2159
2219
|
"h_b08a55be18c7": {
|
|
2160
2220
|
"key": "account.foodOrdersLink",
|
|
2161
2221
|
"source": "My food orders",
|
|
@@ -3374,6 +3434,12 @@
|
|
|
3374
3434
|
"translation": "查看您的點數",
|
|
3375
3435
|
"origin": "machine"
|
|
3376
3436
|
},
|
|
3437
|
+
"h_7185c7041086": {
|
|
3438
|
+
"source": "Rewards couldn't be loaded.",
|
|
3439
|
+
"translation": "無法載入獎勵。",
|
|
3440
|
+
"origin": "machine",
|
|
3441
|
+
"key": "loyalty.rewardsError"
|
|
3442
|
+
},
|
|
3377
3443
|
"h_846413d09f75": {
|
|
3378
3444
|
"key": "loyalty.sampleBody",
|
|
3379
3445
|
"source": "These are example rewards.",
|
|
@@ -3386,11 +3452,17 @@
|
|
|
3386
3452
|
"translation": "賺取點數的方式",
|
|
3387
3453
|
"origin": "machine"
|
|
3388
3454
|
},
|
|
3389
|
-
"
|
|
3390
|
-
"
|
|
3391
|
-
"
|
|
3392
|
-
"
|
|
3393
|
-
"
|
|
3455
|
+
"h_d7cb6ec96f76": {
|
|
3456
|
+
"source": "Ways to earn points couldn't be loaded.",
|
|
3457
|
+
"translation": "無法載入賺取點數的方式。",
|
|
3458
|
+
"origin": "machine",
|
|
3459
|
+
"key": "loyalty.earningError"
|
|
3460
|
+
},
|
|
3461
|
+
"h_d86cea85b83a": {
|
|
3462
|
+
"source": "Your points couldn't be loaded.",
|
|
3463
|
+
"translation": "無法載入您的點數。",
|
|
3464
|
+
"origin": "machine",
|
|
3465
|
+
"key": "loyalty.pointsError"
|
|
3394
3466
|
},
|
|
3395
3467
|
"h_accf40c89baa": {
|
|
3396
3468
|
"key": "groupAbout.createdLabel",
|
|
@@ -3602,24 +3674,6 @@
|
|
|
3602
3674
|
"translation": "我的獎勵",
|
|
3603
3675
|
"origin": "machine"
|
|
3604
3676
|
},
|
|
3605
|
-
"h_c6da2c79a98c": {
|
|
3606
|
-
"key": "loyalty.loadingRewards",
|
|
3607
|
-
"source": "Loading your rewards…",
|
|
3608
|
-
"translation": "正在載入您的獎勵…",
|
|
3609
|
-
"origin": "machine"
|
|
3610
|
-
},
|
|
3611
|
-
"h_69adb25e8e5f": {
|
|
3612
|
-
"key": "loyalty.refreshRewards",
|
|
3613
|
-
"source": "Refresh rewards",
|
|
3614
|
-
"translation": "重新整理獎勵",
|
|
3615
|
-
"origin": "machine"
|
|
3616
|
-
},
|
|
3617
|
-
"h_12c0937ec9b9": {
|
|
3618
|
-
"key": "loyalty.viewRewards",
|
|
3619
|
-
"source": "View rewards",
|
|
3620
|
-
"translation": "查看獎勵",
|
|
3621
|
-
"origin": "machine"
|
|
3622
|
-
},
|
|
3623
3677
|
"h_90eeb1008380": {
|
|
3624
3678
|
"key": "member.followingCta",
|
|
3625
3679
|
"source": "Following",
|
|
@@ -4472,6 +4526,91 @@
|
|
|
4472
4526
|
"translation": "页面",
|
|
4473
4527
|
"origin": "machine"
|
|
4474
4528
|
},
|
|
4529
|
+
"h_64c1180bcddc": {
|
|
4530
|
+
"source": "Update the app to see your points.",
|
|
4531
|
+
"translation": "请更新应用以查看你的积分。",
|
|
4532
|
+
"origin": "machine"
|
|
4533
|
+
},
|
|
4534
|
+
"h_c2847e164119": {
|
|
4535
|
+
"source": "Tier benefits couldn't be loaded.",
|
|
4536
|
+
"translation": "无法加载等级权益。",
|
|
4537
|
+
"origin": "machine"
|
|
4538
|
+
},
|
|
4539
|
+
"h_c8bd72be494e": {
|
|
4540
|
+
"source": "Use it when you place an order.",
|
|
4541
|
+
"translation": "下单时使用。",
|
|
4542
|
+
"origin": "machine"
|
|
4543
|
+
},
|
|
4544
|
+
"h_d13b09495ddd": {
|
|
4545
|
+
"source": "{amount} off",
|
|
4546
|
+
"translation": "减{amount}",
|
|
4547
|
+
"origin": "machine"
|
|
4548
|
+
},
|
|
4549
|
+
"h_ed19c1ddef04": {
|
|
4550
|
+
"source": "Earn points on every purchase",
|
|
4551
|
+
"translation": "每次购物都能赚取积分",
|
|
4552
|
+
"origin": "machine"
|
|
4553
|
+
},
|
|
4554
|
+
"h_e6cd73058b59": {
|
|
4555
|
+
"source": "{points} more",
|
|
4556
|
+
"translation": "还差{points}",
|
|
4557
|
+
"origin": "machine"
|
|
4558
|
+
},
|
|
4559
|
+
"h_3b1f0294f0d2": {
|
|
4560
|
+
"source": "{points} to {reward}",
|
|
4561
|
+
"translation": "距离{reward}还差{points}",
|
|
4562
|
+
"origin": "machine"
|
|
4563
|
+
},
|
|
4564
|
+
"h_7a60a09aaf0b": {
|
|
4565
|
+
"source": "Join {program}",
|
|
4566
|
+
"translation": "加入{program}",
|
|
4567
|
+
"origin": "machine"
|
|
4568
|
+
},
|
|
4569
|
+
"h_7b437d2cb227": {
|
|
4570
|
+
"source": "Sign up and get {points}",
|
|
4571
|
+
"translation": "注册即可获得{points}",
|
|
4572
|
+
"origin": "machine"
|
|
4573
|
+
},
|
|
4574
|
+
"h_5925a2d2c102": {
|
|
4575
|
+
"source": "Sign in to see your points",
|
|
4576
|
+
"translation": "登录以查看你的积分",
|
|
4577
|
+
"origin": "machine"
|
|
4578
|
+
},
|
|
4579
|
+
"h_9319a448c8f8": {
|
|
4580
|
+
"source": "Redeem points",
|
|
4581
|
+
"translation": "兑换积分",
|
|
4582
|
+
"origin": "machine"
|
|
4583
|
+
},
|
|
4584
|
+
"h_c11f4d86de1e": {
|
|
4585
|
+
"source": "{points} · {tier} tier",
|
|
4586
|
+
"translation": "{points} · {tier} 等級",
|
|
4587
|
+
"origin": "machine"
|
|
4588
|
+
},
|
|
4589
|
+
"h_7c45db5bfa04": {
|
|
4590
|
+
"source": "Redeem {name}?",
|
|
4591
|
+
"translation": "兑换{name}?",
|
|
4592
|
+
"origin": "machine"
|
|
4593
|
+
},
|
|
4594
|
+
"h_1a695823bef3": {
|
|
4595
|
+
"source": "{points} come off your balance. You get a coupon to use at checkout.",
|
|
4596
|
+
"translation": "将从你的余额中扣除{points}。你会获得一张结账时可用的优惠券。",
|
|
4597
|
+
"origin": "machine"
|
|
4598
|
+
},
|
|
4599
|
+
"h_d79cac3f6849": {
|
|
4600
|
+
"source": "Use it at checkout.",
|
|
4601
|
+
"translation": "结账时使用。",
|
|
4602
|
+
"origin": "machine"
|
|
4603
|
+
},
|
|
4604
|
+
"h_1cca33a67b6e": {
|
|
4605
|
+
"source": "Code copied",
|
|
4606
|
+
"translation": "已复制代码",
|
|
4607
|
+
"origin": "machine"
|
|
4608
|
+
},
|
|
4609
|
+
"h_1bfa8856b11f": {
|
|
4610
|
+
"source": "Couldn't copy the code.",
|
|
4611
|
+
"translation": "无法复制代码。",
|
|
4612
|
+
"origin": "machine"
|
|
4613
|
+
},
|
|
4475
4614
|
"h_1e9b74b4dda5": {
|
|
4476
4615
|
"source": "Show all ({count})",
|
|
4477
4616
|
"translation": "查看全部({count})",
|
|
@@ -5062,6 +5201,11 @@
|
|
|
5062
5201
|
"translation": "姓氏",
|
|
5063
5202
|
"origin": "one-app:wix-one-app-ecom-platform:STORE_FRONT_CHECKOUT_DELIVERY_LAST_NAME_PLACEHOLDER"
|
|
5064
5203
|
},
|
|
5204
|
+
"h_af74f7c5362a": {
|
|
5205
|
+
"source": "Copy",
|
|
5206
|
+
"translation": "複製",
|
|
5207
|
+
"origin": "one-app:mobile-apps-ai-assistant-chat-sdk:assistant-sdk.user-message.action-sheet.copy"
|
|
5208
|
+
},
|
|
5065
5209
|
"h_b4f57cd0cd5c": {
|
|
5066
5210
|
"source": "Move up",
|
|
5067
5211
|
"translation": "向上移動",
|
|
@@ -6372,11 +6516,6 @@
|
|
|
6372
6516
|
"translation": "獎勵計劃目前無法使用。",
|
|
6373
6517
|
"origin": "machine"
|
|
6374
6518
|
},
|
|
6375
|
-
"h_7185c7041086": {
|
|
6376
|
-
"source": "Rewards couldn't be loaded.",
|
|
6377
|
-
"translation": "無法載入獎勵。",
|
|
6378
|
-
"origin": "machine"
|
|
6379
|
-
},
|
|
6380
6519
|
"h_71a7ca855f38": {
|
|
6381
6520
|
"source": "point",
|
|
6382
6521
|
"translation": "點",
|
|
@@ -6387,11 +6526,6 @@
|
|
|
6387
6526
|
"translation": "尚無可兌換的獎勵。",
|
|
6388
6527
|
"origin": "machine"
|
|
6389
6528
|
},
|
|
6390
|
-
"h_7e52cf3e22c2": {
|
|
6391
|
-
"source": "Update the app to see your points securely.",
|
|
6392
|
-
"translation": "請更新應用程式,以安全地查看您的點數。",
|
|
6393
|
-
"origin": "machine"
|
|
6394
|
-
},
|
|
6395
6529
|
"h_819f41f05837": {
|
|
6396
6530
|
"source": "points",
|
|
6397
6531
|
"translation": "點數",
|
|
@@ -6412,24 +6546,14 @@
|
|
|
6412
6546
|
"translation": "賺取點數",
|
|
6413
6547
|
"origin": "one-app:wix-one-app-loyalty:OFFERING_SECTION_EARN_POINTS_TITLE"
|
|
6414
6548
|
},
|
|
6415
|
-
"h_bcb50b6c455c": {
|
|
6416
|
-
"source": "No ways to earn points yet.",
|
|
6417
|
-
"translation": "目前沒有賺取點數的方式。",
|
|
6418
|
-
"origin": "machine"
|
|
6419
|
-
},
|
|
6420
6549
|
"h_c7d7652ec6a7": {
|
|
6421
6550
|
"source": "Reward",
|
|
6422
6551
|
"translation": "獎勵",
|
|
6423
6552
|
"origin": "machine"
|
|
6424
6553
|
},
|
|
6425
|
-
"
|
|
6426
|
-
"source": "
|
|
6427
|
-
"translation": "
|
|
6428
|
-
"origin": "machine"
|
|
6429
|
-
},
|
|
6430
|
-
"h_d86cea85b83a": {
|
|
6431
|
-
"source": "Your points couldn't be loaded.",
|
|
6432
|
-
"translation": "無法載入您的點數。",
|
|
6554
|
+
"h_ceb5aade88f5": {
|
|
6555
|
+
"source": "My points",
|
|
6556
|
+
"translation": "我的點數",
|
|
6433
6557
|
"origin": "machine"
|
|
6434
6558
|
},
|
|
6435
6559
|
"h_defbf0464828": {
|
|
@@ -6657,11 +6781,6 @@
|
|
|
6657
6781
|
"translation": "{points} 起",
|
|
6658
6782
|
"origin": "machine"
|
|
6659
6783
|
},
|
|
6660
|
-
"h_757e2a5243d1": {
|
|
6661
|
-
"source": "Tier benefits couldn't be loaded. Showing the base offering.",
|
|
6662
|
-
"translation": "無法載入等級福利。目前顯示基本方案。",
|
|
6663
|
-
"origin": "machine"
|
|
6664
|
-
},
|
|
6665
6784
|
"h_9dae04fa4d32": {
|
|
6666
6785
|
"source": "{benefit} · {cost}",
|
|
6667
6786
|
"translation": "{benefit} · {cost}",
|
|
@@ -6722,16 +6841,16 @@
|
|
|
6722
6841
|
"translation": "您的優惠券",
|
|
6723
6842
|
"origin": "machine"
|
|
6724
6843
|
},
|
|
6844
|
+
"h_12c0937ec9b9": {
|
|
6845
|
+
"source": "View rewards",
|
|
6846
|
+
"translation": "查看獎勵",
|
|
6847
|
+
"origin": "machine"
|
|
6848
|
+
},
|
|
6725
6849
|
"h_eb5831b43f17": {
|
|
6726
6850
|
"source": "Check your coupons: this redemption could not be confirmed.",
|
|
6727
6851
|
"translation": "請檢查您的優惠券:無法確認此次兌換。",
|
|
6728
6852
|
"origin": "machine"
|
|
6729
6853
|
},
|
|
6730
|
-
"h_aac1b3b2ed8f": {
|
|
6731
|
-
"source": "Use this reward when placing an order.",
|
|
6732
|
-
"translation": "下訂單時可使用此獎勵。",
|
|
6733
|
-
"origin": "machine"
|
|
6734
|
-
},
|
|
6735
6854
|
"h_9b8366724f5d": {
|
|
6736
6855
|
"source": "Use this reward at checkout.",
|
|
6737
6856
|
"translation": "結帳時可使用此獎勵。",
|
|
@@ -6742,21 +6861,6 @@
|
|
|
6742
6861
|
"translation": "您的等級無法使用此獎勵。",
|
|
6743
6862
|
"origin": "machine"
|
|
6744
6863
|
},
|
|
6745
|
-
"h_057311f60d43": {
|
|
6746
|
-
"source": "{points} more needed",
|
|
6747
|
-
"translation": "還需要 {points}",
|
|
6748
|
-
"origin": "machine"
|
|
6749
|
-
},
|
|
6750
|
-
"h_634b1050909f": {
|
|
6751
|
-
"source": "Available to redeem",
|
|
6752
|
-
"translation": "可兌換",
|
|
6753
|
-
"origin": "machine"
|
|
6754
|
-
},
|
|
6755
|
-
"h_ca721b8c13d7": {
|
|
6756
|
-
"source": "Reward redeemed. Use this coupon at checkout.",
|
|
6757
|
-
"translation": "獎勵已兌換。結帳時請使用此優惠券。",
|
|
6758
|
-
"origin": "machine"
|
|
6759
|
-
},
|
|
6760
6864
|
"h_ea95e4bd6890": {
|
|
6761
6865
|
"source": "Reward redeemed. Your balance couldn't be refreshed; refresh before redeeming again.",
|
|
6762
6866
|
"translation": "獎勵已兌換。無法重新整理您的餘額,請先重新整理再兌換。",
|
|
@@ -6767,21 +6871,11 @@
|
|
|
6767
6871
|
"translation": "無法確認兌換結果。請先檢查您的優惠券與餘額,再重新兌換。此動作不會自動重試。",
|
|
6768
6872
|
"origin": "machine"
|
|
6769
6873
|
},
|
|
6770
|
-
"h_e53b86e7acca": {
|
|
6771
|
-
"source": "Your rewards couldn't be loaded. Try again.",
|
|
6772
|
-
"translation": "無法載入您的獎勵。請再試一次。",
|
|
6773
|
-
"origin": "machine"
|
|
6774
|
-
},
|
|
6775
6874
|
"h_7857e4cde962": {
|
|
6776
6875
|
"source": "This reward can't be redeemed with your current points and tier.",
|
|
6777
6876
|
"translation": "您目前的點數與等級無法兌換此獎勵。",
|
|
6778
6877
|
"origin": "machine"
|
|
6779
6878
|
},
|
|
6780
|
-
"h_ae440faf30da": {
|
|
6781
|
-
"source": "Redeem {name} for {points}?",
|
|
6782
|
-
"translation": "要用 {points} 兌換 {name} 嗎?",
|
|
6783
|
-
"origin": "machine"
|
|
6784
|
-
},
|
|
6785
6879
|
"h_12d34c9922ca": {
|
|
6786
6880
|
"source": "Redeeming…",
|
|
6787
6881
|
"translation": "兌換中…",
|
|
@@ -99,7 +99,6 @@ export const COLLECTIONS: Record<string, CollectionConfig> = {
|
|
|
99
99
|
himiBrandedPrograms: { rows: 'rows', title: 'name', subtitle: 'description', image: 'image', view: 'grid' },
|
|
100
100
|
himiBrandedCoupons: { rows: 'coupons', title: 'name', subtitle: 'subtitle', view: 'list', primaryVerb: { label: 'Get code' } },
|
|
101
101
|
himiBrandedNotifications: { rows: 'items', title: 'name', subtitle: 'subtitle', image: 'photo', metadata: ['unreadDot'], view: 'list' },
|
|
102
|
-
himiBrandedLoyalty: { rows: 'rewards', title: 'name', subtitle: 'description', view: 'grid', primaryVerb: { label: 'Redeem' } },
|
|
103
102
|
himiBrandedReviews: { rows: 'reviews', title: 'title', subtitle: 'body', metadata: ['author'], rating: 'rating', view: 'list' },
|
|
104
103
|
himiBrandedPortfolio: { rows: 'projects', title: 'title', subtitle: 'subtitle', image: 'image', view: 'grid', gridImageHeight: 180 },
|
|
105
104
|
himiBrandedInvoices: { rows: 'invoices', title: 'title', subtitle: 'subtitle', view: 'list' },
|
|
@@ -13,8 +13,15 @@ export interface OfferingGroup {
|
|
|
13
13
|
}
|
|
14
14
|
export const OFFERING_TIER_LIMIT = 3; // wix-loyalty-mobile constants/common.ts
|
|
15
15
|
const amount = (v: unknown): v is number => typeof v === "number" && Number.isFinite(v) && v >= 0;
|
|
16
|
+
/** The program's own name for its points, or "" for the default. A program left on the English
|
|
17
|
+
* default ("points", as amit1 is) gets the app's own plural, so it reads "1 point", not "1 points". */
|
|
18
|
+
export function customPointName(name: string | undefined): string {
|
|
19
|
+
const trimmed = (name ?? "").trim();
|
|
20
|
+
return /^points?$/i.test(trimmed) ? "" : trimmed;
|
|
21
|
+
}
|
|
16
22
|
export function pointLabel(value: number, unit: string): string {
|
|
17
|
-
|
|
23
|
+
const custom = customPointName(unit);
|
|
24
|
+
return copyTemplate("loyalty.pointsLabel", "{points} {unit}", { points: formatNumber(value), unit: custom || copyParam(isSingular(value) ? "loyalty.pointOne" : "loyalty.pointMany", isSingular(value) ? "point" : "points") });
|
|
18
25
|
}
|
|
19
26
|
export function rewardConfigs(reward: WixLoyaltyReward): WixLoyaltyRewardConfig[] | undefined {
|
|
20
27
|
return reward.discountAmount?.configsByTier ?? reward.couponReward?.fixedAmount?.configsByTier
|
|
@@ -27,7 +34,7 @@ export function memberRewardCost(reward: WixLoyaltyReward, tierId?: string): num
|
|
|
27
34
|
const config = configFor(configs, tierId);
|
|
28
35
|
return amount(config?.costInPoints) ? config.costInPoints : undefined;
|
|
29
36
|
}
|
|
30
|
-
function configFor<T extends { tierId?: string }>(configs: T[] | undefined, tierId?: string): T | undefined {
|
|
37
|
+
export function configFor<T extends { tierId?: string }>(configs: T[] | undefined, tierId?: string): T | undefined {
|
|
31
38
|
const rows = configs?.filter(c => (c.tierId || undefined) === tierId);
|
|
32
39
|
return rows?.length === 1 ? rows[0] : undefined;
|
|
33
40
|
}
|
|
@@ -39,18 +46,22 @@ export function offeringRewardLabel(reward: WixLoyaltyReward, tierId: string | u
|
|
|
39
46
|
: cost === 0 ? copyParam("loyalty.free", "Free") : pointLabel(cost, unit);
|
|
40
47
|
let benefit = "";
|
|
41
48
|
const money = Number(config?.amount);
|
|
42
|
-
|
|
49
|
+
// "₪70 off": the amount the API returns, in the build's verified currency. No currency, no amount.
|
|
50
|
+
if (config?.amount !== undefined && amount(money) && currency) benefit = copyTemplate("loyalty.amountOff", "{amount} off", { amount: formatCurrency(money, currency, undefined, Number.isInteger(money) ? 0 : undefined) });
|
|
43
51
|
else if (amount(config?.percentage)) benefit = copyTemplate("loyalty.percentOff", "{percent}% off", { percent: formatNumber(config.percentage) });
|
|
44
52
|
else if (reward.couponReward?.freeShipping) benefit = copyParam("loyalty.freeShipping", "Free shipping");
|
|
45
53
|
return benefit ? copyTemplate("loyalty.benefitCost", "{benefit} · {cost}", { benefit, cost: price }) : price;
|
|
46
54
|
}
|
|
47
|
-
|
|
55
|
+
/** "10 points", "1 point per ₪1". A spend rule with no verified currency (or an unreadable rate)
|
|
56
|
+
* says only that it earns on purchases: the plan never guesses a currency, and a spend rule never
|
|
57
|
+
* says "unavailable". A fixed rule with no configuration for this tier still does. */
|
|
58
|
+
export function earningLabel(rule: WixLoyaltyEarningRule, tierId: string | undefined, unit: string, currency: string): string {
|
|
48
59
|
if (rule.fixedAmount) {
|
|
49
60
|
const value = configFor(rule.fixedAmount.configs, tierId)?.points;
|
|
50
61
|
return amount(value) ? pointLabel(value, unit) : copyParam("loyalty.earningUnavailable", "Points details unavailable");
|
|
51
62
|
}
|
|
52
63
|
const rate = configFor(rule.conversionRate?.configs, tierId);
|
|
53
|
-
if (!rate || !amount(rate.points) || !amount(rate.moneyAmount) || rate.moneyAmount === 0 || !currency) return copyParam("loyalty.
|
|
64
|
+
if (!rate || !amount(rate.points) || !amount(rate.moneyAmount) || rate.moneyAmount === 0 || !currency) return copyParam("loyalty.earnOnPurchase", "Earn points on every purchase");
|
|
54
65
|
return copyTemplate("loyalty.pointsPerSpend", "{points} per {amount}", {
|
|
55
66
|
points: pointLabel(rate.points, unit), amount: formatCurrency(rate.moneyAmount, currency, undefined, Number.isInteger(rate.moneyAmount) ? 0 : undefined),
|
|
56
67
|
});
|
|
@@ -68,6 +79,13 @@ export function buildOfferings(program: WixLoyaltyTiersProgram | undefined, rewa
|
|
|
68
79
|
earningRules, rewards: tierRewards, hideEarning: !earningRules.length, hideRewards: !tierRewards.length, hideTitle: !active };
|
|
69
80
|
});
|
|
70
81
|
}
|
|
82
|
+
/** The member's tier name; "" when the tiers program is not ACTIVE or the tier is unknown. No
|
|
83
|
+
* `tier.id` means the base tier, whose name lives in the program settings. */
|
|
84
|
+
export function currentTierName(tiers: WixLoyaltyTiersProgram | undefined, tierId: string | undefined): string {
|
|
85
|
+
if (tiers?.programSettings?.status !== "ACTIVE") return "";
|
|
86
|
+
if (!tierId) return (tiers.programSettings.baseTierDefinition?.name ?? "").trim();
|
|
87
|
+
return (tiers.tiers?.find(tier => tier.id === tierId)?.tierDefinition?.name ?? "").trim();
|
|
88
|
+
}
|
|
71
89
|
export function visibleOfferings(groups: OfferingGroup[], expanded: boolean): OfferingGroup[] {
|
|
72
90
|
return expanded ? groups : groups.slice(0, OFFERING_TIER_LIMIT);
|
|
73
91
|
}
|
|
@@ -58,7 +58,7 @@ export function registerLoyaltyStatusSection(serviceName: string, _options: obje
|
|
|
58
58
|
if (!member.email) return view("ready", { guest: true });
|
|
59
59
|
// The same condition the Rewards screen applies before it reads a balance: a host that cannot prove the member to Wix reads none.
|
|
60
60
|
const supported = !!member.scope && ((globalThis as { himalaya?: { readLifecycleVersion?: number } }).himalaya?.readLifecycleVersion ?? 0) >= 1;
|
|
61
|
-
if (!supported) return view("ready", { message: copyParam("loyalty.updateApp", "Update the app to see your points
|
|
61
|
+
if (!supported) return view("ready", { message: copyParam("loyalty.updateApp", "Update the app to see your points.") });
|
|
62
62
|
try {
|
|
63
63
|
const [program, account, tiers] = await Promise.allSettled([getLoyaltyProgram(), getCurrentMemberLoyaltyAccount(), getLoyaltyTiersProgram()]);
|
|
64
64
|
await assertMemberAccess(member);
|