mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
Localize new strings (#445)
This commit is contained in:
parent
39baca4462
commit
5c035ec644
11 changed files with 48 additions and 26 deletions
|
@ -3,7 +3,7 @@
|
||||||
<v-dialog v-model="dialog" width="650">
|
<v-dialog v-model="dialog" width="650">
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title class="headline">
|
<v-card-title class="headline">
|
||||||
{{ $t("meal-plan.shopping-list") }}
|
{{ $t("shopping-list.shopping-list") }}
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn text color="accent" @click="group = !group">
|
<v-btn text color="accent" @click="group = !group">
|
||||||
{{ $t("meal-plan.group") }}
|
{{ $t("meal-plan.group") }}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<v-icon left dark>
|
<v-icon left dark>
|
||||||
mdi-clipboard-check
|
mdi-clipboard-check
|
||||||
</v-icon>
|
</v-icon>
|
||||||
<slot> {{ $t("general.coppied") }}! </slot>
|
<slot> {{ $t("general.copied") }}! </slot>
|
||||||
</span>
|
</span>
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<v-text-field
|
<v-text-field
|
||||||
class="ml-auto shrink mb-n7"
|
class="ml-auto shrink mb-n7"
|
||||||
solo
|
solo
|
||||||
label="Log Lines"
|
:label="$t('about.log-lines')"
|
||||||
type="number"
|
type="number"
|
||||||
append-icon="mdi-refresh-circle"
|
append-icon="mdi-refresh-circle"
|
||||||
v-model="lines"
|
v-model="lines"
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
mdi-heart
|
mdi-heart
|
||||||
</v-icon>
|
</v-icon>
|
||||||
</v-list-item-icon>
|
</v-list-item-icon>
|
||||||
<v-list-item-title> Support </v-list-item-title>
|
<v-list-item-title> {{$t('about.support')}} </v-list-item-title>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item to="/admin/about">
|
<v-list-item to="/admin/about">
|
||||||
<v-list-item-icon class="mr-3 pt-1">
|
<v-list-item-icon class="mr-3 pt-1">
|
||||||
|
|
|
@ -65,7 +65,7 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: "mdi-format-list-checks",
|
icon: "mdi-format-list-checks",
|
||||||
title: "Shopping Lists",
|
title: this.$t('shopping-list.shopping-lists'),
|
||||||
nav: "/shopping-list",
|
nav: "/shopping-list",
|
||||||
restricted: true,
|
restricted: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -14,10 +14,15 @@
|
||||||
"demo": "Demo",
|
"demo": "Demo",
|
||||||
"demo-status": "Demo Status",
|
"demo-status": "Demo Status",
|
||||||
"development": "Development",
|
"development": "Development",
|
||||||
|
"docs": "Docs",
|
||||||
"download-log": "Download Log",
|
"download-log": "Download Log",
|
||||||
"download-recipe-json": "Last Scraped JSON",
|
"download-recipe-json": "Last Scraped JSON",
|
||||||
|
"github": "Github",
|
||||||
|
"log-lines": "Log Lines",
|
||||||
"not-demo": "Not Demo",
|
"not-demo": "Not Demo",
|
||||||
|
"portfolio": "Portfolio",
|
||||||
"production": "Production",
|
"production": "Production",
|
||||||
|
"support": "Support",
|
||||||
"version": "Version"
|
"version": "Version"
|
||||||
},
|
},
|
||||||
"category": {
|
"category": {
|
||||||
|
@ -47,9 +52,9 @@
|
||||||
"clear": "Clear",
|
"clear": "Clear",
|
||||||
"close": "Close",
|
"close": "Close",
|
||||||
"confirm": "Confirm",
|
"confirm": "Confirm",
|
||||||
|
"copied": "Copied",
|
||||||
"create": "Create",
|
"create": "Create",
|
||||||
"created": "Created",
|
"created": "Created",
|
||||||
"coppied": "Coppied",
|
|
||||||
"current-parenthesis": "(Current)",
|
"current-parenthesis": "(Current)",
|
||||||
"custom": "Custom",
|
"custom": "Custom",
|
||||||
"dashboard": "Dashboard",
|
"dashboard": "Dashboard",
|
||||||
|
@ -73,6 +78,7 @@
|
||||||
"import": "Import",
|
"import": "Import",
|
||||||
"keyword": "Keyword",
|
"keyword": "Keyword",
|
||||||
"link": "Link",
|
"link": "Link",
|
||||||
|
"link-copied": "Link Copied",
|
||||||
"monday": "Monday",
|
"monday": "Monday",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"new": "New",
|
"new": "New",
|
||||||
|
@ -108,6 +114,7 @@
|
||||||
"updated": "Updated",
|
"updated": "Updated",
|
||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
"url": "URL",
|
"url": "URL",
|
||||||
|
"view": "View",
|
||||||
"wednesday": "Wednesday",
|
"wednesday": "Wednesday",
|
||||||
"yes": "Yes"
|
"yes": "Yes"
|
||||||
},
|
},
|
||||||
|
@ -154,7 +161,6 @@
|
||||||
"only-recipes-with-these-categories-will-be-used-in-meal-plans": "Only recipes with these categories will be used in Meal Plans",
|
"only-recipes-with-these-categories-will-be-used-in-meal-plans": "Only recipes with these categories will be used in Meal Plans",
|
||||||
"planner": "Planner",
|
"planner": "Planner",
|
||||||
"quick-week": "Quick Week",
|
"quick-week": "Quick Week",
|
||||||
"shopping-list": "Shopping List",
|
|
||||||
"start-date": "Start Date"
|
"start-date": "Start Date"
|
||||||
},
|
},
|
||||||
"migration": {
|
"migration": {
|
||||||
|
@ -345,7 +351,8 @@
|
||||||
"recipes-affected": "No Recipes Affected|One Recipe Affected|{count} Recipes Affected",
|
"recipes-affected": "No Recipes Affected|One Recipe Affected|{count} Recipes Affected",
|
||||||
"remove-unused": "Remove Unused",
|
"remove-unused": "Remove Unused",
|
||||||
"title-case-all": "Title Case All",
|
"title-case-all": "Title Case All",
|
||||||
"toolbox": "Toolbox"
|
"toolbox": "Toolbox",
|
||||||
|
"unorganized": "Unorganized"
|
||||||
},
|
},
|
||||||
"webhooks": {
|
"webhooks": {
|
||||||
"meal-planner-webhooks": "Meal Planner Webhooks",
|
"meal-planner-webhooks": "Meal Planner Webhooks",
|
||||||
|
@ -355,6 +362,16 @@
|
||||||
"webhooks-caps": "WEBHOOKS"
|
"webhooks-caps": "WEBHOOKS"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"shopping-list": {
|
||||||
|
"all-lists": "All Lists",
|
||||||
|
"create-shopping-list": "Create Shopping List",
|
||||||
|
"from-recipe": "From Recipe",
|
||||||
|
"list-name": "List Name",
|
||||||
|
"new-list": "New List",
|
||||||
|
"quantity": "Quantity: {0}",
|
||||||
|
"shopping-list": "Shopping List",
|
||||||
|
"shopping-lists": "Shopping Lists"
|
||||||
|
},
|
||||||
"signup": {
|
"signup": {
|
||||||
"display-name": "Display Name",
|
"display-name": "Display Name",
|
||||||
"error-signing-up": "Error Signing Up",
|
"error-signing-up": "Error Signing Up",
|
||||||
|
@ -377,7 +394,6 @@
|
||||||
"untagged-count": "Untagged {count}"
|
"untagged-count": "Untagged {count}"
|
||||||
},
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"username": "Username",
|
|
||||||
"admin": "Admin",
|
"admin": "Admin",
|
||||||
"are-you-sure-you-want-to-delete-the-link": "Are you sure you want to delete the link <b>{link}<b/>?",
|
"are-you-sure-you-want-to-delete-the-link": "Are you sure you want to delete the link <b>{link}<b/>?",
|
||||||
"are-you-sure-you-want-to-delete-the-user": "Are you sure you want to delete the user <b>{activeName} ID: {activeId}<b/>?",
|
"are-you-sure-you-want-to-delete-the-user": "Are you sure you want to delete the user <b>{activeName} ID: {activeId}<b/>?",
|
||||||
|
@ -423,7 +439,9 @@
|
||||||
"user-successfully-logged-in": "User Successfully Logged In",
|
"user-successfully-logged-in": "User Successfully Logged In",
|
||||||
"user-update-failed": "User update failed",
|
"user-update-failed": "User update failed",
|
||||||
"user-updated": "User updated",
|
"user-updated": "User updated",
|
||||||
|
"username": "Username",
|
||||||
"users": "Users",
|
"users": "Users",
|
||||||
|
"users-header": "USERS",
|
||||||
"webhook-time": "Webhook Time",
|
"webhook-time": "Webhook Time",
|
||||||
"webhooks-enabled": "Webhooks Enabled",
|
"webhooks-enabled": "Webhooks Enabled",
|
||||||
"you-are-not-allowed-to-create-a-user": "You are not allowed to create a user",
|
"you-are-not-allowed-to-create-a-user": "You are not allowed to create a user",
|
||||||
|
|
|
@ -6,25 +6,25 @@
|
||||||
<v-icon left>
|
<v-icon left>
|
||||||
mdi-heart
|
mdi-heart
|
||||||
</v-icon>
|
</v-icon>
|
||||||
Support
|
{{$t('about.support')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn href="https://github.com/hay-kot" target="_blank" class="mx-1" color="secondary">
|
<v-btn href="https://github.com/hay-kot" target="_blank" class="mx-1" color="secondary">
|
||||||
<v-icon left>
|
<v-icon left>
|
||||||
mdi-github
|
mdi-github
|
||||||
</v-icon>
|
</v-icon>
|
||||||
Github
|
{{$t('about.github')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn href="https://hay-kot.dev" target="_blank" class="mx-1" color="secondary">
|
<v-btn href="https://hay-kot.dev" target="_blank" class="mx-1" color="secondary">
|
||||||
<v-icon left>
|
<v-icon left>
|
||||||
mdi-account
|
mdi-account
|
||||||
</v-icon>
|
</v-icon>
|
||||||
Portfolio
|
{{$t('about.portfolio')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn href="https://hay-kot.github.io/mealie/" target="_blank" class="mx-1" color="secondary">
|
<v-btn href="https://hay-kot.github.io/mealie/" target="_blank" class="mx-1" color="secondary">
|
||||||
<v-icon left>
|
<v-icon left>
|
||||||
mdi-folder-outline
|
mdi-folder-outline
|
||||||
</v-icon>
|
</v-icon>
|
||||||
Docs
|
{{$t('about.docs')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<v-subheader>USERS</v-subheader>
|
<v-subheader>{{$t('user.users-header')}}</v-subheader>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
|
|
||||||
<v-virtual-scroll v-if="currentGroup.users" :items="currentGroup.users" height="257" item-height="64">
|
<v-virtual-scroll v-if="currentGroup.users" :items="currentGroup.users" height="257" item-height="64">
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<v-spacer v-if="!isMobile"> </v-spacer>
|
<v-spacer v-if="!isMobile"> </v-spacer>
|
||||||
</div>
|
</div>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<CardSection :sortable="true" title="Unorganized" :recipes="shownRecipes" @sort="assignSorted" />
|
<CardSection :sortable="true" :title="$t('settings.toolbox.unorganized')" :recipes="shownRecipes" @sort="assignSorted" />
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<v-icon left small>
|
<v-icon left small>
|
||||||
mdi-cart-check
|
mdi-cart-check
|
||||||
</v-icon>
|
</v-icon>
|
||||||
Create Shopping List
|
{{$t('shopping-list.create-shopping-list')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
text
|
text
|
||||||
|
@ -35,10 +35,10 @@
|
||||||
<v-icon left small>
|
<v-icon left small>
|
||||||
mdi-cart-check
|
mdi-cart-check
|
||||||
</v-icon>
|
</v-icon>
|
||||||
Shopping List
|
{{$t('shopping-list.shopping-list')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<TheCopyButton color="info" :copy-text="mealPlanURL(mealplan.uid)"> Link Coppied </TheCopyButton>
|
<TheCopyButton color="info" :copy-text="mealPlanURL(mealplan.uid)"> {{$t('general.link-copied')}} </TheCopyButton>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
||||||
<v-list class="mt-0 pt-0">
|
<v-list class="mt-0 pt-0">
|
||||||
|
|
|
@ -5,19 +5,23 @@
|
||||||
<v-icon left>
|
<v-icon left>
|
||||||
mdi-arrow-left-bold
|
mdi-arrow-left-bold
|
||||||
</v-icon>
|
</v-icon>
|
||||||
All Lists
|
{{$t('shopping-list.all-lists')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-icon v-if="!list" large left>
|
<v-icon v-if="!list" large left>
|
||||||
mdi-format-list-checks
|
mdi-format-list-checks
|
||||||
</v-icon>
|
</v-icon>
|
||||||
<v-toolbar-title v-if="!list" class="headline"> Shopping Lists </v-toolbar-title>
|
<v-toolbar-title v-if="!list" class="headline"> {{$t('shopping-list.shopping-lists')}} </v-toolbar-title>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<BaseDialog title="New List" title-icon="mdi-format-list-checks" submit-text="Create" @submit="createNewList">
|
<BaseDialog
|
||||||
|
:title="$t('shopping-list.new-list')"
|
||||||
|
title-icon="mdi-format-list-checks"
|
||||||
|
:submit-text="$t('general.create')"
|
||||||
|
@submit="createNewList">
|
||||||
<template v-slot:open="{ open }">
|
<template v-slot:open="{ open }">
|
||||||
<TheButton create @click="open" />
|
<TheButton create @click="open" />
|
||||||
</template>
|
</template>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-text-field autofocus v-model="newList.name" label="List Name"> </v-text-field>
|
<v-text-field autofocus v-model="newList.name" :label="$t('shopping-list.list-name')"> </v-text-field>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</BaseDialog>
|
</BaseDialog>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
|
@ -37,7 +41,7 @@
|
||||||
<v-icon left>
|
<v-icon left>
|
||||||
mdi-cart-check
|
mdi-cart-check
|
||||||
</v-icon>
|
</v-icon>
|
||||||
View
|
{{$t('general.view')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
@ -61,7 +65,7 @@
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-row dense v-for="(item, index) in activeList.items" :key="index">
|
<v-row dense v-for="(item, index) in activeList.items" :key="index">
|
||||||
<v-col v-if="edit" cols="12" class="d-flex no-wrap align-center">
|
<v-col v-if="edit" cols="12" class="d-flex no-wrap align-center">
|
||||||
<p class="mb-0">Quantity: {{ item.quantity }}</p>
|
<p class="mb-0">{{$t('shopping-list.quantity', [item.quantity])}}</p>
|
||||||
<div v-if="edit">
|
<div v-if="edit">
|
||||||
<v-btn x-small text class="ml-1" @click="activeList.items[index].quantity -= 1">
|
<v-btn x-small text class="ml-1" @click="activeList.items[index].quantity -= 1">
|
||||||
<v-icon>
|
<v-icon>
|
||||||
|
@ -119,13 +123,13 @@
|
||||||
<v-icon left>
|
<v-icon left>
|
||||||
{{ $globals.icons.primary }}
|
{{ $globals.icons.primary }}
|
||||||
</v-icon>
|
</v-icon>
|
||||||
From Recipe
|
{{$t('shopping-list.from-recipe')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn v-if="edit" color="success" @click="newItem">
|
<v-btn v-if="edit" color="success" @click="newItem">
|
||||||
<v-icon left>
|
<v-icon left>
|
||||||
{{ $globals.icons.create }}
|
{{ $globals.icons.create }}
|
||||||
</v-icon>
|
</v-icon>
|
||||||
New
|
{{$t('general.new')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue