i18n - Translate booking status when empty screen (#1219)

* i18n translate booking status when empty screen

* i18n - status key added to fr & en

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
Adrien La 2021-12-27 13:29:43 +01:00 committed by GitHub
parent 43a721dce6
commit 1567feb75e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -80,9 +80,9 @@ export default function Bookings() {
{query.status === "success" && isEmpty && ( {query.status === "success" && isEmpty && (
<EmptyScreen <EmptyScreen
Icon={CalendarIcon} 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", { description={t("no_status_bookings_yet_description", {
status: status, status: t(status),
description: descriptionByStatus[status], description: descriptionByStatus[status],
})} })}
/> />

View file

@ -564,6 +564,7 @@
"not_installed": "Not installed", "not_installed": "Not installed",
"error_password_mismatch": "Passwords don't match.", "error_password_mismatch": "Passwords don't match.",
"error_required_field": "This field is required.", "error_required_field": "This field is required.",
"status": "Status",
"team_view_user_availability": "View user availability", "team_view_user_availability": "View user availability",
"team_view_user_availability_disabled": "User needs to accept invite to view availability" "team_view_user_availability_disabled": "User needs to accept invite to view availability"
} }

View file

@ -564,6 +564,7 @@
"not_installed": "Non installé", "not_installed": "Non installé",
"error_password_mismatch": "Les mots de passe ne correspondent pas.", "error_password_mismatch": "Les mots de passe ne correspondent pas.",
"error_required_field": "Ce champ est requis.", "error_required_field": "Ce champ est requis.",
"status": "Statut",
"team_view_user_availability": "View user availability", "team_view_user_availability": "View user availability",
"team_view_user_availability_disabled": "User needs to accept invite to view availability" "team_view_user_availability_disabled": "User needs to accept invite to view availability"
} }