mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Use units instead of nights in var names and translation keys
This commit is contained in:
parent
7a1e589af3
commit
666f5966d1
12 changed files with 25 additions and 25 deletions
|
|
@ -71,7 +71,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.perNight {
|
||||
.perUnit {
|
||||
/* Font */
|
||||
@apply --marketplaceTinyFontStyles;
|
||||
color: var(--matterColor);
|
||||
|
|
|
|||
|
|
@ -64,8 +64,8 @@ export const ListingCardComponent = props => {
|
|||
<div className={css.priceValue} title={priceTitle}>
|
||||
{formattedPrice}
|
||||
</div>
|
||||
<div className={css.perNight}>
|
||||
<FormattedMessage id="ListingCard.perNight" />
|
||||
<div className={css.perUnit}>
|
||||
<FormattedMessage id="ListingCard.perUnit" />
|
||||
</div>
|
||||
</div>
|
||||
<div className={css.mainInfo}>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ exports[`ListingCard matches snapshot 1`] = `
|
|||
</div>
|
||||
<div>
|
||||
<FormattedMessage
|
||||
id="ListingCard.perNight"
|
||||
id="ListingCard.perUnit"
|
||||
values={Object {}}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.perNight {
|
||||
.perUnit {
|
||||
/* Font */
|
||||
@apply --marketplaceTinyFontStyles;
|
||||
color: var(--matterColor);
|
||||
|
|
|
|||
|
|
@ -219,8 +219,8 @@ export const ManageListingCardComponent = props => {
|
|||
<div className={css.priceValue} title={priceTitle}>
|
||||
{formattedPrice}
|
||||
</div>
|
||||
<div className={css.perNight}>
|
||||
<FormattedMessage id="ManageListingCard.perNight" />
|
||||
<div className={css.perUnit}>
|
||||
<FormattedMessage id="ManageListingCard.perUnit" />
|
||||
</div>
|
||||
</div>
|
||||
<div className={css.mainInfo}>
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ exports[`ManageListingCard matches snapshot 1`] = `
|
|||
</div>
|
||||
<div>
|
||||
<FormattedMessage
|
||||
id="ManageListingCard.perNight"
|
||||
id="ManageListingCard.perUnit"
|
||||
values={Object {}}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export const EditListingPricingFormComponent = props => {
|
|||
updateInProgress,
|
||||
} = props;
|
||||
|
||||
const pricePerNightMessage = intl.formatMessage({ id: 'EditListingPricingForm.pricePerNight' });
|
||||
const pricePerUnitMessage = intl.formatMessage({ id: 'EditListingPricingForm.pricePerUnit' });
|
||||
const priceRequiredMessage = intl.formatMessage({ id: 'EditListingPricingForm.priceRequired' });
|
||||
const pricePlaceholderMessage = intl.formatMessage({
|
||||
id: 'EditListingPricingForm.priceInputPlaceholder',
|
||||
|
|
@ -50,7 +50,7 @@ export const EditListingPricingFormComponent = props => {
|
|||
className={css.priceInput}
|
||||
autoFocus
|
||||
name="price"
|
||||
label={pricePerNightMessage}
|
||||
label={pricePerUnitMessage}
|
||||
placeholder={pricePlaceholderMessage}
|
||||
currencyConfig={config.currencyConfig}
|
||||
validate={[required(priceRequiredMessage)]}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ exports[`EditListingPricingForm matches snapshot 1`] = `
|
|||
<label
|
||||
htmlFor="EditListingPricingForm.CurrencyInputField"
|
||||
>
|
||||
EditListingPricingForm.pricePerNight
|
||||
EditListingPricingForm.pricePerUnit
|
||||
</label>
|
||||
<input
|
||||
autoFocus={true}
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.desktopPerNight {
|
||||
.desktopPerUnit {
|
||||
/* Font */
|
||||
@apply --marketplaceH5FontStyles;
|
||||
color: var(--matterColor);
|
||||
|
|
@ -565,7 +565,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.perNight {
|
||||
.perUnit {
|
||||
/* Font */
|
||||
@apply --marketplaceTinyFontStyles;
|
||||
color: var(--matterColor);
|
||||
|
|
|
|||
|
|
@ -505,8 +505,8 @@ export class ListingPageComponent extends Component {
|
|||
<div className={css.desktopPriceValue} title={priceTitle}>
|
||||
{formattedPrice}
|
||||
</div>
|
||||
<div className={css.desktopPerNight}>
|
||||
<FormattedMessage id="ListingPage.perNight" />
|
||||
<div className={css.desktopPerUnit}>
|
||||
<FormattedMessage id="ListingPage.perUnit" />
|
||||
</div>
|
||||
</div>
|
||||
<div className={css.heading}>
|
||||
|
|
@ -618,8 +618,8 @@ export class ListingPageComponent extends Component {
|
|||
<div className={css.priceValue} title={priceTitle}>
|
||||
{formattedPrice}
|
||||
</div>
|
||||
<div className={css.perNight}>
|
||||
<FormattedMessage id="ListingPage.perNight" />
|
||||
<div className={css.perUnit}>
|
||||
<FormattedMessage id="ListingPage.perUnit" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ exports[`ListingPage matches snapshot 1`] = `
|
|||
</div>
|
||||
<div>
|
||||
<FormattedMessage
|
||||
id="ListingPage.perNight"
|
||||
id="ListingPage.perUnit"
|
||||
values={Object {}}
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -398,7 +398,7 @@ exports[`ListingPage matches snapshot 1`] = `
|
|||
</div>
|
||||
<div>
|
||||
<FormattedMessage
|
||||
id="ListingPage.perNight"
|
||||
id="ListingPage.perUnit"
|
||||
values={Object {}}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -39,8 +39,7 @@
|
|||
"Avatar.bannedUserDisplayName": "Banned user",
|
||||
"BookingBreakdown.bookingPeriod": "{bookingStart} – {bookingEnd}",
|
||||
"BookingBreakdown.commission": "Saunatime fee",
|
||||
"BookingBreakdown.nightCount": "{count, number} {count, plural, one {night} other {nights}}",
|
||||
"BookingBreakdown.pricePerNight": "Price per night",
|
||||
"BookingBreakdown.pricePerUnit": "Price per night",
|
||||
"BookingBreakdown.providerTotalCanceled": "Total price",
|
||||
"BookingBreakdown.providerTotalDeclined": "You would have made",
|
||||
"BookingBreakdown.providerTotalDefault": "You'll make",
|
||||
|
|
@ -48,6 +47,7 @@
|
|||
"BookingBreakdown.refund": "Refund",
|
||||
"BookingBreakdown.subTotal": "Subtotal",
|
||||
"BookingBreakdown.total": "Total price",
|
||||
"BookingBreakdown.unitCount": "{count, number} {count, plural, one {night} other {nights}}",
|
||||
"BookingDatesForm.bookingEndTitle": "End date",
|
||||
"BookingDatesForm.bookingStartTitle": "Start date",
|
||||
"BookingDatesForm.listingCurrencyInvalid": "Oops, the currency of the listing doesn't match the currency of the marketplace.",
|
||||
|
|
@ -143,7 +143,7 @@
|
|||
"EditListingPhotosPanel.payoutModalTitlePayoutPreferences": "Payout preferences",
|
||||
"EditListingPhotosPanel.title": "Edit the photos of {listingTitle}",
|
||||
"EditListingPricingForm.priceInputPlaceholder": "Choose your price…",
|
||||
"EditListingPricingForm.pricePerNight": "Price per night in euros",
|
||||
"EditListingPricingForm.pricePerUnit": "Price per night in euros",
|
||||
"EditListingPricingForm.priceRequired": "You need to add a valid price.",
|
||||
"EditListingPricingForm.updateFailed": "Failed to update listing. Please try again.",
|
||||
"EditListingPricingPanel.createListingTitle": "How much does it cost?",
|
||||
|
|
@ -234,7 +234,7 @@
|
|||
"LandingPage.schemaDescription": "Book a sauna using Saunatime or earn some income by sharing your sauna",
|
||||
"LandingPage.schemaTitle": "Book saunas everywhere | {siteTitle}",
|
||||
"ListingCard.hostedBy": "Hosted by {authorName}.",
|
||||
"ListingCard.perNight": "per night",
|
||||
"ListingCard.perUnit": "per night",
|
||||
"ListingCard.unsupportedPrice": "({currency})",
|
||||
"ListingCard.unsupportedPriceTitle": "Unsupported currency ({currency})",
|
||||
"ListingPage.bannedUserDisplayName": "Banned user",
|
||||
|
|
@ -260,7 +260,7 @@
|
|||
"ListingPage.locationTitle": "Location",
|
||||
"ListingPage.ownClosedListing": "Your listing has been closed and can't be booked.",
|
||||
"ListingPage.ownListing": "This is your own listing.",
|
||||
"ListingPage.perNight": "per night",
|
||||
"ListingPage.perUnit": "per night",
|
||||
"ListingPage.reviewsError": "Loading reviews failed.",
|
||||
"ListingPage.reviewsHeading": "Reviews ({count})",
|
||||
"ListingPage.schemaTitle": "{title} - {price} | {siteTitle}",
|
||||
|
|
@ -282,7 +282,7 @@
|
|||
"ManageListingCard.closedListing": "This listing is closed and not visible on the marketplace.",
|
||||
"ManageListingCard.edit": "Edit",
|
||||
"ManageListingCard.openListing": "Open listing",
|
||||
"ManageListingCard.perNight": "per night",
|
||||
"ManageListingCard.perUnit": "per night",
|
||||
"ManageListingCard.unsupportedPrice": "({currency})",
|
||||
"ManageListingCard.unsupportedPriceTitle": "Unsupported currency ({currency})",
|
||||
"ManageListingCard.viewListing": "View listing",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue