Skip to content

Commit

Permalink
i18n - Translate booking status when empty screen (calcom#1219)
Browse files Browse the repository at this point in the history
* i18n translate booking status when empty screen

* i18n - status key added to fr & en

Co-authored-by: Peer Richelsen <[email protected]>
  • Loading branch information
arb0z and PeerRich authored Dec 27, 2021
1 parent 43a721d commit 1567feb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/bookings/[status].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ export default function Bookings() {
{query.status === "success" && isEmpty && (
<EmptyScreen
Icon={CalendarIcon}
headline={t("no_status_bookings_yet", { status: status })}
headline={t("no_status_bookings_yet", { status: t(status) })}
description={t("no_status_bookings_yet_description", {
status: status,
status: t(status),
description: descriptionByStatus[status],
})}
/>
Expand Down
1 change: 1 addition & 0 deletions public/static/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@
"not_installed": "Not installed",
"error_password_mismatch": "Passwords don't match.",
"error_required_field": "This field is required.",
"status": "Status",
"team_view_user_availability": "View user availability",
"team_view_user_availability_disabled": "User needs to accept invite to view availability"
}
1 change: 1 addition & 0 deletions public/static/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@
"not_installed": "Non installé",
"error_password_mismatch": "Les mots de passe ne correspondent pas.",
"error_required_field": "Ce champ est requis.",
"status": "Statut",
"team_view_user_availability": "View user availability",
"team_view_user_availability_disabled": "User needs to accept invite to view availability"
}

0 comments on commit 1567feb

Please sign in to comment.