mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	chore: make vue global components and layouts localizable (#1565)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							7af48d51be
						
					
				
				
					commit
					ba15006bb1
				
			| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user