diff --git a/automatic-off-session-payment/en.json b/automatic-off-session-payment/en.json
new file mode 100644
index 0000000..cd2538d
--- /dev/null
+++ b/automatic-off-session-payment/en.json
@@ -0,0 +1,11 @@
+{
+ "BookingAutoDeclinedRequest.BookingCta": "Book something else instead",
+ "BookingAutoDeclinedRequest.Subject": "Your booking request expired",
+ "BookingAutoDeclinedRequest.Title": "Your booking request expired",
+ "OffSessionBookingAccepted.BookingBreakdown": "Your card will be charged {amount,number,::.00} {currency} on {date,date,::YYYYMMMd}. Here's the booking breakdown.",
+ "OffSessionBookingDeclinedRequest.Content": "Unfortunately {providerDisplayName} decided to decline your booking request for {listingTitle} from {dateStart,date,::hmmaYYYYMMMd} to {dateEnd,date,::hmmaYYYYMMMd}. You have not been billed.",
+ "OffSessionBookingManualPaymentWanted.ButtonCta": "Visit payment page",
+ "OffSessionBookingManualPaymentWanted.Content": "You recently booked {listingTitle} from {providerDisplayName}. To complete your payment, we need you to take action.",
+ "OffSessionBookingManualPaymentWanted.Subject": "Confirm your payment for {listingTitle}",
+ "OffSessionBookingManualPaymentWanted.Title": "Please confirm your payment for {listingTitle}"
+}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-accepted-request/booking-accepted-request-html.html b/automatic-off-session-payment/templates/booking-accepted-request/booking-accepted-request-html.html
index e454327..b03775f 100644
--- a/automatic-off-session-payment/templates/booking-accepted-request/booking-accepted-request-html.html
+++ b/automatic-off-session-payment/templates/booking-accepted-request/booking-accepted-request-html.html
@@ -1,11 +1,13 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
Your bo
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "hour" "hours"}}
- Seats ×
- {{number seats}}
+ {{t "BookingAcceptedRequest.PriceBreakdownHourlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -219,9 +235,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "hour" "hours"}}
+ {{t "BookingAcceptedRequest.PriceBreakdownHourly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
@@ -242,11 +256,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "day" "days"}}
- Seats ×
- {{number seats}}
+ {{t "BookingAcceptedRequest.PriceBreakdownDailyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -264,9 +274,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "day" "days"}}
+ {{t "BookingAcceptedRequest.PriceBreakdownDaily" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
@@ -287,11 +295,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "night" "nights"}}
- Seats ×
- {{number seats}}
+ {{t "BookingAcceptedRequest.PriceBreakdownNightlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -309,9 +313,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "night" "nights"}}
+ {{t "BookingAcceptedRequest.PriceBreakdownNightly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
@@ -324,6 +326,22 @@ Your bo
{{/if}}
{{/eq}}
+{{#eq "line-item/customer-commission" code}}
+
+
+
+ |
+ |
+ {{t "BookingAcceptedRequest.MarketplaceFeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name}}
+ |
+
+ {{> format-money money=line-total}}
+ |
+
+
+
+
+{{/eq}}
{{/contains}}
{{/each}}
Your bo
|
|
|
- Total price
+ {{t "BookingAcceptedRequest.TotalPrice" "Total price"}}
|
@@ -352,15 +370,9 @@ Your bo
width="100%">
- | View
- order
- details
+ | {{t "BookingAcceptedRequest.Cta" "View order details"}}
|
@@ -370,10 +382,7 @@ Your bo
{{/with}}
- You have
- received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/automatic-off-session-payment/templates/booking-accepted-request/booking-accepted-request-subject.txt b/automatic-off-session-payment/templates/booking-accepted-request/booking-accepted-request-subject.txt
index 8abd803..2ece41e 100644
--- a/automatic-off-session-payment/templates/booking-accepted-request/booking-accepted-request-subject.txt
+++ b/automatic-off-session-payment/templates/booking-accepted-request/booking-accepted-request-subject.txt
@@ -1 +1 @@
-{{transaction.provider.display-name}} accepted your booking request!
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingAcceptedRequest.Subject" "Your booking request was accepted" }}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-auto-declined-request/booking-auto-declined-request-html.html b/automatic-off-session-payment/templates/booking-auto-declined-request/booking-auto-declined-request-html.html
index c27d4b9..d946dba 100644
--- a/automatic-off-session-payment/templates/booking-auto-declined-request/booking-auto-declined-request-html.html
+++ b/automatic-off-session-payment/templates/booking-auto-declined-request/booking-auto-declined-request-html.html
@@ -1,16 +1,12 @@
-
+{{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
-{{~#*inline "format-date"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="h:mm a" tz=timezone}} on
-{{date date format="MMM d, YYYY" tz=timezone}}
-{{/with}}
-{{~/inline~}}
{{#with transaction}}
- Your booking request has expired.
+ {{t "BookingAutoDeclinedRequest.Title" "Your booking request expired" }}
- Unfortunately
- {{ provider.display-name }} didn't respond to your booking request for
- {{ listing.title }} from
- {{> format-date date=booking.start}} to
- {{> format-date date=booking.end}} on time, so the request has expired. You have not been billed.
+ {{t "BookingAutoDeclinedRequest.Content" "{providerDisplayName} didn't respond to your booking request for {listingTitle} from {dateStart,date,::hmmaYYYYMMMd} to {dateEnd,date,::hmmaYYYYMMMd} on time, so your request expired. Your card has not been charged." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title providerDisplayName=provider.display-name}}
- Book something else instead
+ {{t "BookingAutoDeclinedRequest.BookingCta" "Book something else instead"}}
{{/with}}
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
|
diff --git a/automatic-off-session-payment/templates/booking-auto-declined-request/booking-auto-declined-request-subject.txt b/automatic-off-session-payment/templates/booking-auto-declined-request/booking-auto-declined-request-subject.txt
index 83ecaff..bf3b462 100644
--- a/automatic-off-session-payment/templates/booking-auto-declined-request/booking-auto-declined-request-subject.txt
+++ b/automatic-off-session-payment/templates/booking-auto-declined-request/booking-auto-declined-request-subject.txt
@@ -1 +1 @@
-Your booking request has expired
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingAutoDeclinedRequest.Subject" "Your booking request expired" }}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-declined-request/booking-declined-request-html.html b/automatic-off-session-payment/templates/booking-declined-request/booking-declined-request-html.html
index 59ce7f4..8e73c69 100644
--- a/automatic-off-session-payment/templates/booking-declined-request/booking-declined-request-html.html
+++ b/automatic-off-session-payment/templates/booking-declined-request/booking-declined-request-html.html
@@ -1,16 +1,18 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
-{{~#*inline "format-date"~}}
+
{{#with transaction}}
- Your booking request was declined
+ {{t "BookingDeclinedRequest.Title" "Your booking request was declined" }}
- Unfortunately
- {{ provider.display-name }} decided to decline your booking request for
- {{ listing.title }} from
- {{> format-date date=booking.start}} to
- {{> format-date date=booking.end}}. You have not been billed.
+ {{t "OffSessionBookingDeclinedRequest.Content" "Unfortunately {providerDisplayName} decided to decline your booking request for {listingTitle} from {dateStart,date,::hmmaYYYYMMMd} to {dateEnd,date,::hmmaYYYYMMMd}. You have not been billed." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title providerDisplayName=provider.display-name}}
- Book something else instead
+ {{t "BookingDeclinedRequest.MarketplaceLinkText" "Book something else instead"}}
{{/with}}
-
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
|
diff --git a/automatic-off-session-payment/templates/booking-declined-request/booking-declined-request-subject.txt b/automatic-off-session-payment/templates/booking-declined-request/booking-declined-request-subject.txt
index 4e7227c..9b8b087 100644
--- a/automatic-off-session-payment/templates/booking-declined-request/booking-declined-request-subject.txt
+++ b/automatic-off-session-payment/templates/booking-declined-request/booking-declined-request-subject.txt
@@ -1 +1 @@
-{{transaction.provider.display-name}} declined your booking request
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingDeclinedRequest.Subject" "Your booking request was declined" }}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-manual-payment-wanted/booking-manual-payment-wanted-html.html b/automatic-off-session-payment/templates/booking-manual-payment-wanted/booking-manual-payment-wanted-html.html
index c9d4620..fc37421 100644
--- a/automatic-off-session-payment/templates/booking-manual-payment-wanted/booking-manual-payment-wanted-html.html
+++ b/automatic-off-session-payment/templates/booking-manual-payment-wanted/booking-manual-payment-wanted-html.html
@@ -1,7 +1,9 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
@@ -16,21 +18,17 @@
style="max-width:600px;margin:0 auto">
- Please confirm your payment for {{listing.title}}!
+ {{t "OffSessionBookingManualPaymentWanted.Title" "Please confirm your payment for {listingTitle}" listingTitle=listing.title}}
- You recently booked {{listing.title}} from {{provider.display-name}}. To complete your payment, we need you to take action.
+ {{t "OffSessionBookingManualPaymentWanted.Content" "You recently booked {listingTitle} from {providerDisplayName}. To complete your payment, we need you to take action." listingTitle=listing.title providerDisplayName=provider.display-name}}
- | Payment page
+ |
+ {{t "OffSessionBookingManualPaymentWanted.ButtonCta" "Visit payment page"}}
|
@@ -43,9 +41,7 @@ Please
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/automatic-off-session-payment/templates/booking-manual-payment-wanted/booking-manual-payment-wanted-subject.txt b/automatic-off-session-payment/templates/booking-manual-payment-wanted/booking-manual-payment-wanted-subject.txt
index a12e956..050d790 100644
--- a/automatic-off-session-payment/templates/booking-manual-payment-wanted/booking-manual-payment-wanted-subject.txt
+++ b/automatic-off-session-payment/templates/booking-manual-payment-wanted/booking-manual-payment-wanted-subject.txt
@@ -1 +1 @@
-Confirm your payment for {{transaction.listing.title}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "OffSessionBookingManualPaymentWanted.Subject" "Confirm your payment for {listingTitle}" listingTitle=transaction.listing.title}}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-money-paid/booking-money-paid-html.html b/automatic-off-session-payment/templates/booking-money-paid/booking-money-paid-html.html
index fdd947a..236c649 100644
--- a/automatic-off-session-payment/templates/booking-money-paid/booking-money-paid-html.html
+++ b/automatic-off-session-payment/templates/booking-money-paid/booking-money-paid-html.html
@@ -1,11 +1,13 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
-{{~#*inline "format-money"~}}
+
+ {{~#*inline "format-money"~}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount currency=money.currency}}{{~/inline~}}
+ {{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
{{#with transaction}}
- You have been paid
- {{> format-money money=payout-total}}
+ {{t "BookingMoneyPaid.Title" "You have been paid {amount,number,::.00} {currency}" amount=payout-total.amount currency=payout-total.currency}}
{{#each tx-line-items}}
{{#eq "line-item/hour" code}}
- We have sent you
- {{> format-money money=payout-total}} for the booking of
- {{ listing.title }} from
- {{> format-date date=booking.start}} to
- {{> format-date date=booking.end}} by
- {{ customer.display-name }}. It might take up to 7 days for the money to reach your bank account.
+ {{t "BookingMoneyPaid.ContentForHourly" "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::jmmYYYYMMMd} to {dateEnd,date,::jmmYYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account." amount=payout-total.amount currency=payout-total.currency listingTitle=listing.title dateStart=booking.start dateEnd=booking.end customerDisplayName=customer.display-name}}
{{/ eq}}
{{#eq "line-item/day" code}}
- We have sent you
- {{> format-money money=payout-total}} for the booking of
- {{ listing.title }} from
- {{> format-date-day date=booking.start}} to
- {{> format-date-day-before date=booking.end}} by
- {{ customer.display-name }}. It might take up to 7 days for the money to reach your bank account.
+ {{t "BookingMoneyPaid.ContentForDaily" "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account." amount=payout-total.amount currency=payout-total.currency listingTitle=listing.title dateStart=booking.start dateEnd=(date-transform booking.end days=-1) customerDisplayName=customer.display-name}}
{{/ eq}}
{{#eq "line-item/night" code}}
- We have sent you
- {{> format-money money=payout-total}} for the booking of
- {{ listing.title }} from
- {{> format-date-day date=booking.start}} to
- {{> format-date-day date=booking.end}} by
- {{ customer.display-name }}. It might take up to 7 days for the money to reach your bank account.
+ {{t "BookingMoneyPaid.ContentForNightly" "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account." amount=payout-total.amount currency=payout-total.currency listingTitle=listing.title dateStart=booking.start dateEnd=booking.end customerDisplayName=customer.display-name}}
{{/ eq}}
{{/each}}
- Here's the booking breakdown.
+ {{t "BookingMoneyPaid.BookingBreakdownTitle" "Here's the booking breakdown."}}
You hav
|
|
- Start
+ {{t "BookingMoneyPaid.StartLabel" "Start"}}
|
- End
+ {{t "BookingMoneyPaid.EndLabel" "End"}}
|
@@ -128,6 +120,20 @@ You hav
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+
{{/eq}}
{{#eq "line-item/day" code}}
@@ -148,7 +154,20 @@ You hav
-
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date-day-before date=booking.end}}
+ |
+
+
+
+
{{/eq}}
{{#eq "line-item/night" code}}
@@ -169,27 +188,22 @@ You hav
-
-{{/eq}}
-{{/each}}
|
- |
-
- {{> format-month-date date=booking.start}}
- |
-
-
- {{> format-month-date date=booking.end}}
- |
+
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+{{/eq}}
+{{/each}}
{{#each tx-line-items}}
{{#contains include-for "provider"}}
{{#eq "line-item/hour" code}}
@@ -200,11 +214,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "hour" "hours"}}
- Seats ×
- {{number seats}}
+ {{t "BookingMoneyPaid.PriceBreakdownHourlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -222,9 +232,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "hour" "hours"}}
+ {{t "BookingMoneyPaid.PriceBreakdownHourly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
@@ -245,11 +253,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "day" "days"}}
- Seats ×
- {{number seats}}
+ {{t "BookingMoneyPaid.PriceBreakdownDailyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -267,9 +271,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "day" "days"}}
+ {{t "BookingMoneyPaid.PriceBreakdownDaily" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
@@ -290,11 +292,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "night" "nights"}}
- Seats ×
- {{number seats}}
+ {{t "BookingMoneyPaid.PriceBreakdownNightlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -312,9 +310,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "night" "nights"}}
+ {{t "BookingMoneyPaid.PriceBreakdownNightly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
@@ -334,7 +330,7 @@ You hav
|
|
- {{ marketplace.name }} fee
+ {{t "BookingMoneyPaid.FeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name }}
|
@@ -355,8 +351,7 @@ You hav
|
|
- You'll
- earn
+ {{t "BookingMoneyPaid.PayoutLabel" "You'll earn"}}
|
@@ -374,15 +369,9 @@ You hav
width="100%">
- | View
- order
- details
+ | {{t "BookingMoneyPaid.Cta" "View order details"}}
|
@@ -392,10 +381,7 @@ You hav
{{/with}}
- You have
- received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/automatic-off-session-payment/templates/booking-money-paid/booking-money-paid-subject.txt b/automatic-off-session-payment/templates/booking-money-paid/booking-money-paid-subject.txt
index 229cbd6..590f7e3 100644
--- a/automatic-off-session-payment/templates/booking-money-paid/booking-money-paid-subject.txt
+++ b/automatic-off-session-payment/templates/booking-money-paid/booking-money-paid-subject.txt
@@ -1 +1 @@
-You have been paid {{money-amount transaction.payout-total}} {{transaction.payout-total.currency}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingMoneyPaid.Subject" "You have been paid {amount,number,::.00} {currency}" amount=transaction.payout-total.amount currency=transaction.payout-total.currency}}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-new-request/booking-new-request-html.html b/automatic-off-session-payment/templates/booking-new-request/booking-new-request-html.html
index 24b93d0..618066f 100644
--- a/automatic-off-session-payment/templates/booking-new-request/booking-new-request-html.html
+++ b/automatic-off-session-payment/templates/booking-new-request/booking-new-request-html.html
@@ -1,11 +1,13 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
-{{~#*inline "format-money"~}}
+
+ {{~#*inline "format-money"~}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount currency=money.currency}}{{~/inline~}}
+ {{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
{{#with transaction}}
- You have a new booking request
- for
- {{listing.title}}
- {{#each tx-line-items}}
- {{#eq "line-item/hour" code}}
-
- {{customer.display-name}} requested to book
- {{listing.title}} in
- {{marketplace.name}}.
- {{/ eq}}
- {{#eq "line-item/day" code}}
-
- {{customer.display-name}} requested to book
- {{listing.title}} in
- {{marketplace.name}}.
- {{/ eq}}
- {{#eq "line-item/night" code}}
-
- {{customer.display-name}} requested to book
- {{listing.title}} in
- {{marketplace.name}}.
- {{/ eq}}
- {{/each}}
+ {{t "BookingNewRequest.Title" "You have a new booking request for {listingTitle}" listingTitle=listing.title}}
+ {{t "BookingNewRequest.Description" "{customerDisplayName} requested to book {listingTitle} in {marketplaceName}." customerDisplayName=customer.display-name listingTitle=listing.title marketplaceName=marketplace.name}}
@@ -91,11 +78,11 @@ You hav
|
|
- Start
+ {{t "BookingNewRequest.StartLabel" "Start"}}
|
- End
+ {{t "BookingNewRequest.EndLabel" "End"}}
|
@@ -120,6 +107,20 @@ You hav
+
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
{{/eq}}
{{#eq "line-item/day" code}}
@@ -141,7 +142,20 @@ You hav
|
-
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date-day-before date=booking.end}}
+ |
+
+
+
+
{{/eq}}
{{#eq "line-item/night" code}}
@@ -162,27 +176,22 @@ You hav
-
-{{/eq}}
-{{/each}}
-
+
|
- |
-
- {{> format-month-date date=booking.start}}
- |
-
-
- {{> format-month-date date=booking.end}}
- |
+
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+{{/eq}}
+{{/each}}
{{#each tx-line-items}}
{{#contains include-for "provider"}}
{{#eq "line-item/hour" code}}
@@ -193,11 +202,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "hour" "hours"}}
- Seats ×
- {{number seats}}
+ {{t "BookingNewRequest.PriceForHoursQuantityWithSeats" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency units=units seats=seats}}
|
@@ -215,9 +220,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "hour" "hours"}}
+ {{t "BookingNewRequest.PriceForHoursQuantity" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency units=quantity}}
|
@@ -238,11 +241,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "day" "days"}}
- Seats ×
- {{number seats}}
+ {{t "BookingNewRequest.PriceForDaysQuantityWithSeats" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency units=units seats=seats}}
|
@@ -260,9 +259,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "day" "days"}}
+ {{t "BookingNewRequest.PriceForDaysQuantity" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {day} other {days}}" amount=unit-price.amount currency=unit-price.currency units=quantity}}
|
@@ -283,11 +280,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "night" "nights"}}
- Seats ×
- {{number seats}}
+ {{t "BookingNewRequest.PriceForNightsQuantityWithSeats" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency units=units seats=seats}}
|
@@ -305,9 +298,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "night" "nights"}}
+ {{t "BookingNewRequest.PriceForNightsQuantity" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency units=quantity}}
|
@@ -327,7 +318,7 @@ You hav
|
|
- {{ marketplace.name }} fee
+ {{t "BookingNewRequest.MarketplaceFeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name}}
|
@@ -347,7 +338,7 @@ You hav
|
|
- You'll earn
+ {{t "BookingNewRequest.EarningLabel" "You'll earn"}}
|
@@ -361,24 +352,15 @@ You hav
|
| | | | | | |
-You need to accept the request by
- {{> format-date date=delayed-transition.run-at}}. Otherwise the request will expire automatically and you won't
- get paid.
-If the booked dates don't work for you, you
- can also choose to decline the request.
+{{t "BookingNewRequest.AcceptText" "You need to accept the request by {date,date,::jmmYYYYMMMd}. Otherwise the request will expire automatically and you won't get paid." date=delayed-transition.run-at}}
+{{t "BookingNewRequest.DeclineOptionText" "If the booked dates don't work for you, you can also choose to decline the request."}}
- | Accept
- or Decline the
- booking
+ | {{t "BookingNewRequest.AcceptOrDeclineLink" "Accept or Decline the booking"}}
|
@@ -388,10 +370,7 @@ You hav
{{/with}}
- You have
- received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name}}
diff --git a/automatic-off-session-payment/templates/booking-new-request/booking-new-request-subject.txt b/automatic-off-session-payment/templates/booking-new-request/booking-new-request-subject.txt
index c75c377..6e02e60 100644
--- a/automatic-off-session-payment/templates/booking-new-request/booking-new-request-subject.txt
+++ b/automatic-off-session-payment/templates/booking-new-request/booking-new-request-subject.txt
@@ -1 +1 @@
-{{transaction.customer.display-name}} has requested to book {{transaction.listing.title}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingNewRequest.Subject" "{customerDisplayName} requested to book {listingTitle}" customerDisplayName=transaction.customer.display-name listingTitle=transaction.listing.title}}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html b/automatic-off-session-payment/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html
index 9144d0b..d56ebfd 100644
--- a/automatic-off-session-payment/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html
+++ b/automatic-off-session-payment/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html
@@ -1,7 +1,9 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
@@ -16,27 +18,17 @@
style="max-width:600px;margin:0 auto">
- Review your experience with
- {{listing.title}}
- You recently booked
- {{listing.title}} from
- {{provider.display-name}}. Please leave a review to describe your experience.
+ {{t "BookingReviewByCustomerWanted.Title" "Review your experience with {listingTitle}" listingTitle=listing.title}}
+ {{t "BookingReviewByCustomerWanted.Content" "You recently booked {listingTitle} from {providerDisplayName}. Please leave a review to describe your experience." listingTitle=listing.title providerDisplayName=provider.display-name}}
{{/with}}
- | Leave
- a
- review
+ | {{t "BookingReviewByCustomerWanted.Cta" "Leave a review"}}
|
@@ -46,9 +38,7 @@ Review
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/automatic-off-session-payment/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-subject.txt b/automatic-off-session-payment/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-subject.txt
index bbfbdc5..972eee9 100644
--- a/automatic-off-session-payment/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-subject.txt
+++ b/automatic-off-session-payment/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-subject.txt
@@ -1 +1 @@
-Write a review for {{transaction.listing.title}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingReviewByCustomerWanted.Subject" "Review your experience with {listingTitle}" listingTitle=transaction.listing.title }}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html b/automatic-off-session-payment/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html
index 9582f62..dd902e7 100644
--- a/automatic-off-session-payment/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html
+++ b/automatic-off-session-payment/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html
@@ -1,7 +1,9 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
@@ -17,8 +19,8 @@
- {{other-party.display-name}} left you a review
- Here's what they wrote:
+ {{t "BookingReviewByOtherPartyPublished.Title" "{otherPartyDisplayName} left you a review" otherPartyDisplayName=other-party.display-name}}
+ {{t "BookingReviewByOtherPartyPublished.Heading" "Here's what they wrote"}}
{{#each reviews }}
{{#eq recipient.id subject.id }}
{{/eq}}
{{/each}}
- The review has been published on
- your
- {{marketplace.name}} profile.
+ {{t "BookingReviewByOtherPartyPublished.Content" "The review has been published on your {marketplaceName} profile." marketplaceName=marketplace.name}}
- | View
- your
- profile
+ | {{t "BookingReviewByOtherPartyPublished.Cta" "View your profile"}}
|
@@ -55,9 +48,7 @@
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/automatic-off-session-payment/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-subject.txt b/automatic-off-session-payment/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-subject.txt
index c982383..c99aab5 100644
--- a/automatic-off-session-payment/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-subject.txt
+++ b/automatic-off-session-payment/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-subject.txt
@@ -1 +1 @@
-Read the review {{other-party.display-name}} wrote you
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingReviewByOtherPartyPublished.Subject" "Review from {otherPartyDisplayName} has been published on your profile" otherPartyDisplayName=other-party.display-name }}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html b/automatic-off-session-payment/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html
index 3e6723c..707d68f 100644
--- a/automatic-off-session-payment/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html
+++ b/automatic-off-session-payment/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html
@@ -1,7 +1,9 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
@@ -16,25 +18,16 @@
style="max-width:600px;margin:0 auto">
- Leave
- {{other-party.display-name}} a review to see their review
+ {{t "BookingReviewByOtherPartyUnpublished.Title" "Leave {otherPartyDisplayName} a review to see their review" otherPartyDisplayName=other-party.display-name}}
- {{other-party.display-name}} left you a new review. To see their review, please leave them a review to
- describe your experience.
+ {{t "BookingReviewByOtherPartyUnpublished.Content" "{otherPartyDisplayName} left you a new review. To see their review, please leave them a review to describe your experience." otherPartyDisplayName=other-party.display-name}}
- | Leave
- a
- review
+ | {{t "BookingReviewByOtherPartyUnpublished.Cta" "Leave a review" }}
|
@@ -46,9 +39,7 @@ Leave
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/automatic-off-session-payment/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-subject.txt b/automatic-off-session-payment/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-subject.txt
index c180afa..45a2360 100644
--- a/automatic-off-session-payment/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-subject.txt
+++ b/automatic-off-session-payment/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-subject.txt
@@ -1 +1 @@
-{{other-party.display-name}} wrote you a review
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingReviewByOtherPartyUnpublished.Subject" "{otherPartyDisplayName} left you a review" otherPartyDisplayName=other-party.display-name }}
\ No newline at end of file
diff --git a/automatic-off-session-payment/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html b/automatic-off-session-payment/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html
index 817234d..eac647c 100644
--- a/automatic-off-session-payment/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html
+++ b/automatic-off-session-payment/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html
@@ -1,7 +1,9 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
@@ -16,25 +18,16 @@
style="max-width:600px;margin:0 auto">
- Leave
- {{customer.display-name}} a review
+ {{t "BookingReviewByProviderWanted.Title" "Leave {customerDisplayName} a review" customerDisplayName=customer.display-name}}
- {{customer.display-name}} recently booked
- {{listing.title}} from you. Please write
- {{customer.display-name}} a review to describe your experience.
+ {{t "BookingReviewByProviderWanted.Content" "{customerDisplayName} recently booked {listingTitle} from you. Please write {customerDisplayName} a review to describe your experience." customerDisplayName=customer.display-name listingTitle=listing.title }}
- | Leave
- a
- review
+ | {{t "BookingReviewByProviderWanted.Cta" "Leave a review"}}
|
@@ -46,9 +39,7 @@ Leave
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/automatic-off-session-payment/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-subject.txt b/automatic-off-session-payment/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-subject.txt
index 0f97084..aae95d4 100644
--- a/automatic-off-session-payment/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-subject.txt
+++ b/automatic-off-session-payment/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-subject.txt
@@ -1 +1 @@
-Write a review for {{transaction.customer.display-name}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingReviewByProviderWanted.Subject" "Leave a review for {customerDisplayName}" customerDisplayName=transaction.customer.display-name }}
\ No newline at end of file
diff --git a/default-booking/templates/booking-declined-request/booking-declined-request-html.html b/default-booking/templates/booking-declined-request/booking-declined-request-html.html
index ec4daf0..d0e2d23 100644
--- a/default-booking/templates/booking-declined-request/booking-declined-request-html.html
+++ b/default-booking/templates/booking-declined-request/booking-declined-request-html.html
@@ -26,15 +26,15 @@ {{t "Bo
- {{t "BookingDeclinedRequest.MarketplaceLinkText" "Book something else instead"}}
+ {{t "BookingDeclinedRequest.MarketplaceLinkText" "Book something else instead"}}
{{/with}}
diff --git a/default-booking/templates/booking-expired-request/booking-expired-request-html.html b/default-booking/templates/booking-expired-request/booking-expired-request-html.html
index d2fba5c..76e6f45 100644
--- a/default-booking/templates/booking-expired-request/booking-expired-request-html.html
+++ b/default-booking/templates/booking-expired-request/booking-expired-request-html.html
@@ -26,15 +26,15 @@ {{t "Bo
- {{t "BookingExpiredRequest.BookingCta" "Book something else instead"}}
+ {{t "BookingExpiredRequest.BookingCta" "Book something else instead"}}
{{/with}}
diff --git a/default-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html b/default-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html
index 4f0f517..db00aea 100644
--- a/default-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html
+++ b/default-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html
@@ -18,9 +18,9 @@ {{t "Bo
- | {{t "BookingReviewByCustomerWanted.Cta" "Leave a review"}}
+ | {{t "BookingReviewByCustomerWanted.Cta" "Leave a review"}}
|
diff --git a/default-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html b/default-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html
index 0217661..7a957e3 100644
--- a/default-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html
+++ b/default-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html
@@ -24,9 +24,9 @@ {{t "Bo
- | {{t "BookingReviewByOtherPartyPublished.Cta" "View your profile"}}
+ | {{t "BookingReviewByOtherPartyPublished.Cta" "View your profile"}}
|
diff --git a/default-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html b/default-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html
index 7cc1994..bb802f3 100644
--- a/default-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html
+++ b/default-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html
@@ -18,10 +18,9 @@ {{t "Bo
- | {{t "BookingReviewByOtherPartyUnpublished.Cta" "Leave a review" }}
+ | {{t "BookingReviewByOtherPartyUnpublished.Cta" "Leave a review" }}
|
diff --git a/default-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html b/default-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html
index 2bca704..4c380ed 100644
--- a/default-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html
+++ b/default-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html
@@ -18,9 +18,9 @@ {{t "Bo
- | {{t "BookingReviewByProviderWanted.Cta" "Leave a review"}}
+ | {{t "BookingReviewByProviderWanted.Cta" "Leave a review"}}
|
diff --git a/instant-booking/en.json b/instant-booking/en.json
new file mode 100644
index 0000000..494a911
--- /dev/null
+++ b/instant-booking/en.json
@@ -0,0 +1,32 @@
+{
+ "BookingConfirmedCustomer.BookingBreakdown": "Your card has been charged for {amount,number,::.00} {currency}. Here's the booking breakdown.",
+ "BookingConfirmedCustomer.Cta": "View order details",
+ "BookingConfirmedCustomer.DescriptionDaily": "You have booked {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}.",
+ "BookingConfirmedCustomer.DescriptionHourly": "You have booked {listingTitle} from {dateStart,date,::jmmYYYYMMMd} to {dateEnd,date,::jmmYYYYMMMd}.",
+ "BookingConfirmedCustomer.End": "End",
+ "BookingConfirmedCustomer.MarketplaceFeeLabel": "{marketplaceName} fee",
+ "BookingConfirmedCustomer.PriceBreakdownDaily": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}",
+ "BookingConfirmedCustomer.PriceBreakdownDailyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "BookingConfirmedCustomer.PriceBreakdownHourly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}",
+ "BookingConfirmedCustomer.PriceBreakdownHourlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "BookingConfirmedCustomer.PriceBreakdownNightly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}",
+ "BookingConfirmedCustomer.PriceBreakdownNightlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "BookingConfirmedCustomer.Start": "Start",
+ "BookingConfirmedCustomer.Subject": "You have booked {listingTitle}",
+ "BookingConfirmedCustomer.Title": "Your booking details for {listingTitle}",
+ "BookingConfirmedCustomer.TotalPrice": "Total price",
+ "BookingConfirmedProvider.BookingDetailsLink": "Booking details",
+ "BookingConfirmedProvider.Description": "{customerDisplayName} has booked {listingTitle} in {marketplaceName}.",
+ "BookingConfirmedProvider.EarningLabel": "You'll earn",
+ "BookingConfirmedProvider.EndLabel": "End",
+ "BookingConfirmedProvider.MarketplaceFeeLabel": "{marketplaceName} fee",
+ "BookingConfirmedProvider.PriceForDaysQuantity": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {day} other {days}}",
+ "BookingConfirmedProvider.PriceForDaysQuantityWithSeats": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "BookingConfirmedProvider.PriceForHoursQuantity": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {hour} other {hours}}",
+ "BookingConfirmedProvider.PriceForHoursQuantityWithSeats": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "BookingConfirmedProvider.PriceForNightsQuantity": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {night} other {nights}}",
+ "BookingConfirmedProvider.PriceForNightsQuantityWithSeats": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "BookingConfirmedProvider.StartLabel": "Start",
+ "BookingConfirmedProvider.Subject": "{customerDisplayName} has booked {listingTitle}",
+ "BookingConfirmedProvider.Title": "{customerDisplayName} has booked {listingTitle}"
+}
diff --git a/instant-booking/templates/booking-confirmed-customer/booking-confirmed-customer-html.html b/instant-booking/templates/booking-confirmed-customer/booking-confirmed-customer-html.html
index 8d52661..c31af21 100644
--- a/instant-booking/templates/booking-confirmed-customer/booking-confirmed-customer-html.html
+++ b/instant-booking/templates/booking-confirmed-customer/booking-confirmed-customer-html.html
@@ -1,50 +1,25 @@
+{{set-translations (asset "content/email-texts.json")}}
+{{set-locale (asset "general/localization.json" "locale" "en_US")}}
+{{set-timezone transaction.listing.availability-plan.timezone}}
-{{~#*inline "format-money"~}}
-{{money-amount money}}
-{{ money.currency }}
-{{~/inline~}}
-{{~#*inline "format-date"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="h:mm a" tz=timezone}} on
-{{date date format="MMM d, YYYY" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-date-day"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="MMM d, YYYY" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-date-day-before"~}}
-{{#with transaction.listing.availability-plan}}
-{{date-day-before date format="MMM d, YYYY" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-day"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="EE" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-day-before"~}}
-{{#with transaction.listing.availability-plan}}
-{{date-day-before date format="EE" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-day-time"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="EE h:mm a" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-month-date"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="MMM d" tz=timezone}}
-{{/with}}
-{{~/inline~}}
+{{~#*inline "format-money"}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount
+currency=money.currency}}{{~/inline~}}
+{{~#*inline "format-day"}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}"
+date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-day-before"}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}"
+date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+{{~#*inline "format-day-time"}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}"
+date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-month-date"}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}"
+date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-month-date-day-before"}}{{#with transaction.listing.availability-plan}}{{format-text
+"{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
{{#with transaction}}
- Your booking details for {{listing.title}}
+ {{t
+ "BookingConfirmedCustomer.Title" "Your booking details for {listingTitle}"
+ listingTitle=listing.title}}
{{#each tx-line-items}}
{{#eq "line-item/hour" code}}
- You have booked
- {{ listing.title }} from
- {{> format-date date=booking.start}} to
- {{> format-date date=booking.end}}.
+ {{t "BookingConfirmedCustomer.DescriptionHourly" "You have booked {listingTitle} from
+ {dateStart,date,::jmmYYYYMMMd} to {dateEnd,date,::jmmYYYYMMMd}."
+ dateStart=booking.start dateEnd=booking.end listingTitle=listing.title}}
+
{{/ eq}}
{{#eq "line-item/day" code}}
- You have booked
- {{ listing.title }} from
- {{> format-date-day date=booking.start}} to
- {{> format-date-day-before date=booking.end}}.
+ {{t "BookingConfirmedCustomer.DescriptionDaily" "You have booked {listingTitle} from
+ {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}."
+ dateStart=booking.start dateEnd=(date-transform booking.end days=-1) listingTitle=listing.title}}
+
{{/ eq}}
{{#eq "line-item/night" code}}
- You have booked
- {{ listing.title }} from
- {{> format-date-day date=booking.start}} to
- {{> format-date-day date=booking.end}}.
+ {{t "BookingConfirmedCustomer.DescriptionDaily" "You have booked {listingTitle} from
+ {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}."
+ dateStart=booking.start dateEnd=booking.end listingTitle=listing.title}}
+
{{/ eq}}
{{/each}}
- Your card has been charged for
- {{> format-money money=payin-total}}. Here's the booking breakdown.
+
+ {{t "BookingConfirmedCustomer.BookingBreakdown" "Your card has been charged for {amount,number,::.00}
+ {currency}. Here's the booking breakdown." amount=payin-total.amount currency=payin-total.currency}}
+
@@ -95,11 +74,13 @@ Your bo
|
|
- Start
+ {{t "BookingConfirmedCustomer.Start" "Start"}}
+
|
- End
+ {{t "BookingConfirmedCustomer.End" "End"}}
+
|
@@ -196,12 +177,10 @@ Your bo
|
|
-
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "hour" "hours"}}
- Seats ×
- {{number seats}}
+ {{t
+ "BookingConfirmedCustomer.PriceBreakdownHourlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier,
+ number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other
+ {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -219,9 +198,10 @@ Your bo
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "hour" "hours"}}
+ {{t
+ "BookingConfirmedCustomer.PriceBreakdownHourly" "{amount,number,::.00} {currency} x {multiplier, number}
+ {multiplier, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency
+ multiplier=quantity}}
|
@@ -241,12 +221,10 @@ Your bo
|
|
-
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "day" "days"}}
- Seats ×
- {{number seats}}
+ {{t
+ "BookingConfirmedCustomer.PriceBreakdownDailyWithSeats" "{amount, number, ::.00} {currency} × {multiplier,
+ number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other
+ {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -264,9 +242,10 @@ Your bo
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "day" "days"}}
+ {{t
+ "BookingConfirmedCustomer.PriceBreakdownDaily" "{amount,number,::.00} {currency} x {multiplier, number}
+ {multiplier, plural, one {day} other {days}}" amount=unit-price.amount currency=unit-price.currency
+ multiplier=quantity}}
|
@@ -286,12 +265,10 @@ Your bo
|
|
-
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "night" "nights"}}
- Seats ×
- {{number seats}}
+ {{t
+ "BookingConfirmedCustomer.PriceBreakdownNightlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier,
+ number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other
+ {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -309,9 +286,10 @@ Your bo
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "night" "nights"}}
+ {{t
+ "BookingConfirmedCustomer.PriceBreakdownNightly" "{amount,number,::.00} {currency} x {multiplier, number}
+ {multiplier, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency
+ multiplier=quantity}}
|
@@ -324,6 +302,24 @@ Your bo
{{/if}}
{{/eq}}
+{{#eq "line-item/customer-commission" code}}
+
+
+
+ |
+ |
+ {{t
+ "BookingConfirmedCustomer.MarketplaceFeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+{{/eq}}
{{/contains}}
{{/each}}
Your bo
|
|
|
- Total price
+ {{t
+ "BookingConfirmedCustomer.TotalPrice" "Total price"}}
|
@@ -352,14 +349,10 @@ Your bo
width="100%">
- | View
- order
- details
+ |
+ {{t "BookingAcceptedRequest.Cta" "View order details"}}
|
@@ -369,10 +362,9 @@ Your bo
{{/with}}
- You have
- received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t
+ "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive
+ these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/instant-booking/templates/booking-confirmed-customer/booking-confirmed-customer-subject.txt b/instant-booking/templates/booking-confirmed-customer/booking-confirmed-customer-subject.txt
index 3636fab..d6e7bf8 100644
--- a/instant-booking/templates/booking-confirmed-customer/booking-confirmed-customer-subject.txt
+++ b/instant-booking/templates/booking-confirmed-customer/booking-confirmed-customer-subject.txt
@@ -1 +1 @@
-You have booked {{transaction.listing.title}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingConfirmedCustomer.Subject" "You have booked {listingTitle}" listingTitle=transaction.listing.title }}
\ No newline at end of file
diff --git a/instant-booking/templates/booking-confirmed-provider/booking-confirmed-provider-html.html b/instant-booking/templates/booking-confirmed-provider/booking-confirmed-provider-html.html
index d1b057d..540005b 100644
--- a/instant-booking/templates/booking-confirmed-provider/booking-confirmed-provider-html.html
+++ b/instant-booking/templates/booking-confirmed-provider/booking-confirmed-provider-html.html
@@ -1,11 +1,14 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
+
-{{~#*inline "format-money"~}}
+
+
+{{~#*inline "format-money"~}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount currency=money.currency}}{{~/inline~}}
+ {{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
{{#with transaction}}
- {{customer.display-name}} has booked {{listing.title}}
- {{#each tx-line-items}}
- {{#eq "line-item/hour" code}}
+ {{t "BookingConfirmedProvider.Title" "{customerDisplayName} has booked {listingTitle}" listingTitle=listing.title customerDisplayName=customer.display-name}}
- {{customer.display-name}} has booked
- {{listing.title}} in
- {{marketplace.name}}.
- {{/ eq}}
- {{#eq "line-item/day" code}}
-
- {{customer.display-name}} has booked
- {{listing.title}} in
- {{marketplace.name}}.
- {{/ eq}}
- {{#eq "line-item/night" code}}
-
- {{customer.display-name}} has booked
- {{listing.title}} in
- {{marketplace.name}}.
- {{/ eq}}
- {{/each}}
+ {{t "BookingConfirmedProvider.Description" "{customerDisplayName} has booked {listingTitle} in {marketplaceName}." customerDisplayName=customer.display-name listingTitle=listing.title marketplaceName=marketplace.name}}
@@ -89,11 +81,11 @@ {{custo
|
|
- Start
+ {{t "BookingConfirmedProvider.StartLabel" "Start"}}
|
- End
+ {{t "BookingConfirmedProvider.EndLabel" "End"}}
|
@@ -101,101 +93,110 @@ {{custo
{{#each tx-line-items}}
{{#eq "line-item/hour" code}}
-
-
-
- |
- |
-
- {{> format-day-time date=booking.start}}
- |
-
-
- {{> format-day-time date=booking.end}}
- |
-
-
-
-
-{{/eq}}
-{{#eq "line-item/day" code}}
-
-
-
- |
- |
-
- {{> format-day date=booking.start}}
- |
-
-
- {{> format-day-before date=booking.end}}
- |
-
-
-
-
+
+
+
+ |
+ |
+ {{> format-day-time date=booking.start}}
+ |
+
+ {{> format-day-time date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+
+ {{/eq}}
+ {{#eq "line-item/day" code}}
+
+
+
+ |
+ |
+ {{> format-day date=booking.start}}
+ |
+
+ {{> format-day-before date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date-day-before date=booking.end}}
+ |
+
+
+
+
-{{/eq}}
-{{#eq "line-item/night" code}}
-
-
-
- |
- |
-
- {{> format-day date=booking.start}}
- |
-
-
- {{> format-day date=booking.end}}
- |
-
-
-
-
+ {{/eq}}
+ {{#eq "line-item/night" code}}
+
+
+
+ |
+ |
+ {{> format-day date=booking.start}}
+ |
+
+ {{> format-day date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+
-{{/eq}}
-{{/each}}
-
-
-
- |
- |
-
- {{> format-month-date date=booking.start}}
- |
-
-
- {{> format-month-date date=booking.end}}
- |
-
-
-
-
-{{#each tx-line-items}}
-{{#contains include-for "provider"}}
-{{#eq "line-item/hour" code}}
-{{#if seats}}
+ {{/eq}}
+ {{/each}}
+
+ {{#each tx-line-items}}
+ {{#contains include-for "provider"}}
+ {{#eq "line-item/hour" code}}
+ {{#if seats}}
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "hour" "hours"}}
- Seats ×
- {{number seats}}
+ {{t "BookingConfirmedProvider.PriceForHoursQuantityWithSeats" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency units=units seats=seats}}
|
@@ -213,9 +214,7 @@ {{custo
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "hour" "hours"}}
+ {{t "BookingConfirmedProvider.PriceForHoursQuantity" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency units=quantity}}
|
@@ -236,11 +235,7 @@ {{custo
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "day" "days"}}
- Seats ×
- {{number seats}}
+ {{t "BookingConfirmedProvider.PriceForDaysQuantityWithSeats" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency units=units seats=seats}}
|
@@ -258,9 +253,7 @@ {{custo
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "day" "days"}}
+ {{t "BookingConfirmedProvider.PriceForDaysQuantity" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {day} other {days}}" amount=unit-price.amount currency=unit-price.currency units=quantity}}
|
@@ -281,11 +274,7 @@ {{custo
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "night" "nights"}}
- Seats ×
- {{number seats}}
+ {{t "BookingConfirmedProvider.PriceForNightsQuantityWithSeats" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency units=units seats=seats}}
|
@@ -303,9 +292,7 @@ {{custo
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "night" "nights"}}
+ {{t "BookingConfirmedProvider.PriceForNightsQuantity" "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency units=quantity}}
|
@@ -325,7 +312,7 @@ {{custo
|
|
- {{ marketplace.name }} fee
+ {{t "BookingConfirmedProvider.MarketplaceFeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name}}
|
@@ -345,7 +332,7 @@ {{custo
|
|
- You'll earn
+ {{t "BookingConfirmedProvider.EarningLabel" "You'll earn"}}
|
@@ -363,14 +350,10 @@ {{custo
width="100%">
- | Booking details
+ |
+ {{t "BookingConfirmedProvider.BookingDetailsLink" "Booking details"}}
|
@@ -380,10 +363,7 @@ {{custo
{{/with}}
- You have
- received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name}}
diff --git a/instant-booking/templates/booking-confirmed-provider/booking-confirmed-provider-subject.txt b/instant-booking/templates/booking-confirmed-provider/booking-confirmed-provider-subject.txt
index 6982bf6..ef8a2d1 100644
--- a/instant-booking/templates/booking-confirmed-provider/booking-confirmed-provider-subject.txt
+++ b/instant-booking/templates/booking-confirmed-provider/booking-confirmed-provider-subject.txt
@@ -1 +1 @@
-{{transaction.customer.display-name}} has booked {{transaction.listing.title}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingConfirmedProvider.Subject" "{customerDisplayName} has booked {listingTitle}" customerDisplayName=transaction.customer.display-name listingTitle=transaction.listing.title}}
\ No newline at end of file
diff --git a/instant-booking/templates/booking-money-paid/booking-money-paid-html.html b/instant-booking/templates/booking-money-paid/booking-money-paid-html.html
index 793fbaa..6e88ef0 100644
--- a/instant-booking/templates/booking-money-paid/booking-money-paid-html.html
+++ b/instant-booking/templates/booking-money-paid/booking-money-paid-html.html
@@ -1,50 +1,19 @@
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
-{{~#*inline "format-money"~}}
-{{money-amount money}}
-{{ money.currency }}
-{{~/inline~}}
-{{~#*inline "format-date"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="h:mm a" tz=timezone}} on
-{{date date format="MMM d, YYYY" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-date-day"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="MMM d, YYYY" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-date-day-before"~}}
-{{#with transaction.listing.availability-plan}}
-{{date-day-before date format="MMM d, YYYY" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-day"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="EE" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-day-before"~}}
-{{#with transaction.listing.availability-plan}}
-{{date-day-before date format="EE" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-day-time"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="EE h:mm a" tz=timezone}}
-{{/with}}
-{{~/inline~}}
-{{~#*inline "format-month-date"~}}
-{{#with transaction.listing.availability-plan}}
-{{date date format="MMM d" tz=timezone}}
-{{/with}}
-{{~/inline~}}
+{{~#*inline "format-money"~}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount currency=money.currency}}{{~/inline~}}
+{{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+{{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}" date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-month-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
{{#with transaction}}
- You have been paid
- {{> format-money money=payout-total}}
+ {{t "BookingMoneyPaid.Title" "You have been paid {amount,number,::.00} {currency}" amount=payout-total.amount currency=payout-total.currency}}
{{#each tx-line-items}}
{{#eq "line-item/hour" code}}
- We have sent you
- {{> format-money money=payout-total}} for the booking of
- {{ listing.title }} from
- {{> format-date date=booking.start}} to
- {{> format-date date=booking.end}} by
- {{ customer.display-name }}. It might take up to 7 days for the money to reach your bank account.
+ {{t "BookingMoneyPaid.ContentForHourly" "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::jmmYYYYMMMd} to {dateEnd,date,::jmmYYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account." amount=payout-total.amount currency=payout-total.currency listingTitle=listing.title dateStart=booking.start dateEnd=booking.end customerDisplayName=customer.display-name}}
{{/ eq}}
{{#eq "line-item/day" code}}
- We have sent you
- {{> format-money money=payout-total}} for the booking of
- {{ listing.title }} from
- {{> format-date-day date=booking.start}} to
- {{> format-date-day-before date=booking.end}} by
- {{ customer.display-name }}. It might take up to 7 days for the money to reach your bank account.
+ {{t "BookingMoneyPaid.ContentForDaily" "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account." amount=payout-total.amount currency=payout-total.currency listingTitle=listing.title dateStart=booking.start dateEnd=(date-transform booking.end days=-1) customerDisplayName=customer.display-name}}
{{/ eq}}
{{#eq "line-item/night" code}}
- We have sent you
- {{> format-money money=payout-total}} for the booking of
- {{ listing.title }} from
- {{> format-date-day date=booking.start}} to
- {{> format-date-day date=booking.end}} by
- {{ customer.display-name }}. It might take up to 7 days for the money to reach your bank account.
+ {{t "BookingMoneyPaid.ContentForNightly" "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account." amount=payout-total.amount currency=payout-total.currency listingTitle=listing.title dateStart=booking.start dateEnd=booking.end customerDisplayName=customer.display-name}}
{{/ eq}}
{{/each}}
- Here's the booking breakdown.
+ {{t "BookingMoneyPaid.BookingBreakdownTitle" "Here's the booking breakdown."}}
You hav
|
|
- Start
+ {{t "BookingMoneyPaid.StartLabel" "Start"}}
|
- End
+ {{t "BookingMoneyPaid.EndLabel" "End"}}
|
@@ -128,6 +81,20 @@ You hav
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+
{{/eq}}
{{#eq "line-item/day" code}}
@@ -148,6 +115,20 @@ You hav
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date-day-before date=booking.end}}
+ |
+
+
+
+
{{/eq}}
{{#eq "line-item/night" code}}
@@ -169,27 +150,22 @@ You hav
|
-
-{{/eq}}
-{{/each}}
|
- |
-
- {{> format-month-date date=booking.start}}
- |
-
-
- {{> format-month-date date=booking.end}}
- |
+
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+{{/eq}}
+{{/each}}
{{#each tx-line-items}}
{{#contains include-for "provider"}}
{{#eq "line-item/hour" code}}
@@ -200,11 +176,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "hour" "hours"}}
- Seats ×
- {{number seats}}
+ {{t "BookingMoneyPaid.PriceBreakdownHourlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -222,9 +194,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "hour" "hours"}}
+ {{t "BookingMoneyPaid.PriceBreakdownHourly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
@@ -245,11 +215,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "day" "days"}}
- Seats ×
- {{number seats}}
+ {{t "BookingMoneyPaid.PriceBreakdownDailyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -267,9 +233,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "day" "days"}}
+ {{t "BookingMoneyPaid.PriceBreakdownDaily" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
@@ -290,11 +254,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number units}}
- {{inflect units "night" "nights"}}
- Seats ×
- {{number seats}}
+ {{t "BookingMoneyPaid.PriceBreakdownNightlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
@@ -312,9 +272,7 @@ You hav
|
|
- {{> format-money money=unit-price}} ×
- {{number quantity}}
- {{inflect quantity "night" "nights"}}
+ {{t "BookingMoneyPaid.PriceBreakdownNightly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
@@ -334,7 +292,7 @@ You hav
|
|
- {{ marketplace.name }} fee
+ {{t "BookingMoneyPaid.FeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name }}
|
@@ -355,8 +313,7 @@ You hav
|
|
- You'll
- earn
+ {{t "BookingMoneyPaid.PayoutLabel" "You'll earn"}}
|
@@ -374,14 +331,9 @@ You hav
width="100%">
- | View
- order
- details
+ | {{t "BookingMoneyPaid.Cta" "View order details"}}
|
@@ -391,10 +343,7 @@ You hav
{{/with}}
- You have
- received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/instant-booking/templates/booking-money-paid/booking-money-paid-subject.txt b/instant-booking/templates/booking-money-paid/booking-money-paid-subject.txt
index 229cbd6..590f7e3 100644
--- a/instant-booking/templates/booking-money-paid/booking-money-paid-subject.txt
+++ b/instant-booking/templates/booking-money-paid/booking-money-paid-subject.txt
@@ -1 +1 @@
-You have been paid {{money-amount transaction.payout-total}} {{transaction.payout-total.currency}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingMoneyPaid.Subject" "You have been paid {amount,number,::.00} {currency}" amount=transaction.payout-total.amount currency=transaction.payout-total.currency}}
\ No newline at end of file
diff --git a/instant-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html b/instant-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html
index 66853f7..59d48dd 100644
--- a/instant-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html
+++ b/instant-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-html.html
@@ -1,7 +1,9 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
@@ -16,38 +18,25 @@
style="max-width:600px;margin:0 auto">
- Review your experience with
- {{listing.title}}
- You recently booked
- {{listing.title}} from
- {{provider.display-name}}. Please leave a review to describe your experience.
-
- {{/with}}
+ {{t "BookingReviewByCustomerWanted.Title" "Review your experience with {listingTitle}" listingTitle=listing.title}}
+ {{/with}}
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
|
diff --git a/instant-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-subject.txt b/instant-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-subject.txt
index bbfbdc5..6d240ad 100644
--- a/instant-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-subject.txt
+++ b/instant-booking/templates/booking-review-by-customer-wanted/booking-review-by-customer-wanted-subject.txt
@@ -1 +1 @@
-Write a review for {{transaction.listing.title}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingReviewByCustomerWanted.Subject" "Write a review for {listingTitle}" listingTitle=transaction.listing.title }}
\ No newline at end of file
diff --git a/instant-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html b/instant-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html
index ba7c8ef..9fbaa07 100644
--- a/instant-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html
+++ b/instant-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-html.html
@@ -1,7 +1,9 @@
-
+{{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
@@ -17,8 +19,8 @@
- {{other-party.display-name}} left you a review
- Here's what they wrote:
+ {{t "BookingReviewByOtherPartyPublished.Title" "{otherPartyDisplayName} left you a review" otherPartyDisplayName=other-party.display-name}}
+ {{t "BookingReviewByOtherPartyPublished.Heading" "Here's what they wrote"}}
{{#each reviews }}
{{#eq recipient.id subject.id }}
{{/eq}}
{{/each}}
- The review has been published on
- your
- {{marketplace.name}} profile.
+ {{t "BookingReviewByOtherPartyPublished.Content" "The review has been published on your {marketplaceName} profile." marketplaceName=marketplace.name}}
- | View
- your
- profile
+ | {{t "BookingReviewByOtherPartyPublished.Cta" "View your profile"}}
|
@@ -60,9 +48,7 @@
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/instant-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-subject.txt b/instant-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-subject.txt
index c982383..c99aab5 100644
--- a/instant-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-subject.txt
+++ b/instant-booking/templates/booking-review-by-other-party-published/booking-review-by-other-party-published-subject.txt
@@ -1 +1 @@
-Read the review {{other-party.display-name}} wrote you
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingReviewByOtherPartyPublished.Subject" "Review from {otherPartyDisplayName} has been published on your profile" otherPartyDisplayName=other-party.display-name }}
\ No newline at end of file
diff --git a/instant-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html b/instant-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html
index 3e6723c..707d68f 100644
--- a/instant-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html
+++ b/instant-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-html.html
@@ -1,7 +1,9 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
@@ -16,25 +18,16 @@
style="max-width:600px;margin:0 auto">
- Leave
- {{other-party.display-name}} a review to see their review
+ {{t "BookingReviewByOtherPartyUnpublished.Title" "Leave {otherPartyDisplayName} a review to see their review" otherPartyDisplayName=other-party.display-name}}
- {{other-party.display-name}} left you a new review. To see their review, please leave them a review to
- describe your experience.
+ {{t "BookingReviewByOtherPartyUnpublished.Content" "{otherPartyDisplayName} left you a new review. To see their review, please leave them a review to describe your experience." otherPartyDisplayName=other-party.display-name}}
- | Leave
- a
- review
+ | {{t "BookingReviewByOtherPartyUnpublished.Cta" "Leave a review" }}
|
@@ -46,9 +39,7 @@ Leave
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/instant-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-subject.txt b/instant-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-subject.txt
index c180afa..45a2360 100644
--- a/instant-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-subject.txt
+++ b/instant-booking/templates/booking-review-by-other-party-unpublished/booking-review-by-other-party-unpublished-subject.txt
@@ -1 +1 @@
-{{other-party.display-name}} wrote you a review
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingReviewByOtherPartyUnpublished.Subject" "{otherPartyDisplayName} left you a review" otherPartyDisplayName=other-party.display-name }}
\ No newline at end of file
diff --git a/instant-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html b/instant-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html
index 817234d..eac647c 100644
--- a/instant-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html
+++ b/instant-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-html.html
@@ -1,7 +1,9 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
@@ -16,25 +18,16 @@
style="max-width:600px;margin:0 auto">
- Leave
- {{customer.display-name}} a review
+ {{t "BookingReviewByProviderWanted.Title" "Leave {customerDisplayName} a review" customerDisplayName=customer.display-name}}
- {{customer.display-name}} recently booked
- {{listing.title}} from you. Please write
- {{customer.display-name}} a review to describe your experience.
+ {{t "BookingReviewByProviderWanted.Content" "{customerDisplayName} recently booked {listingTitle} from you. Please write {customerDisplayName} a review to describe your experience." customerDisplayName=customer.display-name listingTitle=listing.title }}
- | Leave
- a
- review
+ | {{t "BookingReviewByProviderWanted.Cta" "Leave a review"}}
|
@@ -46,9 +39,7 @@ Leave
- You have received this email notification because you are a member of
- {{marketplace.name}}. If you no longer wish to receive these emails, please contact
- {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/instant-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-subject.txt b/instant-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-subject.txt
index 0f97084..aae95d4 100644
--- a/instant-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-subject.txt
+++ b/instant-booking/templates/booking-review-by-provider-wanted/booking-review-by-provider-wanted-subject.txt
@@ -1 +1 @@
-Write a review for {{transaction.customer.display-name}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "BookingReviewByProviderWanted.Subject" "Leave a review for {customerDisplayName}" customerDisplayName=transaction.customer.display-name }}
\ No newline at end of file
diff --git a/negotiated-booking/en.json b/negotiated-booking/en.json
new file mode 100644
index 0000000..35b0f47
--- /dev/null
+++ b/negotiated-booking/en.json
@@ -0,0 +1,120 @@
+{
+ "NegotiatedBookingCounterOffer.Content": "{otherParty} made a counter offer for the booking of {listingTitle}",
+ "NegotiatedBookingCounterOffer.Cta": "Accept, decline or make a counter offer",
+ "NegotiatedBookingCounterOffer.EndLabel": "End",
+ "NegotiatedBookingCounterOffer.FeeLabel": "{marketplaceName} fee",
+ "NegotiatedBookingCounterOffer.PayoutLabel": "You'll earn",
+ "NegotiatedBookingCounterOffer.PriceBreakdownDaily": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}",
+ "NegotiatedBookingCounterOffer.PriceBreakdownDailyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingCounterOffer.PriceBreakdownHourly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}",
+ "NegotiatedBookingCounterOffer.PriceBreakdownHourlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingCounterOffer.PriceBreakdownNightly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}",
+ "NegotiatedBookingCounterOffer.PriceBreakdownNightlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingCounterOffer.StartLabel": "Start",
+ "NegotiatedBookingCounterOffer.Subject": "{otherParty} made a counter offer for {listingTitle} for {amount,number,::.00} {currency}",
+ "NegotiatedBookingCounterOffer.SuggestedAdjustment": "Suggested adjustment",
+ "NegotiatedBookingCounterOffer.Title": "Please respond to the offer made by {otherParty}",
+ "NegotiatedBookingCustomerPaid.Content": "{customerName} paid the booking for {listingTitle} in {marketplaceName}. Here's the breakdown:",
+ "NegotiatedBookingCustomerPaid.EndLabel": "End",
+ "NegotiatedBookingCustomerPaid.FeeLabel": "{marketplaceName} fee",
+ "NegotiatedBookingCustomerPaid.PayoutLabel": "You'll earn",
+ "NegotiatedBookingCustomerPaid.PriceBreakdownDaily": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}",
+ "NegotiatedBookingCustomerPaid.PriceBreakdownDailyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingCustomerPaid.PriceBreakdownHourly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}",
+ "NegotiatedBookingCustomerPaid.PriceBreakdownHourlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingCustomerPaid.PriceBreakdownNightly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}",
+ "NegotiatedBookingCustomerPaid.PriceBreakdownNightlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingCustomerPaid.Title": "{customerName} paid the booking!",
+ "NegotiatedBookingCustomerPaid.StartLabel": "Start",
+ "NegotiatedBookingCustomerPaid.Subject": "{customerName} paid the booking of {listingTitle}",
+ "NegotiatedBookingCustomerPaid.SuggestedAdjustment": "Suggested adjustment",
+ "NegotiatedBookingMoneyPaid.AdjustmentTitle": "Adjustment",
+ "NegotiatedBookingMoneyPaid.BookingBreakdownTitle": "Here's the booking breakdown.",
+ "NegotiatedBookingMoneyPaid.ContentForHourly": "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::jmmYYYYMMMd} to {dateEnd,date,::jmmYYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account.",
+ "NegotiatedBookingMoneyPaid.ContentForDaily": "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account.",
+ "NegotiatedBookingMoneyPaid.ContentForNightly": "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account.",
+ "NegotiatedBookingMoneyPaid.Cta": "View order details",
+ "NegotiatedBookingMoneyPaid.EndLabel": "End",
+ "NegotiatedBookingMoneyPaid.FeeLabel": "{marketplaceName} fee",
+ "NegotiatedBookingMoneyPaid.PayoutLabel": "You'll earn",
+ "NegotiatedBookingMoneyPaid.PriceBreakdownDaily": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}",
+ "NegotiatedBookingMoneyPaid.PriceBreakdownDailyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingMoneyPaid.PriceBreakdownHourly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}",
+ "NegotiatedBookingMoneyPaid.PriceBreakdownHourlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingMoneyPaid.PriceBreakdownNightly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}",
+ "NegotiatedBookingMoneyPaid.PriceBreakdownNightlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingMoneyPaid.Subject": "You have been paid {amount,number,::.00} {currency}",
+ "NegotiatedBookingMoneyPaid.StartLabel": "Start",
+ "NegotiatedBookingMoneyPaid.Title": "You have been paid {amount,number,::.00} {currency}",
+ "NegotiatedBookingNewRequestWithOffer.AcceptText": "You need to accept the offer or make a counter offer. You need to come to an agreement by {date,date,::jmmYYYYMMMd}. Otherwise the request will expire and the booking won't take place.",
+ "NegotiatedBookingNewRequestWithOffer.Cta": "Accept, decline or make a counter offer",
+ "NegotiatedBookingNewRequestWithOffer.DeclineOptionText": "If the booked dates don't work for you, you can also choose to decline the request.",
+ "NegotiatedBookingNewRequestWithOffer.Description": "{customerDisplayName} requested to book {listingTitle} in {marketplaceName}.",
+ "NegotiatedBookingNewRequestWithOffer.EarningLabel": "You'll earn",
+ "NegotiatedBookingNewRequestWithOffer.EndLabel": "End",
+ "NegotiatedBookingNewRequestWithOffer.FeeLabel": "{marketplaceName} fee",
+ "NegotiatedBookingNewRequestWithOffer.PriceForDaysQuantity": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {day} other {days}}",
+ "NegotiatedBookingNewRequestWithOffer.PriceForDaysQuantityWithSeats": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingNewRequestWithOffer.PriceForHoursQuantity": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {hour} other {hours}}",
+ "NegotiatedBookingNewRequestWithOffer.PriceForHoursQuantityWithSeats": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingNewRequestWithOffer.PriceForNightsQuantity": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {night} other {nights}}",
+ "NegotiatedBookingNewRequestWithOffer.PriceForNightsQuantityWithSeats": "{amount, number, ::.00} {currency} × {units, number} {units, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingNewRequestWithOffer.StartLabel": "Start",
+ "NegotiatedBookingNewRequestWithOffer.Subject": "{customerName} has requested to book {listingTitle} for {amount,number,::.00} {currency}",
+ "NegotiatedBookingNewRequestWithOffer.SuggestedAdjustment": "Suggested adjustment",
+ "NegotiatedBookingNewRequestWithOffer.Title": "You have a new booking request for {listingTitle}",
+ "NegotiatedBookingOfferDeclined.ButtonCta": "View order details",
+ "NegotiatedBookingOfferDeclined.ContentForDaily": "Unfortunately {otherParty} decided to decline your offer for the booking of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}.",
+ "NegotiatedBookingOfferDeclined.ContentForHourly": "Unfortunately {otherParty} decided to decline your offer for the booking of {listingTitle} from {dateStart,date,::hmmaYYYYMMMd} to {dateEnd,date,::hmmaYYYYMMMd}.",
+ "NegotiatedBookingOfferDeclined.ContentForNightly": "Unfortunately {otherParty} decided to decline your offer for the booking of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}.",
+ "NegotiatedBookingOfferDeclined.MarketplaceLinkText": "Book something else instead",
+ "NegotiatedBookingOfferDeclined.Subject": "{otherParty} declined your offer for {listingTitle}",
+ "NegotiatedBookingOfferDeclined.Title": "Offer was declined",
+ "NegotiatedBookingOfferExpired.ButtonCta": "View order details",
+ "NegotiatedBookingOfferExpired.ContentForDaily": "Unfortunately {otherParty} didn't reply to your offer of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} on time, so the request has expired.",
+ "NegotiatedBookingOfferExpired.ContentForHourly": "Unfortunately {otherParty} didn't reply to your offer of {listingTitle} from {dateStart,date,::hmmaYYYYMMMd} to {dateEnd,date,::hmmaYYYYMMMd} on time, so the request has expired.",
+ "NegotiatedBookingOfferExpired.ContentForNightly": "Unfortunately {otherParty} didn't reply to your offer of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} on time, so the request has expired.",
+ "NegotiatedBookingOfferExpired.MarketplaceLinkText": "Book something else instead",
+ "NegotiatedBookingOfferExpired.Subject": "{otherParty} didn't reply to your offer of {listingTitle} on time",
+ "NegotiatedBookingOfferExpired.Title": "Booking request expired",
+ "NegotiatedBookingPaymentExpired.ContentForDaily": "Unfortunately {customerName} didn't pay for the booking of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} on time, so the request has expired.",
+ "NegotiatedBookingPaymentExpired.ContentForHourly": "Unfortunately {customerName} didn't reply to your offer of {listingTitle} from {dateStart,date,::hmmaYYYYMMMd} to {dateEnd,date,::hmmaYYYYMMMd} on time, so the request has expired.",
+ "NegotiatedBookingPaymentExpired.ContentForNightly": "Unfortunately {customerName} didn't pay for the booking of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} on time, so the request has expired.",
+ "NegotiatedBookingPaymentExpired.Cta": "View order details",
+ "NegotiatedBookingPaymentExpired.Subject": "{customerName} didn't pay for the booking on time",
+ "NegotiatedBookingPaymentExpired.Title": "Booking request has expired",
+ "NegotiatedBookingProviderAcceptedOffer.BookingBreakdown": "Next, you need to complete the payment for {amount,number,::.00} {currency}. Here's the booking breakdown.",
+ "NegotiatedBookingProviderAcceptedOffer.Cta": "Complete the payment",
+ "NegotiatedBookingProviderAcceptedOffer.DescriptionDaily": "{providerDisplayName} has accepted your booking request for {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}.",
+ "NegotiatedBookingProviderAcceptedOffer.DescriptionHourly": "{providerDisplayName} has accepted your booking request for {listingTitle} from {dateStart,date,::jmmYYYYMMMd} to {dateEnd,date,::jmmYYYYMMMd}.",
+ "NegotiatedBookingProviderAcceptedOffer.DescriptionNightly": "{providerDisplayName} has accepted your booking request for {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}.",
+ "NegotiatedBookingProviderAcceptedOffer.End": "End",
+ "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownDaily": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}",
+ "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownDailyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownHourly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}",
+ "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownHourlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownNightly": "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}",
+ "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownNightlyWithSeats": "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}",
+ "NegotiatedBookingProviderAcceptedOffer.Subject": "{providerName} accepted your offer!",
+ "NegotiatedBookingProviderAcceptedOffer.SuggestedAdjustment": "Suggested adjustment",
+ "NegotiatedBookingProviderAcceptedOffer.Start": "Start",
+ "NegotiatedBookingProviderAcceptedOffer.Title": "Your booking request was accepted",
+ "NegotiatedBookingProviderAcceptedOffer.TotalPrice": "Total price",
+ "NegotiatedBookingReviewByCustomerWanted.Content": "You recently booked {listingTitle} from {providerDisplayName}. Please leave a review to describe your experience.",
+ "NegotiatedBookingReviewByCustomerWanted.Cta": "Leave a review",
+ "NegotiatedBookingReviewByCustomerWanted.Subject": "Write a review for {listingTitle}",
+ "NegotiatedBookingReviewByCustomerWanted.Title": "Review your experience with {listingTitle}",
+ "NegotiatedBookingReviewByOtherPartyPublished.Content": "The review has been published on your {marketplaceName} profile.",
+ "NegotiatedBookingReviewByOtherPartyPublished.Cta": "View your profile",
+ "NegotiatedBookingReviewByOtherPartyPublished.Heading": "Here's what they wrote",
+ "NegotiatedBookingReviewByOtherPartyPublished.Subject": "Read the review {otherPartyDisplayName} wrote you",
+ "NegotiatedBookingReviewByOtherPartyPublished.Title": "{otherPartyDisplayName} left you a review",
+ "NegotiatedBookingReviewByOtherPartyUnpublished.Content": "{otherPartyDisplayName} left you a new review. To see their review, please leave them a review to describe your experience.",
+ "NegotiatedBookingReviewByOtherPartyUnpublished.Cta": "Leave a review",
+ "NegotiatedBookingReviewByOtherPartyUnpublished.Subject": "{otherPartyDisplayName} left you a review",
+ "NegotiatedBookingReviewByOtherPartyUnpublished.Title": "Leave {otherPartyDisplayName} a review to see their review",
+ "NegotiatedBookingReviewByProviderWanted.Content": "{customerDisplayName} recently booked {listingTitle} from you. Please write {customerDisplayName} a review to describe your experience.",
+ "NegotiatedBookingReviewByProviderWanted.Cta": "Leave a review",
+ "NegotiatedBookingReviewByProviderWanted.Subject": "Write a review for {customerDisplayName}",
+ "NegotiatedBookingReviewByProviderWanted.Title": "Leave {customerDisplayName} a review"
+}
diff --git a/negotiated-booking/templates/counter-offer/counter-offer-html.html b/negotiated-booking/templates/counter-offer/counter-offer-html.html
index ac84706..730a117 100644
--- a/negotiated-booking/templates/counter-offer/counter-offer-html.html
+++ b/negotiated-booking/templates/counter-offer/counter-offer-html.html
@@ -1,10 +1,19 @@
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
- {{~#*inline "format-money"~}}{{money-amount money}} {{ money.currency }}{{~/inline~}}{{~#*inline "format-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="h:mm a" tz=timezone}} on {{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE h:mm a" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d" tz=timezone}}{{/with}}{{~/inline~}}{{#with transaction}}
+
+ {{~#*inline "format-money"~}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount currency=money.currency}}{{~/inline~}}
+ {{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}{{#with transaction}}
@@ -12,254 +21,341 @@
- Please respond to the offer made by {{other-party.display-name}}
- {{other-party.display-name}} made a counter offer for the booking of {{listing.title}}
+ {{t "NegotiatedBookingCounterOffer.Title" "Please respond to the offer made by {otherParty}" otherParty=other-party.display-name}}
+ {{t "NegotiatedBookingCounterOffer.Content" "{otherParty} made a counter offer for the booking of {listingTitle}" otherParty=other-party.display-name listingTitle=listing.title}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCounterOffer.StartLabel" "Start"}}
+ |
+
+ {{t
+ "NegotiatedBookingCounterOffer.EndLabel" "End"}}
+ |
+
+
+
+ {{#each tx-line-items}}{{#eq "line-item/hour" code}}
+
+
+
+ |
+ |
+
+ {{> format-day-time date=booking.start}}
+ |
+
+
+ {{> format-day-time date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+
+ {{> format-month-date date=booking.start}}
+ |
+
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+ {{/eq}}{{#eq "line-item/day" code}}
+
+
+
+ |
+ |
+
+ {{> format-day date=booking.start}}
+ |
+
+
+ {{> format-day-before date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+
+ {{> format-month-date date=booking.start}}
+ |
+
+
+ {{> format-month-date-day-before date=booking.end}}
+ |
+
+
+
+
+ {{/eq}}{{#eq "line-item/night" code}}
+
+
+
+ |
+ |
+
+ {{> format-day date=booking.start}}
+ |
+
+
+ {{> format-day date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+
+ {{> format-month-date date=booking.start}}
+ |
+
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+
+ {{/eq}}{{/each}}
+ {{#each tx-line-items}}{{#contains include-for recipient-role}}{{#eq "line-item/hour" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCounterOffer.PriceBreakdownHourlyWithSeats" "{amount, number, ::.00} {currency} ×
+ {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one
+ {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
+
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{else}}
|
|
- Start
+ {{t
+ "NegotiatedBookingCounterOffer.PriceBreakdownHourly" "{amount,number,::.00} {currency} x {multiplier, number}
+ {multiplier, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency
+ multiplier=quantity}}
|
- End
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/day" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCounterOffer.PriceBreakdownDailyWithSeats" "{amount, number, ::.00} {currency} ×
+ {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat}
+ other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCounterOffer.PriceBreakdownDaily" "{amount,number,::.00} {currency} x {multiplier, number}
+ {multiplier, plural, one {day} other {days}}" amount=unit-price.amount currency=unit-price.currency
+ multiplier=quantity}}
|
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/night" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCounterOffer.PriceBreakdownNightlyWithSeats" "{amount, number, ::.00} {currency} ×
+ {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one
+ {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
+
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCounterOffer.PriceBreakdownNightly" "{amount,number,::.00} {currency} x {multiplier, number}
+ {multiplier, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency
+ multiplier=quantity}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/suggested-adjustment" code}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCounterOffer.SuggestedAdjustment" "Suggested adjustment"}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/eq}}{{#eq "line-item/provider-commission" code}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCounterOffer.FeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name }}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/eq}}{{/contains}}{{/each}}
+
+
+
+
+ |
+ {{#eq recipient-role "provider"}}
+ |
+ {{t
+ "NegotiatedBookingCounterOffer.PayoutLabel" "You'll earn"}}
+ |
+
+ {{>
+ format-money money=payout-total}}
+ |
+ {{else}}
+
+ {{t
+ "NegotiatedBookingCounterOffer.PayinLabel" "Total price"}}
+ |
+
+ {{>
+ format-money money=payin-total}}
+ |
+ {{/eq}}
+
+
+
+
+
+ {{/with}}
+
+
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
+
|
-
- {{#each tx-line-items}}{{#eq "line-item/hour" code}}
-
-
-
- |
- |
- {{> format-day-time date=booking.start}}
- |
-
- {{> format-day-time date=booking.end}}
- |
-
-
-
- {{/eq}}{{#eq "line-item/day" code}}
-
-
-
- |
- |
- {{> format-day date=booking.start}}
- |
-
- {{> format-day-before date=booking.end}}
- |
-
-
-
-
- {{/eq}}{{#eq "line-item/night" code}}
-
-
-
- |
- |
- {{> format-day date=booking.start}}
- |
-
- {{> format-day date=booking.end}}
- |
+
|
-
-
- {{/eq}}{{/each}}
-
-
-
- |
- |
- {{> format-month-date date=booking.start}}
- |
-
- {{> format-month-date date=booking.end}}
- |
-
-
-
- {{#each tx-line-items}}{{#contains include-for recipient-role}}{{#eq "line-item/hour" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "hour" "hours"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "hour" "hours"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/day" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "day" "days"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "day" "days"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/night" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "night" "nights"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "night" "nights"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/suggested-adjustment" code}}
-
-
-
- |
- |
- Suggested adjustment
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/eq}}{{#eq "line-item/provider-commission" code}}
-
-
-
- |
- |
- {{ marketplace.name }} fee
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/eq}}{{/contains}}{{/each}}
-
-
-
-
- |
- {{#eq recipient-role "provider"}}
- |
- You'll earn
- |
-
- {{> format-money money=payout-total}}
- |
- {{else}}
-
- Total price
- |
-
- {{> format-money money=payin-total}}
- |
- {{/eq}}
-
-
-
- {{/with}}
-
-
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
-
-
-
-
-
-
-
-
-
diff --git a/negotiated-booking/templates/counter-offer/counter-offer-subject.txt b/negotiated-booking/templates/counter-offer/counter-offer-subject.txt
index 2afbba8..e3e3a60 100644
--- a/negotiated-booking/templates/counter-offer/counter-offer-subject.txt
+++ b/negotiated-booking/templates/counter-offer/counter-offer-subject.txt
@@ -1,6 +1 @@
-
-{{~#*inline "format-money"~}}
-{{~money-amount money}} {{money.currency~}}
-{{~/inline~}}
-
-{{other-party.display-name}} made a counter offer for {{transaction.listing.title}} for {{> format-money money=transaction.payin-total}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingCounterOffer.Subject" "{otherParty} made a counter offer for {listingTitle} for {amount,number,::.00} {currency}" otherParty=other-party.display-name listingTitle=transaction.listing.title amount=transaction.payin-total.amount currency=transaction.payin-total.currency}}
\ No newline at end of file
diff --git a/negotiated-booking/templates/customer-paid/customer-paid-html.html b/negotiated-booking/templates/customer-paid/customer-paid-html.html
index 4a72458..6bcf65a 100644
--- a/negotiated-booking/templates/customer-paid/customer-paid-html.html
+++ b/negotiated-booking/templates/customer-paid/customer-paid-html.html
@@ -1,260 +1,362 @@
-
+
-
-
- {{~#*inline "format-money"~}}{{money-amount money}} {{ money.currency }}{{~/inline~}}{{~#*inline "format-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="h:mm a" tz=timezone}} on {{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE h:mm a" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d" tz=timezone}}{{/with}}{{~/inline~}}{{#with transaction}}
-
-
-
-
-
-
-
- {{customer.display-name}} paid the booking!{{#each tx-line-items}}{{#eq "line-item/hour" code}}
- {{customer.display-name}} paid the booking for {{listing.title}} in {{marketplace.name}}. Here's the breakdown: {{/ eq}}{{#eq "line-item/day" code}}
- {{customer.display-name}} paid the booking for {{listing.title}} in {{marketplace.name}}. Here's the breakdown: {{/ eq}}{{#eq "line-item/night" code}}
- {{customer.display-name}} paid the booking for {{listing.title}} in {{marketplace.name}}. Here's the breakdown: {{/ eq}}{{/each}}
-
-
-
-
-
-
-
- |
- |
- Start
- |
-
- End
- |
-
-
-
- {{#each tx-line-items}}{{#eq "line-item/hour" code}}
-
-
-
- |
- |
- {{> format-day-time date=booking.start}}
- |
-
- {{> format-day-time date=booking.end}}
- |
-
-
-
- {{/eq}}{{#eq "line-item/day" code}}
+
+
+
+{{~#*inline "format-money"~}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount
+currency=money.currency}}{{~/inline~}}
+{{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}"
+date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}"
+date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+{{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}"
+date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}"
+date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-month-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text
+"{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+{{#with transaction}}
+
+
+
+
+
+
+
+ {{t
+ "NegotiatedBookingCustomerPaid.Title" "{customerName} paid the booking!"
+ customerName=customer.display-name}}
+
+ {{t
+ "NegotiatedBookingCustomerPaid.Content" "{customerName} paid the
+ booking for {listingTitle} in {marketplaceName}. Here's the breakdown:"
+ customerName=customer.display-name listingTitle=listing.title marketplaceName=marketplace.name}}
+
+
+
+
|
|
- {{> format-day date=booking.start}}
+
+ {{t "NegotiatedBookingCustomerPaid.StartLabel" "Start"}}
|
- {{> format-day-before date=booking.end}}
+
+ {{t "NegotiatedBookingCustomerPaid.EndLabel" "End"}}
|
- {{/eq}}{{#eq "line-item/night" code}}
+ {{#each tx-line-items}}{{#eq "line-item/hour" code}}
|
+ |
+
+ {{> format-day-time date=booking.start}}
+ |
+
+
+ {{> format-day-time date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+ {{/eq}}{{#eq "line-item/day" code}}
+
+
+
+ |
+ |
+
+ {{> format-day date=booking.start}}
+ |
+
+
+ {{> format-day-before date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date-day-before date=booking.end}}
+ |
+
+
+
+
+ {{/eq}}{{#eq "line-item/night" code}}
+
+
+
+ |
+ |
+
+ {{> format-day date=booking.start}}
+ |
+
+
+ {{> format-day date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+
+ {{/eq}}{{/each}}
+ {{#each tx-line-items}}{{#contains include-for "provider"}}{{#eq "line-item/hour" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCustomerPaid.PriceBreakdownHourlyWithSeats"
+ "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}"
+ amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCustomerPaid.PriceBreakdownHourly"
+ "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}"
+ amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/day" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCustomerPaid.PriceBreakdownDailyWithSeats"
+ "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}"
+ amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
+
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCustomerPaid.PriceBreakdownDaily"
+ "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}"
+ amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/night" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCustomerPaid.PriceBreakdownNightlyWithSeats"
+ "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}"
+ amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
+
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
|
- {{> format-day date=booking.start}}
+ |
+ {{t
+ "NegotiatedBookingCustomerPaid.PriceBreakdownNightly"
+ "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}"
+ amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/suggested-adjustment" code}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCustomerPaid.SuggestedAdjustment" "Suggested adjustment"}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/eq}}{{#eq "line-item/provider-commission" code}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCustomerPaid.FeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name }}
+
|
- {{> format-day date=booking.end}}
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/eq}}{{/contains}}{{/each}}
+
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingCustomerPaid.PayoutLabel" "You'll earn"}}
+
+ |
+
+ {{>
+ format-money money=payout-total}}
|
- {{/eq}}{{/each}}
-
-
-
- |
- |
- {{> format-month-date date=booking.start}}
- |
-
- {{> format-month-date date=booking.end}}
- |
-
-
-
- {{#each tx-line-items}}{{#contains include-for "provider"}}{{#eq "line-item/hour" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "hour" "hours"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "hour" "hours"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/day" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "day" "days"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "day" "days"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/night" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "night" "nights"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "night" "nights"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/suggested-adjustment" code}}
-
-
-
- |
- |
- Suggested adjustment
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/eq}}{{#eq "line-item/provider-commission" code}}
-
-
-
- |
- |
- {{ marketplace.name }} fee
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/eq}}{{/contains}}{{/each}}
-
-
-
-
- |
- |
- You'll earn
- |
-
- {{> format-money money=payout-total}}
- |
-
-
-
-
|
-
-
-
-
- {{/with}}
-
-
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
-
- |
-
- |
+
+
+
+ |
+
+ {{/with}}
+
+
+ {{t
+ "TransactionEmails.MembershipParagraph"
+ "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team."
+ marketplaceName=marketplace.name }}
+
+ |
+
+
+ |
+
+
+
\ No newline at end of file
diff --git a/negotiated-booking/templates/customer-paid/customer-paid-subject.txt b/negotiated-booking/templates/customer-paid/customer-paid-subject.txt
index 00dfd50..99c7078 100644
--- a/negotiated-booking/templates/customer-paid/customer-paid-subject.txt
+++ b/negotiated-booking/templates/customer-paid/customer-paid-subject.txt
@@ -1 +1 @@
-{{transaction.customer.display-name}} paid the booking of {{transaction.listing.title}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingCustomerPaid.Subject" "{customerName} paid the booking of {listingTitle}" customerName=transaction.customer.display-name listingTitle=transaction.listing.title}}
\ No newline at end of file
diff --git a/negotiated-booking/templates/money-paid/money-paid-html.html b/negotiated-booking/templates/money-paid/money-paid-html.html
index 4252252..99efa01 100644
--- a/negotiated-booking/templates/money-paid/money-paid-html.html
+++ b/negotiated-booking/templates/money-paid/money-paid-html.html
@@ -1,372 +1,305 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
- {{~#*inline "format-money"~}}{{money-amount money}} {{ money.currency }}{{~/inline~}}{{~#*inline "format-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="h:mm a" tz=timezone}} on {{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE h:mm a" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d" tz=timezone}}{{/with}}{{~/inline~}}{{#with transaction}}
-
-
-
-
-
-
-
- You have been paid {{> format-money money=payout-total}}{{#each tx-line-items}}{{#eq "line-item/hour" code}}
- We have sent you {{> format-money money=payout-total}} for the booking of {{ listing.title }} from {{> format-date date=booking.start}} to {{> format-date date=booking.end}} by {{ customer.display-name }}. It might take up to 7 days for the money to reach your bank account. {{/ eq}}{{#eq "line-item/day" code}}
- We have sent you {{> format-money money=payout-total}} for the booking of {{ listing.title }} from {{> format-date-day date=booking.start}} to {{> format-date-day-before date=booking.end}} by {{ customer.display-name }}. It might take up to 7 days for the money to reach your bank account. {{/ eq}}{{#eq "line-item/night" code}}
- We have sent you {{> format-money money=payout-total}} for the booking of {{ listing.title }} from {{> format-date-day date=booking.start}} to {{> format-date-day date=booking.end}} by {{ customer.display-name }}. It might take up to 7 days for the money to reach your bank account. {{/ eq}}{{/each}}
- Here's the booking breakdown.
-
-
-
-
-
-
-
- |
- |
- Start
- |
-
- End
- |
-
-
-
- {{#each tx-line-items}}{{#eq "line-item/hour" code}}
-
-
-
- |
- |
- {{> format-day-time date=booking.start}}
- |
-
- {{> format-day-time date=booking.end}}
- |
-
-
-
- {{/eq}}{{#eq "line-item/day" code}}
-
-
-
- |
- |
- {{> format-day date=booking.start}}
- |
-
- {{> format-day-before date=booking.end}}
- |
-
-
-
-
- {{/eq}}{{#eq "line-item/night" code}}
-
-
-
- |
- |
- {{> format-day date=booking.start}}
- |
-
- {{> format-day date=booking.end}}
- |
-
-
-
-
- {{/eq}}{{/each}}
-
-
-
- |
- |
- {{> format-month-date date=booking.start}}
- |
-
- {{> format-month-date date=booking.end}}
- |
-
-
-
- {{#each tx-line-items}}{{#contains include-for "provider"}}{{#eq "line-item/hour" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "hour" "hours"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "hour" "hours"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/day" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "day" "days"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "day" "days"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/night" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "night" "nights"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "night" "nights"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}
- {{#eq "line-item/suggested-adjustment" code}}
+
+ {{~#*inline "format-money"~}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount currency=money.currency}}{{~/inline~}}
+ {{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+ {{#with transaction}}
+
+
+
+
+
+
+
+ {{t "NegotiatedBookingMoneyPaid.Title" "You have been paid {amount,number,::.00} {currency}" amount=payout-total.amount currency=payout-total.currency}}
+ {{#each tx-line-items}}{{#eq "line-item/hour" code}}
+
+ {{t "NegotiatedBookingMoneyPaid.ContentForHourly" "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::jmmYYYYMMMd} to {dateEnd,date,::jmmYYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account." amount=payout-total.amount currency=payout-total.currency listingTitle=listing.title dateStart=booking.start dateEnd=booking.end customerDisplayName=customer.display-name}}
+
+ {{/ eq}}{{#eq "line-item/day" code}}
+
+ {{t "NegotiatedBookingMoneyPaid.ContentForDaily" "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account." amount=payout-total.amount currency=payout-total.currency listingTitle=listing.title dateStart=booking.start dateEnd=(date-transform booking.end days=-1) customerDisplayName=customer.display-name}}
+ {{/ eq}}{{#eq "line-item/night" code}}
+
+ {{t "NegotiatedBookingMoneyPaid.ContentForNightly" "We have sent you {amount,number,::.00} {currency} for the booking of {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} by {customerDisplayName}. It might take up to 7 days for the money to reach your bank account." amount=payout-total.amount currency=payout-total.currency listingTitle=listing.title dateStart=booking.start dateEnd=booking.end customerDisplayName=customer.display-name}}
+ {{/ eq}}{{/each}}
+ {{t "NegotiatedBookingMoneyPaid.BookingBreakdownTitle" "Here's the booking breakdown."}}
+
+
+
+
|
|
- Adjustment
+ {{t "NegotiatedBookingMoneyPaid.StartLabel" "Start"}}
|
- {{> format-money money=line-total}}
- |
+ {{t "NegotiatedBookingMoneyPaid.EndLabel" "End"}}
-
-
-
- {{/eq}}
- {{#eq "line-item/provider-commission" code}}
- {{#each tx-line-items}}{{#eq "line-item/hour" code}}
+
+
+
+ |
+ |
+ {{> format-day-time date=booking.start}}
+ |
+
+ {{> format-day-time date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
|
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+
+ {{/eq}}{{#eq "line-item/day" code}}
+
+
+
+ |
+ |
+ {{> format-day date=booking.start}}
+ |
+
+ {{> format-day-before date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
|
- {{ marketplace.name }} fee
+ {{> format-month-date date=booking.start}}
|
- {{> format-money money=line-total}}
+ {{> format-month-date-day-before date=booking.end}}
|
+
+
+
+
+ {{/eq}}{{#eq "line-item/night" code}}
+
+
+
+ |
+ |
+ {{> format-day date=booking.start}}
+ |
+
+ {{> format-day date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date date=booking.end}}
|
-
-
-
+ |
+
+
+
+ {{/eq}}{{/each}}{{#each tx-line-items}}{{#contains include-for "provider"}}{{#eq "line-item/hour" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t "NegotiatedBookingMoneyPaid.PriceBreakdownHourlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
+ |
+
+ {{> format-money money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t "NegotiatedBookingMoneyPaid.PriceBreakdownHourly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
+ |
+
+ {{> format-money money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/day" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t "NegotiatedBookingMoneyPaid.PriceBreakdownDailyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
+ |
+
+ {{> format-money money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t "NegotiatedBookingMoneyPaid.PriceBreakdownDaily" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
+ |
+
+ {{> format-money money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/night" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t "NegotiatedBookingMoneyPaid.PriceBreakdownNightlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
+ |
+
+ {{> format-money money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t "NegotiatedBookingMoneyPaid.PriceBreakdownNightly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
+ |
+
+ {{> format-money money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}
+ {{#eq "line-item/suggested-adjustment" code}}
+
+
+
+ |
+ |
+ {{t "NegotiatedBookingMoneyPaid.AdjustmentTitle" "Adjustment"}}
+ |
+
+ {{> format-money money=line-total}}
+ |
+
+
+
+
+ {{/eq}}
+ {{#eq "line-item/provider-commission" code}}
+
+
+
+ |
+ |
+ {{t "NegotiatedBookingMoneyPaid.FeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name }}
+ |
+
+ {{> format-money money=line-total}}
+ |
+
+
+
+
{{/eq}}{{/contains}}{{/each}}
-
-
-
-
- |
- |
- You'll earn
- |
-
- {{> format-money money=payout-total}}
- |
-
-
-
-
- |
+
+
+
+
+ |
+ |
+ {{t "NegotiatedBookingMoneyPaid.PayoutLabel" "You'll earn"}}
+ |
+
+ {{> format-money money=payout-total}}
+ |
+
+
+
+
+
+
+
+
-
+ |
{{/with}}
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
- |
-
-
- |
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/negotiated-booking/templates/money-paid/money-paid-subject.txt b/negotiated-booking/templates/money-paid/money-paid-subject.txt
index 229cbd6..1aa65da 100644
--- a/negotiated-booking/templates/money-paid/money-paid-subject.txt
+++ b/negotiated-booking/templates/money-paid/money-paid-subject.txt
@@ -1 +1 @@
-You have been paid {{money-amount transaction.payout-total}} {{transaction.payout-total.currency}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingMoneyPaid.Subject" "You have been paid {amount,number,::.00} {currency}" amount=transaction.payout-total.amount currency=transaction.payout-total.currency}}
\ No newline at end of file
diff --git a/negotiated-booking/templates/new-booking-request-with-offer/new-booking-request-with-offer-html.html b/negotiated-booking/templates/new-booking-request-with-offer/new-booking-request-with-offer-html.html
index 4aaca16..8fc1a5f 100644
--- a/negotiated-booking/templates/new-booking-request-with-offer/new-booking-request-with-offer-html.html
+++ b/negotiated-booking/templates/new-booking-request-with-offer/new-booking-request-with-offer-html.html
@@ -1,270 +1,376 @@
-
+
-
-
-
- {{~#*inline "format-money"~}}{{money-amount money}} {{ money.currency }}{{~/inline~}}
- {{~#*inline "format-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="h:mm a" tz=timezone}} on {{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-date-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="EE" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE h:mm a" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d" tz=timezone}}{{/with}}{{~/inline~}}
- {{#with transaction}}
-
-
-
-
-
-
-
- You have a new booking request for {{listing.title}}{{#each tx-line-items}}{{#eq "line-item/hour" code}}
- {{customer.display-name}} requested to book {{listing.title}} in {{marketplace.name}}. {{/ eq}}{{#eq "line-item/day" code}}
- {{customer.display-name}} requested to book {{listing.title}} in {{marketplace.name}}. {{/ eq}}{{#eq "line-item/night" code}}
- {{customer.display-name}} requested to book {{listing.title}} in {{marketplace.name}}. {{/ eq}}{{/each}}
-
-
-
-
-
-
-
- |
- |
- Start
- |
-
- End
- |
-
-
-
- {{#each tx-line-items}}{{#eq "line-item/hour" code}}
-
-
-
- |
- |
- {{> format-day-time date=booking.start}}
- |
-
- {{> format-day-time date=booking.end}}
- |
-
-
-
- {{/eq}}{{#eq "line-item/day" code}}
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
+
+
+
+{{~#*inline "format-money"~}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount
+currency=money.currency}}{{~/inline~}}
+{{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}"
+date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}"
+date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+{{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}"
+date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}"
+date=date}}{{/with}}{{~/inline~}}
+{{~#*inline "format-month-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{format-text
+"{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+{{#with transaction}}
+
+
+
+
+
+
+
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.Title" "You have a new booking request for {listingTitle}"
+ listingTitle=listing.title}}
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.Description" "{customerDisplayName} requested to book
+ {listingTitle} in {marketplaceName}." customerDisplayName=customer.display-name
+ listingTitle=listing.title marketplaceName=marketplace.name}}
+
+
+
+
+
+
+
+ |
+ |
+
+ {{t "NegotiatedBookingNewRequestWithOffer.StartLabel" "Start"}}
+ |
+
+
+ {{t "NegotiatedBookingNewRequestWithOffer.EndLabel" "End"}}
+ |
+
+
+
+ {{#each tx-line-items}}{{#eq "line-item/hour" code}}
+
+
+
+ |
+ |
+
+ {{> format-day-time date=booking.start}}
+ |
+
+
+ {{> format-day-time date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+
+ {{> format-month-date date=booking.start}}
+ |
+
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+ {{/eq}}{{#eq "line-item/day" code}}
+
+
+
+ |
+ |
+
+ {{> format-day date=booking.start}}
+ |
+
+
+ {{> format-day-before date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+
+ {{> format-month-date date=booking.start}}
+ |
+
+
+ {{> format-month-date-day-before date=booking.end}}
+ |
+
+
+
+
+ {{/eq}}{{#eq "line-item/night" code}}
+
+
+
+ |
+ |
+
+ {{> format-day date=booking.start}}
+ |
+
+
+ {{> format-day date=booking.end}}
+ |
+
+
+
+
+
+
+
+ |
+ |
+
+ {{> format-month-date date=booking.start}}
+ |
+
+
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+
+ {{/eq}}{{/each}}
+ {{#each tx-line-items}}{{#contains include-for "provider"}}{{#eq "line-item/hour" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.PriceForHoursQuantityWithSeats" "{amount, number, ::.00} {currency} ×
+ {units, number} {units, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other
+ {seats}}" amount=unit-price.amount currency=unit-price.currency units=units seats=seats}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.PriceForHoursQuantity" "{amount, number, ::.00} {currency} × {units,
+ number} {units, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency
+ units=quantity}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/day" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.PriceForDaysQuantityWithSeats" "{amount, number, ::.00} {currency} ×
+ {units, number}
+ {units, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}"
+ amount=unit-price.amount currency=unit-price.currency units=units seats=seats}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.PriceForDaysQuantity" "{amount, number, ::.00} {currency} × {units,
+ number} {units, plural, one
+ {day} other {days}}" amount=unit-price.amount currency=unit-price.currency units=quantity}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/night" code}}{{#if seats}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.PriceForNightsQuantityWithSeats" "{amount, number, ::.00} {currency} ×
+ {units, number} {units, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other
+ {seats}}" amount=unit-price.amount currency=unit-price.currency units=units seats=seats}}
+
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{else}}
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.PriceForNightsQuantity" "{amount, number, ::.00} {currency} × {units,
+ number} {units, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency
+ units=quantity}}
+ |
+
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/if}}{{/eq}}{{#eq "line-item/suggested-adjustment" code}}
|
|
- {{> format-day date=booking.start}}
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.SuggestedAdjustment" "Suggested adjustment"}}
|
- {{> format-day-before date=booking.end}}
+ {{> format-money
+ money=line-total}}
|
- {{/eq}}{{#eq "line-item/night" code}}
+ {{/eq}}{{#eq "line-item/provider-commission" code}}
|
|
- {{> format-day date=booking.start}}
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.FeeLabel" "{marketplaceName} fee" marketplaceName=marketplace.name }}
+
|
- {{> format-day date=booking.end}}
+ {{> format-money
+ money=line-total}}
+ |
+
+
+
+
+ {{/eq}}{{/contains}}{{/each}}
+
+
+
+
+ |
+ |
+ {{t
+ "NegotiatedBookingNewRequestWithOffer.EarningLabel" "You'll earn"}}
+
+ |
+
+ {{>
+ format-money money=payout-total}}
|
- {{/eq}}{{/each}}
-
-
-
- |
- |
- {{> format-month-date date=booking.start}}
- |
-
- {{> format-month-date date=booking.end}}
- |
-
-
-
- {{#each tx-line-items}}{{#contains include-for "provider"}}{{#eq "line-item/hour" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "hour" "hours"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "hour" "hours"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/day" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "day" "days"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "day" "days"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/night" code}}{{#if seats}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "night" "nights"}}
- Seats × {{number seats}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{else}}
-
-
-
- |
- |
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "night" "nights"}}
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/if}}{{/eq}}{{#eq "line-item/suggested-adjustment" code}}
-
-
-
- |
- |
- Suggested adjustment
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/eq}}{{#eq "line-item/provider-commission" code}}
-
-
-
- |
- |
- {{ marketplace.name }} fee
- |
-
- {{> format-money money=line-total}}
- |
-
-
-
-
- {{/eq}}{{/contains}}{{/each}}
-
-
-
-
- |
- |
- You'll earn
- |
-
- {{> format-money money=payout-total}}
- |
-
-
-
-
|
-
-
-
- You need to accept the offer or make a counter offer. You need to come to an agreement by {{> format-date date=delayed-transition.run-at}}. Otherwise the request will expire and the booking won't take place.
- If the booked dates don't work for you, you can also choose to decline the request.
-
- {{/with}}
-
-
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
-
- |
-
- |
+
+
+ {{t "NegotiatedBookingNewRequestWithOffer.AcceptText"
+ "You need to accept the offer or make a counter offer. You need to come to an agreement by {date,date,::jmmYYYYMMMd}. Otherwise
+ the request will expire and the booking won't take place." date=delayed-transition.run-at}}
+ {{t "NegotiatedBookingNewRequestWithOffer.DeclineOptionText" "If the
+ booked dates don't work for you, you can also choose to decline the request."}}
+
+ |
+
+ {{/with}}
+
+
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name}}
+
+ |
+
+
+ |
+
+
+
\ No newline at end of file
diff --git a/negotiated-booking/templates/new-booking-request-with-offer/new-booking-request-with-offer-subject.txt b/negotiated-booking/templates/new-booking-request-with-offer/new-booking-request-with-offer-subject.txt
index 94a43fa..23135f6 100644
--- a/negotiated-booking/templates/new-booking-request-with-offer/new-booking-request-with-offer-subject.txt
+++ b/negotiated-booking/templates/new-booking-request-with-offer/new-booking-request-with-offer-subject.txt
@@ -1,5 +1 @@
-
-{{~#*inline "format-money"~}}
-{{~money-amount money}} {{money.currency~}}
-{{~/inline~}}
-{{~transaction.customer.display-name}} has requested to book {{transaction.listing.title}} for {{> format-money money=transaction.payin-total}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingNewRequestWithOffer.Subject" "{customerName} has requested to book {listingTitle} for {amount,number,::.00} {currency}" customerName=transaction.customer.display-name listingTitle=transaction.listing.title amount=transaction.payin-total.amount currency=transaction.payin-total.currency}}
\ No newline at end of file
diff --git a/negotiated-booking/templates/offer-declined/offer-declined-html.html b/negotiated-booking/templates/offer-declined/offer-declined-html.html
index 525f551..88af481 100644
--- a/negotiated-booking/templates/offer-declined/offer-declined-html.html
+++ b/negotiated-booking/templates/offer-declined/offer-declined-html.html
@@ -1,12 +1,11 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
- {{~#*inline "format-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="h:mm a" tz=timezone}} on {{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-date-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="EE" tz=timezone}}{{/with}}{{~/inline~}}
{{#with transaction}}
@@ -15,38 +14,37 @@
- Offer was declined
- Unfortunately {{ other-party.display-name }} decided to decline your offer for the booking of {{listing.title}} from
+ {{t "NegotiatedBookingOfferDeclined.Title" "Offer was declined" }}
+
{{#each tx-line-items}}
{{#eq "line-item/hour" code}}
- {{> format-date date=booking.start}} to {{> format-date date=booking.end}}.
+ {{t "NegotiatedBookingOfferDeclined.ContentForHourly" "Unfortunately {otherParty} decided to decline your offer for the booking of {listingTitle} from {dateStart,date,::hmmaYYYYMMMd} to {dateEnd,date,::hmmaYYYYMMMd}." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title otherParty=other-party.display-name}}
{{/eq}}
{{#eq "line-item/day" code}}
- {{> format-date-day date=booking.start}} to {{> format-day-before date=booking.end}}.
+ {{t "NegotiatedBookingOfferDeclined.ContentForDaily" "Unfortunately {otherParty} decided to decline your offer for the booking of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}." dateStart=booking.start dateEnd=(date-transform booking.end days=-1) listingTitle=listing.title otherParty=other-party.display-name}}
{{/eq}}
{{#eq "line-item/night" code}}
- {{> format-date-day date=booking.start}} to {{> format-date-day date=booking.end}}.
- {{/eq}}
- {{/each}}
-
+ {{t "NegotiatedBookingOfferDeclined.ContentForNightly" "Unfortunately {otherParty} decided to decline your offer for the booking of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title otherParty=other-party.display-name}}
+ {{/eq}}
+ {{/each}}
{{#eq "customer" recipient-role}}
- Book something else instead
+ {{t "NegotiatedBookingOfferDeclined.MarketplaceLinkText" "Book something else instead"}}
{{/eq}}
{{/with}}
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
|
diff --git a/negotiated-booking/templates/offer-declined/offer-declined-subject.txt b/negotiated-booking/templates/offer-declined/offer-declined-subject.txt
index 8ef203d..5c656e3 100644
--- a/negotiated-booking/templates/offer-declined/offer-declined-subject.txt
+++ b/negotiated-booking/templates/offer-declined/offer-declined-subject.txt
@@ -1 +1 @@
-{{other-party.display-name}} declined your offer for {{transaction.listing.title}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingOfferDeclined.Subject" "{otherParty} declined your offer for {listingTitle}" otherParty=other-party.display-name listingTitle=transaction.listing.title }}
\ No newline at end of file
diff --git a/negotiated-booking/templates/offer-expired/offer-expired-html.html b/negotiated-booking/templates/offer-expired/offer-expired-html.html
index 48e3345..4460570 100644
--- a/negotiated-booking/templates/offer-expired/offer-expired-html.html
+++ b/negotiated-booking/templates/offer-expired/offer-expired-html.html
@@ -1,12 +1,11 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
- {{~#*inline "format-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="h:mm a" tz=timezone}} on {{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-date-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="EE" tz=timezone}}{{/with}}{{~/inline~}}
{{#with transaction}}
@@ -15,38 +14,37 @@
- Booking request expired
- Unfortunately {{other-party.display-name}} didn't reply to your offer of {{listing.title}} from
+ {{t "NegotiatedBookingOfferExpired.Title" "Booking request expired" }}
+
{{#each tx-line-items}}
{{#eq "line-item/hour" code}}
- {{> format-date date=booking.start}} to {{> format-date date=booking.end}}
+ {{t "NegotiatedBookingOfferExpired.ContentForHourly" "Unfortunately {otherParty} didn't reply to your offer of {listingTitle} from {dateStart,date,::hmmaYYYYMMMd} to {dateEnd,date,::hmmaYYYYMMMd} on time, so the request has expired." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title otherParty=other-party.display-name}}
{{/eq}}
{{#eq "line-item/day" code}}
- {{> format-date-day date=booking.start}} to {{> format-day-before date=booking.end}}
+ {{t "NegotiatedBookingOfferExpired.ContentForDaily" "Unfortunately {otherParty} didn't reply to your offer of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} on time, so the request has expired." dateStart=booking.start dateEnd=(date-transform booking.end days=-1) listingTitle=listing.title otherParty=other-party.display-name}}
{{/eq}}
{{#eq "line-item/night" code}}
- {{> format-date-day date=booking.start}} to {{> format-date-day date=booking.end}}
- {{/eq}}
- {{/each}}
- on time, so the request has expired.
+ {{t "NegotiatedBookingOfferExpired.ContentForNightly" "Unfortunately {otherParty} didn't reply to your offer of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} on time, so the request has expired." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title otherParty=other-party.display-name}}
+ {{/eq}}
+ {{/each}}
{{#eq "customer" recipient-role}}
- Book something else instead
+ {{t "NegotiatedBookingOfferExpired.MarketplaceLinkText" "Book something else instead"}}
{{/eq}}
{{/with}}
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
|
diff --git a/negotiated-booking/templates/offer-expired/offer-expired-subject.txt b/negotiated-booking/templates/offer-expired/offer-expired-subject.txt
index 22e13f5..79be195 100644
--- a/negotiated-booking/templates/offer-expired/offer-expired-subject.txt
+++ b/negotiated-booking/templates/offer-expired/offer-expired-subject.txt
@@ -1 +1 @@
-{{other-party.display-name}} didn't reply to your offer of {{transaction.listing.title}} on time
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingOfferExpired.Subject" "{otherParty} didn't reply to your offer of {listingTitle} on time" otherParty=other-party.display-name listingTitle=transaction.listing.title }}
\ No newline at end of file
diff --git a/negotiated-booking/templates/payment-expired/payment-expired-html.html b/negotiated-booking/templates/payment-expired/payment-expired-html.html
index bc462e8..144a74b 100644
--- a/negotiated-booking/templates/payment-expired/payment-expired-html.html
+++ b/negotiated-booking/templates/payment-expired/payment-expired-html.html
@@ -1,12 +1,11 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
- {{~#*inline "format-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="h:mm a" tz=timezone}} on {{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-date-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}
- {{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="EE" tz=timezone}}{{/with}}{{~/inline~}}
{{#with transaction}}
@@ -15,36 +14,34 @@
- Booking request has expired
- Unfortunately {{customer.display-name}} didn't pay for the booking of {{listing.title}} from
+ {{t "NegotiatedBookingPaymentExpired.Title" "Booking request has expired" }}
+
{{#each tx-line-items}}
{{#eq "line-item/hour" code}}
- {{> format-date date=booking.start}} to {{> format-date date=booking.end}}
+ {{t "NegotiatedBookingPaymentExpired.ContentForHourly" "Unfortunately {customerName} didn't pay for the booking of {listingTitle} from {dateStart,date,::hmmaYYYYMMMd} to {dateEnd,date,::hmmaYYYYMMMd} on time, so the request has expired." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title customerName=customer.display-name}}
{{/eq}}
{{#eq "line-item/day" code}}
- {{> format-date-day date=booking.start}} to {{> format-day-before date=booking.end}}
+ {{t "NegotiatedBookingPaymentExpired.ContentForDaily" "Unfortunately {customerName} didn't pay for the booking of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} on time, so the request has expired." dateStart=booking.start dateEnd=(date-transform booking.end days=-1) listingTitle=listing.title customerName=customer.display-name}}
{{/eq}}
{{#eq "line-item/night" code}}
- {{> format-date-day date=booking.start}} to {{> format-date-day date=booking.end}}
- {{/eq}}
- {{/each}}
- on time, so the request has expired.
+ {{t "NegotiatedBookingPaymentExpired.ContentForNightly" "Unfortunately {customerName} didn't pay for the booking of {listingTitle} from from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd} on time, so the request has expired." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title customerName=customer.display-name}}
+ {{/eq}}
+ {{/each}}
- Book something else instead
{{/with}}
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name}}
|
diff --git a/negotiated-booking/templates/payment-expired/payment-expired-subject.txt b/negotiated-booking/templates/payment-expired/payment-expired-subject.txt
index 6cdb7d9..1d6fe81 100644
--- a/negotiated-booking/templates/payment-expired/payment-expired-subject.txt
+++ b/negotiated-booking/templates/payment-expired/payment-expired-subject.txt
@@ -1 +1 @@
-{{transaction.customer.display-name}} didn't pay for the booking on time
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingPaymentExpired.Subject" "{customerName} didn't pay for the booking on time" customerName=transaction.customer.display-name }}
diff --git a/negotiated-booking/templates/provider-accepted-offer/provider-accepted-offer-html.html b/negotiated-booking/templates/provider-accepted-offer/provider-accepted-offer-html.html
index 120aa27..fcd8257 100644
--- a/negotiated-booking/templates/provider-accepted-offer/provider-accepted-offer-html.html
+++ b/negotiated-booking/templates/provider-accepted-offer/provider-accepted-offer-html.html
@@ -1,9 +1,20 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
- {{~#*inline "format-money"~}}{{money-amount money}} {{ money.currency }}{{~/inline~}}{{~#*inline "format-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="h:mm a" tz=timezone}} on {{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE h:mm a" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d" tz=timezone}}{{/with}}{{~/inline~}}{{#with transaction}}
+
+ {{~#*inline "format-money"~}}{{money-amount money}} {{ money.currency }}{{~/inline~}}{{~#*inline "format-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="h:mm a" tz=timezone}} on {{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-date-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="MMM d, YYYY" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-before"~}}{{#with transaction.listing.availability-plan}}{{date-day-before date format="EE" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-day-time"~}}{{#with transaction.listing.availability-plan}}{{date date format="EE h:mm a" tz=timezone}}{{/with}}{{~/inline~}}{{~#*inline "format-month-date"~}}{{#with transaction.listing.availability-plan}}{{date date format="MMM d" tz=timezone}}{{/with}}{{~/inline~}}
+
+ {{~#*inline "format-money"}}{{format-text "{amount,number,::.00} {currency}" amount=money.amount currency=money.currency}}{{~/inline~}}
+ {{~#*inline "format-day"}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-before"}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EE}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-day-time"}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::EEjmm}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date"}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=date}}{{/with}}{{~/inline~}}
+ {{~#*inline "format-month-date-day-before"}}{{#with transaction.listing.availability-plan}}{{format-text "{date,date,::MMMd}" date=(date-transform date days=-1)}}{{/with}}{{~/inline~}}
+ {{#with transaction}}
@@ -11,14 +22,15 @@
- Your booking request was accepted{{#each tx-line-items}}{{#eq "line-item/hour" code}}
- {{ provider.display-name }} has accepted your booking request for {{ listing.title }} from {{> format-date date=booking.start}} to {{> format-date date=booking.end}}.
+ {{t "NegotiatedBookingProviderAcceptedOffer.Title" "Your booking request was accepted"}}
+ {{#each tx-line-items}}{{#eq "line-item/hour" code}}
+ {{t "NegotiatedBookingProviderAcceptedOffer.DescriptionHourly" "{providerDisplayName} has accepted your booking request for {listingTitle} from {dateStart,date,::jmmYYYYMMMd} to {dateEnd,date,::jmmYYYYMMMd}." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title providerDisplayName=provider.display-name}}
{{/eq}}{{#eq "line-item/day" code}}
- {{ provider.display-name }} has accepted your booking request for {{ listing.title }} from {{> format-date- ay date=booking.start}} to {{> format-date-day-before date=booking.end}}.
+ {{t "NegotiatedBookingProviderAcceptedOffer.DescriptionDaily" "{providerDisplayName} has accepted your booking request for {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}." dateStart=booking.start dateEnd=(date-transform booking.end days=-1) listingTitle=listing.title providerDisplayName=provider.display-name}}
{{/eq}}{{#eq "line-item/night" code}}
- {{ provider.display-name }} has accepted your booking request for {{ listing.title }} from {{> format-date-day date=booking.start}} to {{> format-date-day date=booking.end}}.
+ {{t "NegotiatedBookingProviderAcceptedOffer.DescriptionNightly" "{providerDisplayName} has accepted your booking request for {listingTitle} from {dateStart,date,::YYYYMMMd} to {dateEnd,date,::YYYYMMMd}." dateStart=booking.start dateEnd=booking.end listingTitle=listing.title providerDisplayName=provider.display-name}}
{{/eq}}{{/each}}
- Next, you need to complete the payment for {{> format-money money=payin-total}}. Here's the booking breakdown.
+ {{t "NegotiatedBookingProviderAcceptedOffer.BookingBreakdown" "Next, you need to complete the payment for {amount,number,::.00} {currency}. Here's the booking breakdown." amount=payin-total.amount currency=payin-total.currency}}
@@ -28,29 +40,50 @@ Your bo
|
|
- Start
+ {{t
+ "NegotiatedBookingProviderAcceptedOffer.Start" "Start"}}
+ |
+
+ {{t
+ "NegotiatedBookingProviderAcceptedOffer.End" "End"}}
+ |
+
+
+
+ {{#each tx-line-items}}{{#eq "line-item/hour" code}}
+
+
+
+ |
+ |
+
+ {{> format-day-time date=booking.start}}
|
- End
+
+ {{> format-day-time date=booking.end}}
+ |
-
-
-
- {{#each tx-line-items}}{{#eq "line-item/hour" code}}
-
-
-
- |
- |
- {{> format-day-time date=booking.start}}
- |
-
- {{> format-day-time date=booking.end}}
- |
+
+
+
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
|
-
-
- {{/eq}}{{#eq "line-item/day" code}}
+ |
+ {{> format-month-date date=booking.end}}
+ |
+
+
+
+
+ {{/eq}}{{#eq "line-item/day" code}}
@@ -65,6 +98,20 @@ Your bo
+
+
+
+ |
+ |
+ {{> format-month-date date=booking.start}}
+ |
+
+ {{> format-month-date-day-before date=booking.end}}
+ |
+
+
+
+
{{/eq}}{{#eq "line-item/night" code}}
@@ -80,8 +127,7 @@ Your bo
- {{/eq}}{{/each}}
-
+
@@ -94,14 +140,15 @@ Your bo
|
- {{#each tx-line-items}}{{#contains include-for "customer"}}{{#eq "line-item/hour" code}}{{#if seats}}
+
+ {{/eq}}{{/each}}
+ {{#each tx-line-items}}{{#contains include-for "customer"}}{{#eq "line-item/hour" code}}{{#if seats}}
|
|
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "hour" "hours"}}
- Seats × {{number seats}}
+ {{t "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownHourlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {hour} other {hours}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
{{> format-money money=line-total}}
@@ -116,7 +163,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "hour" "hours"}}
+ {{t "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownHourly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {hour} other {hours}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
{{> format-money money=line-total}}
@@ -131,8 +178,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "day" "days"}}
- Seats × {{number seats}}
+ {{t "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownDailyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {day} other {days}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
{{> format-money money=line-total}}
@@ -147,7 +193,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "day" "days"}}
+ {{t "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownDaily" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {day} other {days}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
{{> format-money money=line-total}}
@@ -162,8 +208,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} × {{number units}} {{inflect units "night" "nights"}}
- Seats × {{number seats}}
+ {{t "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownNightlyWithSeats" "{amount, number, ::.00} {currency} × {multiplier, number} {multiplier, plural, one {night} other {nights}} x {seats, number} {seats, plural, one {seat} other {seats}}" amount=unit-price.amount currency=unit-price.currency multiplier=units seats=seats}}
|
{{> format-money money=line-total}}
@@ -178,7 +223,7 @@ Your bo
|
|
- {{> format-money money=unit-price}} × {{number quantity}} {{inflect quantity "night" "nights"}}
+ {{t "NegotiatedBookingProviderAcceptedOffer.PriceBreakdownNightly" "{amount,number,::.00} {currency} x {multiplier, number} {multiplier, plural, one {night} other {nights}}" amount=unit-price.amount currency=unit-price.currency multiplier=quantity}}
|
{{> format-money money=line-total}}
@@ -193,7 +238,7 @@ Your bo
|
|
- Suggested adjustment
+ {{t "NegotiatedBookingProviderAcceptedOffer.SuggestedAdjustment" "Suggested adjustment"}}
|
{{> format-money money=line-total}}
@@ -209,7 +254,7 @@ Your bo
|
|
- Total price
+ {{t "NegotiatedBookingProviderAcceptedOffer.TotalPrice" "Total price"}}
|
{{> format-money money=payin-total}}
@@ -225,9 +270,9 @@ Your bo
- | Complete the payment
+ | {{t "NegotiatedBookingProviderAcceptedOffer.Cta" "Complete the payment"}}
|
@@ -236,7 +281,7 @@ Your bo
{{/with}}
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You're a member of {marketplaceName}. If you no longer want to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/negotiated-booking/templates/provider-accepted-offer/provider-accepted-offer-subject.txt b/negotiated-booking/templates/provider-accepted-offer/provider-accepted-offer-subject.txt
index e56d8c1..9faff57 100644
--- a/negotiated-booking/templates/provider-accepted-offer/provider-accepted-offer-subject.txt
+++ b/negotiated-booking/templates/provider-accepted-offer/provider-accepted-offer-subject.txt
@@ -1 +1,2 @@
-{{transaction.provider.display-name}} accepted your offer!
\ No newline at end of file
+
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingProviderAcceptedOffer.Subject" "{providerName} accepted your offer!" providerName=transaction.provider.display-name }}
\ No newline at end of file
diff --git a/negotiated-booking/templates/review-by-customer-wanted/review-by-customer-wanted-html.html b/negotiated-booking/templates/review-by-customer-wanted/review-by-customer-wanted-html.html
index 64051ab..24d3065 100644
--- a/negotiated-booking/templates/review-by-customer-wanted/review-by-customer-wanted-html.html
+++ b/negotiated-booking/templates/review-by-customer-wanted/review-by-customer-wanted-html.html
@@ -1,6 +1,8 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
{{#with transaction}}
@@ -11,14 +13,14 @@
- Review your experience with {{listing.title}}
- You recently booked {{listing.title}} from {{provider.display-name}}. Please leave a review to describe your experience.
+ {{t "NegotiatedBookingReviewByCustomerWanted.Title" "Review your experience with {listingTitle}" listingTitle=listing.title}}
+ {{t "NegotiatedBookingReviewByCustomerWanted.Content" "You recently booked {listingTitle} from {providerDisplayName}. Please leave a review to describe your experience." listingTitle=listing.title providerDisplayName=provider.display-name}}
- | Leave a review
+ | {{t "NegotiatedBookingReviewByCustomerWanted.Cta" "Leave a review"}}
|
@@ -27,7 +29,7 @@ Review
{{/with}}
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/negotiated-booking/templates/review-by-customer-wanted/review-by-customer-wanted-subject.txt b/negotiated-booking/templates/review-by-customer-wanted/review-by-customer-wanted-subject.txt
index bbfbdc5..4f3b6ca 100644
--- a/negotiated-booking/templates/review-by-customer-wanted/review-by-customer-wanted-subject.txt
+++ b/negotiated-booking/templates/review-by-customer-wanted/review-by-customer-wanted-subject.txt
@@ -1 +1 @@
-Write a review for {{transaction.listing.title}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingReviewByCustomerWanted.Subject" "Write a review for {listingTitle}" listingTitle=transaction.listing.title }}
\ No newline at end of file
diff --git a/negotiated-booking/templates/review-by-other-party-published/review-by-other-party-published-html.html b/negotiated-booking/templates/review-by-other-party-published/review-by-other-party-published-html.html
index 56d66d4..1793bfb 100644
--- a/negotiated-booking/templates/review-by-other-party-published/review-by-other-party-published-html.html
+++ b/negotiated-booking/templates/review-by-other-party-published/review-by-other-party-published-html.html
@@ -1,6 +1,8 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
{{#with transaction}}
@@ -11,17 +13,18 @@
- {{other-party.display-name}} left you a review
- Here's what they wrote: {{#each reviews }}{{#eq recipient.id subject.id }}
+ {{t "NegotiatedBookingReviewByOtherPartyPublished.Title" "{otherPartyDisplayName} left you a review" otherPartyDisplayName=other-party.display-name}}
+ {{t "NegotiatedBookingReviewByOtherPartyPublished.Heading" "Here's what they wrote"}}
+ {{#each reviews }}{{#eq recipient.id subject.id }}
{{content}}
{{/eq}}{{/each}}
- The review has been published on your {{marketplace.name}} profile.
+ {{t "NegotiatedBookingReviewByOtherPartyPublished.Content" "The review has been published on your {marketplaceName} profile." marketplaceName=marketplace.name}}
- | View your profile
+ | {{t "NegotiatedBookingReviewByOtherPartyPublished.Cta" "View your profile"}}
|
@@ -30,7 +33,7 @@ {{other
{{/with}}
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/negotiated-booking/templates/review-by-other-party-published/review-by-other-party-published-subject.txt b/negotiated-booking/templates/review-by-other-party-published/review-by-other-party-published-subject.txt
index c982383..bd340ed 100644
--- a/negotiated-booking/templates/review-by-other-party-published/review-by-other-party-published-subject.txt
+++ b/negotiated-booking/templates/review-by-other-party-published/review-by-other-party-published-subject.txt
@@ -1 +1 @@
-Read the review {{other-party.display-name}} wrote you
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingReviewByOtherPartyPublished.Subject" "Read the review {otherPartyDisplayName} wrote you" otherPartyDisplayName=other-party.display-name }}
\ No newline at end of file
diff --git a/negotiated-booking/templates/review-by-other-party-unpublished/review-by-other-party-unpublished-html.html b/negotiated-booking/templates/review-by-other-party-unpublished/review-by-other-party-unpublished-html.html
index f882355..f3b7b32 100644
--- a/negotiated-booking/templates/review-by-other-party-unpublished/review-by-other-party-unpublished-html.html
+++ b/negotiated-booking/templates/review-by-other-party-unpublished/review-by-other-party-unpublished-html.html
@@ -1,6 +1,8 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
{{#with transaction}}
@@ -11,15 +13,14 @@
- Leave {{other-party.display-name}} a review to see their review
- {{other-party.display-name}} left you a new review. To see their review, please leave them a review to describe your experience.
+ {{t "NegotiatedBookingReviewByOtherPartyUnpublished.Title" "Leave {otherPartyDisplayName} a review to see their review" otherPartyDisplayName=other-party.display-name}}
+ {{t "NegotiatedBookingReviewByOtherPartyUnpublished.Content" "{otherPartyDisplayName} left you a new review. To see their review, please leave them a review to describe your experience." otherPartyDisplayName=other-party.display-name}}
- | Leave a review
+ | {{t "NegotiatedBookingReviewByOtherPartyUnpublished.Cta" "Leave a review" }}
|
@@ -28,7 +29,7 @@ Leave {
{{/with}}
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/negotiated-booking/templates/review-by-other-party-unpublished/review-by-other-party-unpublished-subject.txt b/negotiated-booking/templates/review-by-other-party-unpublished/review-by-other-party-unpublished-subject.txt
index c180afa..d11b44b 100644
--- a/negotiated-booking/templates/review-by-other-party-unpublished/review-by-other-party-unpublished-subject.txt
+++ b/negotiated-booking/templates/review-by-other-party-unpublished/review-by-other-party-unpublished-subject.txt
@@ -1 +1 @@
-{{other-party.display-name}} wrote you a review
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingReviewByOtherPartyUnpublished.Subject" "{otherPartyDisplayName} left you a review" otherPartyDisplayName=other-party.display-name }}
\ No newline at end of file
diff --git a/negotiated-booking/templates/review-by-provider-wanted/review-by-provider-wanted-html.html b/negotiated-booking/templates/review-by-provider-wanted/review-by-provider-wanted-html.html
index e36075f..8f4dcb7 100644
--- a/negotiated-booking/templates/review-by-provider-wanted/review-by-provider-wanted-html.html
+++ b/negotiated-booking/templates/review-by-provider-wanted/review-by-provider-wanted-html.html
@@ -1,6 +1,8 @@
-
+ {{set-translations (asset "content/email-texts.json")}}
+ {{set-locale (asset "general/localization.json" "locale" "en_US")}}
+ {{set-timezone transaction.listing.availability-plan.timezone}}
{{#with transaction}}
@@ -11,14 +13,14 @@
- Leave {{customer.display-name}} a review
- {{customer.display-name}} recently booked {{listing.title}} from you. Please write {{customer.display-name}} a review to describe your experience.
+ {{t "NegotiatedBookingReviewByProviderWanted.Title" "Leave {customerDisplayName} a review" customerDisplayName=customer.display-name}}
+ {{t "NegotiatedBookingReviewByProviderWanted.Content" "{customerDisplayName} recently booked {listingTitle} from you. Please write {customerDisplayName} a review to describe your experience." customerDisplayName=customer.display-name listingTitle=listing.title }}
- | Leave a review
+ | {{t "NegotiatedBookingReviewByProviderWanted.Cta" "Leave a review"}}
|
@@ -27,7 +29,7 @@ Leave {
{{/with}}
- You have received this email notification because you are a member of {{marketplace.name}}. If you no longer wish to receive these emails, please contact {{marketplace.name}} team.
+ {{t "TransactionEmails.MembershipParagraph" "You have received this email notification because you are a member of {marketplaceName}. If you no longer wish to receive these emails, please contact {marketplaceName} team." marketplaceName=marketplace.name }}
diff --git a/negotiated-booking/templates/review-by-provider-wanted/review-by-provider-wanted-subject.txt b/negotiated-booking/templates/review-by-provider-wanted/review-by-provider-wanted-subject.txt
index 0f97084..dfe132d 100644
--- a/negotiated-booking/templates/review-by-provider-wanted/review-by-provider-wanted-subject.txt
+++ b/negotiated-booking/templates/review-by-provider-wanted/review-by-provider-wanted-subject.txt
@@ -1 +1 @@
-Write a review for {{transaction.customer.display-name}}
\ No newline at end of file
+{{set-translations (asset "content/email-texts.json")}}{{t "NegotiatedBookingReviewByProviderWanted.Subject" "Write a review for {customerDisplayName}" customerDisplayName=transaction.customer.display-name }}
\ No newline at end of file
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |