1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-23 07:09:41 +02:00

chore: make vue global components and layouts localizable (#1565)

This commit is contained in:
Philipp Fischbeck 2022-08-15 23:55:51 +02:00 committed by GitHub
parent 7af48d51be
commit ba15006bb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 193 additions and 153 deletions

View file

@ -25,7 +25,7 @@
</template>
<script lang="ts">
import { defineComponent, useRouter } from "@nuxtjs/composition-api";
import { defineComponent, useContext, useRouter } from "@nuxtjs/composition-api";
import { ReportSummary } from "~/types/api-types/reports";
export default defineComponent({
@ -38,13 +38,14 @@ export default defineComponent({
setup(_, context) {
const router = useRouter();
const { i18n } = useContext();
const headers = [
{ text: "Category", value: "category" },
{ text: "Name", value: "name" },
{ text: "Timestamp", value: "timestamp" },
{ text: "Status", value: "status" },
{ text: "Delete", value: "actions" },
{ text: i18n.t("category.category"), value: "category" },
{ text: i18n.t("general.name"), value: "name" },
{ text: i18n.t("general.timestamp"), value: "timestamp" },
{ text: i18n.t("general.status"), value: "status" },
{ text: i18n.t("general.delete"), value: "actions" },
];
function handleRowClick(item: ReportSummary) {