diff --git a/src/i18n/en-ca/index.ts b/src/i18n/en-ca/index.ts index e8d7503..b020d70 100644 --- a/src/i18n/en-ca/index.ts +++ b/src/i18n/en-ca/index.ts @@ -175,16 +175,14 @@ export default { timesheet: { page_header: "Timesheet", + apply_preset_day: "Apply schedule to day", + apply_preset_week: "Apply schedule to week", nav_button: { calendar_date_picker: "Calendar", current_week: "This week", next_week: "Next period", previous_week: "Previous period", }, - save_button: "Save", - cancel_button: "Cancel", - remote_button: "Remote work", - delete_button: "Delete", shift: { actions: { add: "Add Shift", diff --git a/src/i18n/fr-ca/index.ts b/src/i18n/fr-ca/index.ts index 814a404..1082d02 100644 --- a/src/i18n/fr-ca/index.ts +++ b/src/i18n/fr-ca/index.ts @@ -176,16 +176,14 @@ export default { timesheet: { page_header: "Carte de temps", + apply_preset_day: "Appliquer horaire pour la journée", + apply_preset_week: "Appliquer horaire pour la semaine", nav_button: { calendar_date_picker: "Calendrier", current_week: "Semaine actuelle", next_week: "Prochaine période", previous_week: "Période précédente", }, - save_button: "Enregistrer", - cancel_button: "Annuler", - remote_button: "Télétravail", - delete_button: "Supprimer", shift: { actions: { add: "Ajouter un Quart", diff --git a/src/modules/employee-list/components/employee-list-table.vue b/src/modules/employee-list/components/employee-list-table.vue index fb01de5..03852c3 100644 --- a/src/modules/employee-list/components/employee-list-table.vue +++ b/src/modules/employee-list/components/employee-list-table.vue @@ -114,7 +114,7 @@ - import { date } from 'quasar'; + import { date, useQuasar } from 'quasar'; + import { computed } from 'vue'; const { title, startDate = "", endDate = "" } = defineProps<{ title: string; @@ -10,13 +11,17 @@ endDate?: string; }>(); - const date_format_options = { day: 'numeric', month: 'long', year: 'numeric', }; - + const q = useQuasar(); + + const date_format_options = computed(() => q.platform.is.mobile ? { day: 'numeric', month: 'short', year: 'numeric' } : { day: 'numeric', month: 'long', year: 'numeric', });