Skip to content

Commit

Permalink
BC-5557: use i18n keys in DateBetween component
Browse files Browse the repository at this point in the history
  • Loading branch information
muratmerdoglu-dp committed Dec 21, 2023
1 parent b622d2c commit c467643
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
<date-picker
class="mr-2"
:date="dateSelection.$gte"
label="first date"
:label="t('utils.adminFilter.date.label.from')"
@update:date="onUpdateDate($event, 'from')"
data-testid="date-picker-from"
/>

<date-picker
class="mr-2"
:date="dateSelection.$lte"
label="until date"
:label="t('utils.adminFilter.date.label.until')"
@update:date="onUpdateDate($event, 'until')"
data-testid="date-picker-until"
/>

<FilterActionButtons
Expand All @@ -25,6 +27,7 @@ import { onMounted, ref, PropType } from "vue";
import FilterActionButtons from "./FilterActionButtons.vue";
import DatePicker from "@/components/ui-date-time-picker/DatePicker.vue";
import { DateSelection } from "../types";
import { useI18n } from "vue-i18n";
const props = defineProps({
selectedDate: {
Expand All @@ -33,6 +36,8 @@ const props = defineProps({
},
});
const { t } = useI18n();
const defaultDates: DateSelection = {
$gte: "1900-01-01T23:00:00.000Z",
$lte: "2099-12-31T23:00:00.000Z",
Expand Down
4 changes: 2 additions & 2 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,8 @@
"utils.adminFilter.consent.parentsAgreed": "nur Eltern haben zugestimmt",
"utils.adminFilter.consent.title": "Registrierungen",
"utils.adminFilter.date.created": "Erstellt zwischen",
"utils.adminFilter.date.label.from": "Erstellungsdatum von",
"utils.adminFilter.date.label.until": "Erstellungsdatum bis",
"utils.adminFilter.date.label.from": "Datum von",
"utils.adminFilter.date.label.until": "Datum bis",
"utils.adminFilter.date.title": "Erstellungsdatum",
"utils.adminFilter.outdatedSince.title": "Veraltet seit",
"utils.adminFilter.outdatedSince.label.from": "Veraltet seit von",
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1018,8 +1018,8 @@
"utils.adminFilter.consent.parentsAgreed": "only parents have agreed",
"utils.adminFilter.consent.title": "Registrations",
"utils.adminFilter.date.created": "Created between",
"utils.adminFilter.date.label.from": "Creation date from",
"utils.adminFilter.date.label.until": "Creation date until",
"utils.adminFilter.date.label.from": "Date from",
"utils.adminFilter.date.label.until": "Date until",
"utils.adminFilter.date.title": "Creation date",
"utils.adminFilter.outdatedSince.title": "Obsolete since",
"utils.adminFilter.outdatedSince.label.from": "Obsolete since from",
Expand Down
4 changes: 2 additions & 2 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,8 @@
"utils.adminFilter.consent.parentsAgreed": "solo están de acuerdo los padres",
"utils.adminFilter.consent.title": "Registros",
"utils.adminFilter.date.created": "Creado entre",
"utils.adminFilter.date.label.from": "Fecha de creación desde",
"utils.adminFilter.date.label.until": "Fecha de creación hasta",
"utils.adminFilter.date.label.from": "Fecha desde",
"utils.adminFilter.date.label.until": "Fecha hasta",
"utils.adminFilter.date.title": "Fecha de creación",
"utils.adminFilter.outdatedSince.title": "Obsoleto desde",
"utils.adminFilter.outdatedSince.label.from": "Obsoleto desde",
Expand Down
4 changes: 2 additions & 2 deletions src/locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1044,8 +1044,8 @@
"utils.adminFilter.consent.parentsAgreed": "згоду надали лише батьки",
"utils.adminFilter.consent.title": "Реєстрації",
"utils.adminFilter.date.created": "Створено між",
"utils.adminFilter.date.label.from": "Дата створення від",
"utils.adminFilter.date.label.until": "Дата створення до",
"utils.adminFilter.date.label.from": "Дата від",
"utils.adminFilter.date.label.until": "Дата до",
"utils.adminFilter.date.title": "Дата створення",
"utils.adminFilter.outdatedSince.title": "Застаріло з тих пір",
"utils.adminFilter.outdatedSince.label.from": "Застаріло з тих пір від",
Expand Down

0 comments on commit c467643

Please sign in to comment.