Skip to content

Commit

Permalink
localization again
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaomiDEV committed Aug 5, 2024
1 parent 281d15b commit 4a06246
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/modals/FrontingEntryEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@

<MemberSelect :onlyOne="true" ref="memberSelectModal" />
<IonModal class="stack-modal" :keep-contents-mounted="true">
<IonDatetime id="startTime" v-model="startTime" :showDefaultButtons="true" :hourCycle="twelveHourClock ? 'h12' : 'h24'" :firstDayOfWeek="firstWeekOfDayIsSunday ? 0 : 1">
<IonDatetime id="startTime" v-model="startTime" :showDefaultButtons="true" :hourCycle="twelveHourClock ? 'h12' : 'h23'" :firstDayOfWeek="firstWeekOfDayIsSunday ? 0 : 1">
<span slot="title">{{ $t("options:frontHistory.edit.startTime") }}</span>
</IonDatetime>
</IonModal>
<IonModal class="stack-modal" :keep-contents-mounted="true">
<IonDatetime id="endTime" v-model="endTime" :showDefaultButtons="true" :hourCycle="twelveHourClock ? 'h12' : 'h24'" :firstDayOfWeek="firstWeekOfDayIsSunday ? 0 : 1">
<IonDatetime id="endTime" v-model="endTime" :showDefaultButtons="true" :hourCycle="twelveHourClock ? 'h12' : 'h23'" :firstDayOfWeek="firstWeekOfDayIsSunday ? 0 : 1">
<span slot="title">{{ $t("options:frontHistory.edit.endTime") }}</span>
</IonDatetime>
</IonModal>
Expand Down
5 changes: 4 additions & 1 deletion src/views/options/FrontHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
import calendarMD from "@material-design-icons/svg/outlined/calendar_month.svg";
import listMD from "@material-design-icons/svg/outlined/list.svg";
import { appConfig } from '../../lib/config';
const isIOS = inject<boolean>("isIOS");
const frontingEntryModal = ref();
const frontingEntry = ref();
const firstWeekOfDayIsSunday = appConfig.locale.firstWeekOfDayIsSunday;
const isCalendarView = ref(false);
const date = ref(dayjs().toISOString());
Expand Down Expand Up @@ -80,7 +83,7 @@

<IonContent>
<div class="container">
<IonDatetime presentation="date" @ionChange="(e) => date = e.detail.value as string" v-if="isCalendarView" />
<IonDatetime presentation="date" :firstDayOfWeek="firstWeekOfDayIsSunday ? 0 : 1" @ionChange="(e) => date = e.detail.value as string" v-if="isCalendarView" />
</div>

<IonList :inset="isIOS" v-if="isCalendarView">
Expand Down

0 comments on commit 4a06246

Please sign in to comment.