feat: lang
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { onBeforeMount, ref, watch, computed } from "vue";
|
||||
import { onBeforeMount, ref, watch, computed, defineAsyncComponent } from "vue";
|
||||
import type { Task } from "@/types";
|
||||
import { Copy, Trash, Save, X } from "@lucide/vue";
|
||||
import { updateTask } from "@/api/tasks";
|
||||
import CronInput from "@/components/CronInput.vue";
|
||||
const CronInput = defineAsyncComponent(() => import("@/components/CronInput.vue"));
|
||||
import { taskCompleted, taskNextReset } from "@/lib/tasks";
|
||||
import { relativeTime } from "@/lib/dates";
|
||||
|
||||
@@ -85,10 +85,10 @@ watch(task, () => {
|
||||
>
|
||||
<div>{{ task.name }}</div>
|
||||
<div v-if="showLastChecked && !checked && task.check_date" class="font-light text-xs italic">
|
||||
Checked {{ relativeTime(task.check_date) }}
|
||||
{{ $t('checked') }} {{ relativeTime(task.check_date, $i18n.locale) }}
|
||||
</div>
|
||||
<div v-if="showNextReset && checked && nextReset" class="font-light text-xs italic">
|
||||
Resets {{ relativeTime(nextReset) }}
|
||||
{{ $t('resets') }} {{ relativeTime(nextReset, $i18n.locale) }}
|
||||
</div>
|
||||
</div>
|
||||
<template v-else>
|
||||
|
||||
Reference in New Issue
Block a user