mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
Translate new tiles in dashboard
This commit is contained in:
parent
a0170d1e8e
commit
66017d04cc
9 changed files with 40 additions and 27 deletions
|
@ -36,11 +36,11 @@ export default {
|
||||||
},
|
},
|
||||||
users: {
|
users: {
|
||||||
value: true,
|
value: true,
|
||||||
text: this.$t("general.users"),
|
text: this.$t("user.users"),
|
||||||
},
|
},
|
||||||
groups: {
|
groups: {
|
||||||
value: true,
|
value: true,
|
||||||
text: this.$t("general.groups"),
|
text: this.$t("group.groups"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
<v-tab>{{ $t("general.themes") }}</v-tab>
|
<v-tab>{{ $t("general.themes") }}</v-tab>
|
||||||
<v-tab>{{ $t("general.settings") }}</v-tab>
|
<v-tab>{{ $t("general.settings") }}</v-tab>
|
||||||
<v-tab> {{ $t("settings.pages") }} </v-tab>
|
<v-tab> {{ $t("settings.pages") }} </v-tab>
|
||||||
<v-tab>{{ $t("general.users") }}</v-tab>
|
<v-tab>{{ $t("user.users") }}</v-tab>
|
||||||
<v-tab>{{ $t("general.groups") }}</v-tab>
|
<v-tab>{{ $t("group.groups") }}</v-tab>
|
||||||
</v-tabs>
|
</v-tabs>
|
||||||
<v-tabs-items v-model="tab">
|
<v-tabs-items v-model="tab">
|
||||||
<v-tab-item v-for="(table, index) in allTables" :key="index">
|
<v-tab-item v-for="(table, index) in allTables" :key="index">
|
||||||
|
@ -92,10 +92,10 @@ export default {
|
||||||
return this.calculateNumbers(this.$t("general.themes"), this.themeData);
|
return this.calculateNumbers(this.$t("general.themes"), this.themeData);
|
||||||
},
|
},
|
||||||
userNumbers() {
|
userNumbers() {
|
||||||
return this.calculateNumbers(this.$t("general.users"), this.userData);
|
return this.calculateNumbers(this.$t("user.users"), this.userData);
|
||||||
},
|
},
|
||||||
groupNumbers() {
|
groupNumbers() {
|
||||||
return this.calculateNumbers(this.$t("general.groups"), this.groupData);
|
return this.calculateNumbers(this.$t("group.groups"), this.groupData);
|
||||||
},
|
},
|
||||||
pageNumbers() {
|
pageNumbers() {
|
||||||
return this.calculateNumbers(this.$t("settings.pages"), this.pageData);
|
return this.calculateNumbers(this.$t("settings.pages"), this.pageData);
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
>
|
>
|
||||||
<template v-slot:open="{ open }">
|
<template v-slot:open="{ open }">
|
||||||
<v-btn @click="open" class="mx-2" small :color="color"> <v-icon left> mdi-plus </v-icon> Custom </v-btn>
|
<v-btn @click="open" class="mx-2" small :color="color"> <v-icon left> mdi-plus </v-icon> {{$t('general.custom')}} </v-btn>
|
||||||
</template>
|
</template>
|
||||||
<v-card-text class="mt-6">
|
<v-card-text class="mt-6">
|
||||||
<v-text-field dense :label="$t('settings.backup.backup-tag')" v-model="tag"></v-text-field>
|
<v-text-field dense :label="$t('settings.backup.backup-tag')" v-model="tag"></v-text-field>
|
||||||
|
|
|
@ -155,7 +155,7 @@ export default {
|
||||||
{
|
{
|
||||||
icon: "mdi-account-group",
|
icon: "mdi-account-group",
|
||||||
to: "/admin/manage-users",
|
to: "/admin/manage-users",
|
||||||
title: this.$t("settings.manage-users"),
|
title: this.$t("user.manage-users"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: "mdi-database-import",
|
icon: "mdi-database-import",
|
||||||
|
|
|
@ -28,16 +28,19 @@
|
||||||
"category-deletion-failed": "Category deletion failed",
|
"category-deletion-failed": "Category deletion failed",
|
||||||
"category-filter": "Category Filter",
|
"category-filter": "Category Filter",
|
||||||
"category-update-failed": "Category update failed",
|
"category-update-failed": "Category update failed",
|
||||||
"category-updated": "Category updated"
|
"category-updated": "Category updated",
|
||||||
|
"uncategorized-count": "Uncategorized {count}"
|
||||||
},
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"apply": "Apply",
|
"apply": "Apply",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
|
"clear": "Clear",
|
||||||
"close": "Close",
|
"close": "Close",
|
||||||
"confirm": "Confirm",
|
"confirm": "Confirm",
|
||||||
"create": "Create",
|
"create": "Create",
|
||||||
"created": "Created",
|
"created": "Created",
|
||||||
"current-parenthesis": "(Current)",
|
"current-parenthesis": "(Current)",
|
||||||
|
"custom": "Custom",
|
||||||
"dashboard": "Dashboard",
|
"dashboard": "Dashboard",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"disabled": "Disabled",
|
"disabled": "Disabled",
|
||||||
|
@ -53,7 +56,6 @@
|
||||||
"filter": "Filter",
|
"filter": "Filter",
|
||||||
"friday": "Friday",
|
"friday": "Friday",
|
||||||
"get": "Get",
|
"get": "Get",
|
||||||
"groups": "Groups",
|
|
||||||
"image": "Image",
|
"image": "Image",
|
||||||
"image-upload-failed": "Image upload failed",
|
"image-upload-failed": "Image upload failed",
|
||||||
"import": "Import",
|
"import": "Import",
|
||||||
|
@ -90,7 +92,6 @@
|
||||||
"updated": "Updated",
|
"updated": "Updated",
|
||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
"url": "URL",
|
"url": "URL",
|
||||||
"users": "Users",
|
|
||||||
"wednesday": "Wednesday",
|
"wednesday": "Wednesday",
|
||||||
"yes": "Yes"
|
"yes": "Yes"
|
||||||
},
|
},
|
||||||
|
@ -109,6 +110,7 @@
|
||||||
"group-not-found": "Group not found",
|
"group-not-found": "Group not found",
|
||||||
"groups": "Groups",
|
"groups": "Groups",
|
||||||
"groups-can-only-be-set-by-administrators": "Groups can only be set by administrators",
|
"groups-can-only-be-set-by-administrators": "Groups can only be set by administrators",
|
||||||
|
"manage-groups": "Manage Groups",
|
||||||
"user-group": "User Group",
|
"user-group": "User Group",
|
||||||
"user-group-created": "User Group Created",
|
"user-group-created": "User Group Created",
|
||||||
"user-group-creation-failed": "User Group Creation Failed"
|
"user-group-creation-failed": "User Group Creation Failed"
|
||||||
|
@ -258,6 +260,7 @@
|
||||||
"current": "Version:",
|
"current": "Version:",
|
||||||
"custom-pages": "Custom Pages",
|
"custom-pages": "Custom Pages",
|
||||||
"edit-page": "Edit Page",
|
"edit-page": "Edit Page",
|
||||||
|
"events": "Events",
|
||||||
"first-day-of-week": "First day of the week",
|
"first-day-of-week": "First day of the week",
|
||||||
"group-settings-updated": "Group Settings Updated",
|
"group-settings-updated": "Group Settings Updated",
|
||||||
"homepage": {
|
"homepage": {
|
||||||
|
@ -271,7 +274,6 @@
|
||||||
"latest": "Latest",
|
"latest": "Latest",
|
||||||
"local-api": "Local API",
|
"local-api": "Local API",
|
||||||
"locale-settings": "Locale settings",
|
"locale-settings": "Locale settings",
|
||||||
"manage-users": "Manage Users",
|
|
||||||
"migrations": "Migrations",
|
"migrations": "Migrations",
|
||||||
"new-page": "New Page",
|
"new-page": "New Page",
|
||||||
"page-name": "Page Name",
|
"page-name": "Page Name",
|
||||||
|
@ -353,7 +355,8 @@
|
||||||
"tag-deletion-failed": "Tag deletion failed",
|
"tag-deletion-failed": "Tag deletion failed",
|
||||||
"tag-update-failed": "Tag update failed",
|
"tag-update-failed": "Tag update failed",
|
||||||
"tag-updated": "Tag updated",
|
"tag-updated": "Tag updated",
|
||||||
"tags": "Tags"
|
"tags": "Tags",
|
||||||
|
"untagged-count": "Untagged {count}"
|
||||||
},
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"admin": "Admin",
|
"admin": "Admin",
|
||||||
|
@ -377,6 +380,7 @@
|
||||||
"link-name": "Link Name",
|
"link-name": "Link Name",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
|
"manage-users": "Manage Users",
|
||||||
"new-password": "New Password",
|
"new-password": "New Password",
|
||||||
"new-user": "New User",
|
"new-user": "New User",
|
||||||
"password": "Password",
|
"password": "Password",
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
<StatCard icon="mdi-backup-restore" :color="color">
|
<StatCard icon="mdi-backup-restore" :color="color">
|
||||||
<template v-slot:after-heading>
|
<template v-slot:after-heading>
|
||||||
<div class="ml-auto text-right">
|
<div class="ml-auto text-right">
|
||||||
<div class="body-3 grey--text font-weight-light" v-text="'Backups'" />
|
<h2 class="body-3 grey--text font-weight-light">
|
||||||
|
{{$t('settings.backup-and-exports')}}
|
||||||
|
</h2>
|
||||||
|
|
||||||
<h3 class="display-2 font-weight-light text--primary">
|
<h3 class="display-2 font-weight-light text--primary">
|
||||||
<small> {{ total }}</small>
|
<small> {{ total }}</small>
|
||||||
|
@ -22,14 +24,14 @@
|
||||||
<TheUploadBtn url="/api/backups/upload" @uploaded="getAvailableBackups">
|
<TheUploadBtn url="/api/backups/upload" @uploaded="getAvailableBackups">
|
||||||
<template v-slot="{ isSelecting, onButtonClick }">
|
<template v-slot="{ isSelecting, onButtonClick }">
|
||||||
<v-btn :loading="isSelecting" class="mx-2" small :color="color" @click="onButtonClick">
|
<v-btn :loading="isSelecting" class="mx-2" small :color="color" @click="onButtonClick">
|
||||||
<v-icon left> mdi-cloud-upload </v-icon> Upload
|
<v-icon left> mdi-cloud-upload </v-icon> {{$t('general.upload')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
</TheUploadBtn>
|
</TheUploadBtn>
|
||||||
<BackupDialog :color="color" />
|
<BackupDialog :color="color" />
|
||||||
|
|
||||||
<v-btn :loading="loading" class="mx-2" small :color="color" @click="createBackup">
|
<v-btn :loading="loading" class="mx-2" small :color="color" @click="createBackup">
|
||||||
<v-icon left> mdi-plus </v-icon> Create
|
<v-icon left> mdi-plus </v-icon> {{$t('general.create')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
<template v-slot:bottom>
|
<template v-slot:bottom>
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
<StatCard icon="mdi-bell-ring" :color="color">
|
<StatCard icon="mdi-bell-ring" :color="color">
|
||||||
<template v-slot:after-heading>
|
<template v-slot:after-heading>
|
||||||
<div class="ml-auto text-right">
|
<div class="ml-auto text-right">
|
||||||
<div class="body-3 grey--text font-weight-light" v-text="'Events'" />
|
<h2 class="body-3 grey--text font-weight-light">
|
||||||
|
{{$t('settings.events')}}
|
||||||
|
</h2>
|
||||||
|
|
||||||
<h3 class="display-2 font-weight-light text--primary">
|
<h3 class="display-2 font-weight-light text--primary">
|
||||||
<small> {{ total }} </small>
|
<small> {{ total }} </small>
|
||||||
|
@ -12,7 +14,7 @@
|
||||||
</template>
|
</template>
|
||||||
<div class="d-flex row py-3 justify-end">
|
<div class="d-flex row py-3 justify-end">
|
||||||
<v-btn class="mx-2" small :color="color" @click="deleteAll">
|
<v-btn class="mx-2" small :color="color" @click="deleteAll">
|
||||||
<v-icon left> mdi-notification-clear-all </v-icon> Clear
|
<v-icon left> mdi-notification-clear-all </v-icon> {{$t('general.clear')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
<template v-slot:bottom>
|
<template v-slot:bottom>
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
<StatCard icon="mdi-silverware-fork-knife">
|
<StatCard icon="mdi-silverware-fork-knife">
|
||||||
<template v-slot:after-heading>
|
<template v-slot:after-heading>
|
||||||
<div class="ml-auto text-right">
|
<div class="ml-auto text-right">
|
||||||
<div class="body-3 grey--text font-weight-light" v-text="'Recipes'" />
|
<h2 class="body-3 grey--text font-weight-light">
|
||||||
|
{{$t('general.recipes')}}
|
||||||
|
</h2>
|
||||||
|
|
||||||
<h3 class="display-2 font-weight-light text--primary">
|
<h3 class="display-2 font-weight-light text--primary">
|
||||||
<small> {{ statistics.totalRecipes }}</small>
|
<small> {{ statistics.totalRecipes }}</small>
|
||||||
|
@ -15,14 +17,14 @@
|
||||||
<template v-slot:actions>
|
<template v-slot:actions>
|
||||||
<div class="d-flex row py-3 justify-space-around">
|
<div class="d-flex row py-3 justify-space-around">
|
||||||
<v-btn small color="primary" :to="{ path: '/admin/toolbox/', query: { tab: 'organize', filter: 'tag' } }">
|
<v-btn small color="primary" :to="{ path: '/admin/toolbox/', query: { tab: 'organize', filter: 'tag' } }">
|
||||||
<v-icon left> mdi-tag </v-icon> Untagged {{ statistics.untaggedRecipes }}
|
<v-icon left> mdi-tag </v-icon> {{$tc('tag.untagged-count', [statistics.untaggedRecipes])}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
small
|
small
|
||||||
color="primary"
|
color="primary"
|
||||||
:to="{ path: '/admin/toolbox/', query: { tab: 'organize', filter: 'category' } }"
|
:to="{ path: '/admin/toolbox/', query: { tab: 'organize', filter: 'category' } }"
|
||||||
>
|
>
|
||||||
<v-icon left> mdi-tag </v-icon> Uncategorized {{ statistics.uncategorizedRecipes }}
|
<v-icon left> mdi-tag </v-icon> {{$tc('category.uncategorized-count', [statistics.uncategorizedRecipes])}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -32,8 +34,9 @@
|
||||||
<StatCard icon="mdi-account">
|
<StatCard icon="mdi-account">
|
||||||
<template v-slot:after-heading>
|
<template v-slot:after-heading>
|
||||||
<div class="ml-auto text-right">
|
<div class="ml-auto text-right">
|
||||||
<div class="body-3 grey--text font-weight-light" v-text="'Users'" />
|
<h2 class="body-3 grey--text font-weight-light">
|
||||||
|
{{$t('user.users')}}
|
||||||
|
</h2>
|
||||||
<h3 class="display-2 font-weight-light text--primary">
|
<h3 class="display-2 font-weight-light text--primary">
|
||||||
<small> {{ statistics.totalUsers }}</small>
|
<small> {{ statistics.totalUsers }}</small>
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -43,7 +46,7 @@
|
||||||
<div class="ml-auto">
|
<div class="ml-auto">
|
||||||
<v-btn color="primary" small to="/admin/manage-users?tab=users">
|
<v-btn color="primary" small to="/admin/manage-users?tab=users">
|
||||||
<v-icon left>mdi-account</v-icon>
|
<v-icon left>mdi-account</v-icon>
|
||||||
Manage Users
|
{{$t('user.manage-users')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -53,7 +56,9 @@
|
||||||
<StatCard icon="mdi-account-group">
|
<StatCard icon="mdi-account-group">
|
||||||
<template v-slot:after-heading>
|
<template v-slot:after-heading>
|
||||||
<div class="ml-auto text-right">
|
<div class="ml-auto text-right">
|
||||||
<div class="body-3 grey--text font-weight-light" v-text="'Groups'" />
|
<h2 class="body-3 grey--text font-weight-light">
|
||||||
|
{{$t('group.groups')}}
|
||||||
|
</h2>
|
||||||
|
|
||||||
<h3 class="display-2 font-weight-light text--primary">
|
<h3 class="display-2 font-weight-light text--primary">
|
||||||
<small> {{ statistics.totalGroups }}</small>
|
<small> {{ statistics.totalGroups }}</small>
|
||||||
|
@ -64,7 +69,7 @@
|
||||||
<div class="ml-auto">
|
<div class="ml-auto">
|
||||||
<v-btn color="primary" small to="/admin/manage-users?tab=groups">
|
<v-btn color="primary" small to="/admin/manage-users?tab=groups">
|
||||||
<v-icon left>mdi-account-group</v-icon>
|
<v-icon left>mdi-account-group</v-icon>
|
||||||
Manage Groups
|
{{$t('group.manage-groups')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -39,7 +39,7 @@ export const adminRoutes = {
|
||||||
path: "manage-users",
|
path: "manage-users",
|
||||||
component: ManageUsers,
|
component: ManageUsers,
|
||||||
meta: {
|
meta: {
|
||||||
title: "settings.manage-users",
|
title: "user.manage-users",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue