mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
Translate TheUserTable
This commit is contained in:
parent
01830b6ca2
commit
47cb0a64e5
12 changed files with 57 additions and 42 deletions
|
@ -52,7 +52,7 @@
|
||||||
<v-col cols="12" sm="12" md="6">
|
<v-col cols="12" sm="12" md="6">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="editedItem.fullName"
|
v-model="editedItem.fullName"
|
||||||
label="Full Name"
|
:label="$t('user.full-name')"
|
||||||
:rules="[existsRule]"
|
:rules="[existsRule]"
|
||||||
validate-on-blur
|
validate-on-blur
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
<v-col cols="12" sm="12" md="6">
|
<v-col cols="12" sm="12" md="6">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="editedItem.email"
|
v-model="editedItem.email"
|
||||||
label="Email"
|
:label="$t('user.email')"
|
||||||
:rules="[existsRule, emailRule]"
|
:rules="[existsRule, emailRule]"
|
||||||
validate-on-blur
|
validate-on-blur
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
@ -70,19 +70,19 @@
|
||||||
dense
|
dense
|
||||||
v-model="editedItem.group"
|
v-model="editedItem.group"
|
||||||
:items="existingGroups"
|
:items="existingGroups"
|
||||||
label="User Group"
|
:label="$t('user.user-group')"
|
||||||
></v-select>
|
></v-select>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="12" md="6" v-if="showPassword">
|
<v-col cols="12" sm="12" md="6" v-if="showPassword">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
dense
|
dense
|
||||||
v-model="editedItem.password"
|
v-model="editedItem.password"
|
||||||
label="User Password"
|
:label="$t('user.user-password')"
|
||||||
:rules="[existsRule, minRule]"
|
:rules="[existsRule, minRule]"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="12" md="3">
|
<v-col cols="12" sm="12" md="3">
|
||||||
<v-switch v-model="editedItem.admin" label="Admin"></v-switch>
|
<v-switch v-model="editedItem.admin" :label="$t('user.admin')"></v-switch>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-form>
|
</v-form>
|
||||||
|
@ -91,10 +91,10 @@
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn color="grey" text @click="close">
|
<v-btn color="grey" text @click="close">
|
||||||
Cancel
|
{{$t('general.cancel')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn color="primary" @click="save">
|
<v-btn color="primary" @click="save">
|
||||||
Save
|
{{$t('general.save')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
@ -113,13 +113,13 @@
|
||||||
<v-icon small left>
|
<v-icon small left>
|
||||||
mdi-delete
|
mdi-delete
|
||||||
</v-icon>
|
</v-icon>
|
||||||
Delete
|
{{$t('general.delete')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn small color="success" @click="editItem(item)">
|
<v-btn small color="success" @click="editItem(item)">
|
||||||
<v-icon small left class="mr-2">
|
<v-icon small left class="mr-2">
|
||||||
mdi-pencil
|
mdi-pencil
|
||||||
</v-icon>
|
</v-icon>
|
||||||
Edit
|
{{$t('general.edit')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item.admin="{ item }">
|
<template v-slot:item.admin="{ item }">
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:no-data>
|
<template v-slot:no-data>
|
||||||
<v-btn color="primary" @click="initialize">
|
<v-btn color="primary" @click="initialize">
|
||||||
Reset
|
{{$t('general.reset')}}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
|
@ -149,15 +149,15 @@ export default {
|
||||||
activeName: null,
|
activeName: null,
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
text: "User ID",
|
text: this.$t('user.user-id'),
|
||||||
align: "start",
|
align: "start",
|
||||||
sortable: false,
|
sortable: false,
|
||||||
value: "id",
|
value: "id",
|
||||||
},
|
},
|
||||||
{ text: "Full Name", value: "fullName" },
|
{ text: this.$t('user.full-name'), value: "fullName" },
|
||||||
{ text: "Email", value: "email" },
|
{ text: this.$t('user.email'), value: "email" },
|
||||||
{ text: "Group", value: "group" },
|
{ text: this.$t('user.group'), value: "group" },
|
||||||
{ text: "Admin", value: "admin" },
|
{ text: this.$t('user.admin'), value: "admin" },
|
||||||
{ text: "", value: "actions", sortable: false, align: "center" },
|
{ text: "", value: "actions", sortable: false, align: "center" },
|
||||||
],
|
],
|
||||||
users: [],
|
users: [],
|
||||||
|
@ -182,7 +182,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
formTitle() {
|
formTitle() {
|
||||||
return this.editedIndex === -1 ? "New User" : "Edit User";
|
return this.editedIndex === -1 ? this.$t('user.new-user') : this.$t('user.edit-user');
|
||||||
},
|
},
|
||||||
showPassword() {
|
showPassword() {
|
||||||
return this.editedIndex === -1 ? true : false;
|
return this.editedIndex === -1 ? true : false;
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
light="light"
|
light="light"
|
||||||
prepend-icon="mdi-email"
|
prepend-icon="mdi-email"
|
||||||
validate-on-blur
|
validate-on-blur
|
||||||
:label="$t('login.email')"
|
:label="$t('user.email')"
|
||||||
type="email"
|
type="email"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
light="light"
|
light="light"
|
||||||
class="mb-2s"
|
class="mb-2s"
|
||||||
prepend-icon="mdi-lock"
|
prepend-icon="mdi-lock"
|
||||||
:label="$t('login.password')"
|
:label="$t('user.password')"
|
||||||
:type="showPassword ? 'text' : 'password'"
|
:type="showPassword ? 'text' : 'password'"
|
||||||
:append-icon="showPassword ? 'mdi-eye' : 'mdi-eye-off'"
|
:append-icon="showPassword ? 'mdi-eye' : 'mdi-eye-off'"
|
||||||
@click:append="showPassword = !showPassword"
|
@click:append="showPassword = !showPassword"
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
color="primary"
|
color="primary"
|
||||||
block="block"
|
block="block"
|
||||||
type="submit"
|
type="submit"
|
||||||
>{{ $t("login.sign-in") }}</v-btn
|
>{{ $t("user.sign-in") }}</v-btn
|
||||||
>
|
>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
<v-alert v-if="error" outlined class="mt-3 mb-0" type="error">
|
<v-alert v-if="error" outlined class="mt-3 mb-0" type="error">
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
prepend-icon="mdi-email"
|
prepend-icon="mdi-email"
|
||||||
validate-on-blur
|
validate-on-blur
|
||||||
:rules="[existsRule, emailRule]"
|
:rules="[existsRule, emailRule]"
|
||||||
:label="$t('login.email')"
|
:label="$t('user.email')"
|
||||||
type="email"
|
type="email"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
class="mb-2s"
|
class="mb-2s"
|
||||||
prepend-icon="mdi-lock"
|
prepend-icon="mdi-lock"
|
||||||
validate-on-blur
|
validate-on-blur
|
||||||
:label="$t('login.password')"
|
:label="$t('user.password')"
|
||||||
:type="showPassword ? 'text' : 'password'"
|
:type="showPassword ? 'text' : 'password'"
|
||||||
:rules="[minRule]"
|
:rules="[minRule]"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
light="light"
|
light="light"
|
||||||
class="mb-2s"
|
class="mb-2s"
|
||||||
prepend-icon="mdi-lock"
|
prepend-icon="mdi-lock"
|
||||||
:label="$t('login.password')"
|
:label="$t('user.password')"
|
||||||
:type="showPassword ? 'text' : 'password'"
|
:type="showPassword ? 'text' : 'password'"
|
||||||
:append-icon="showPassword ? 'mdi-eye' : 'mdi-eye-off'"
|
:append-icon="showPassword ? 'mdi-eye' : 'mdi-eye-off'"
|
||||||
:rules="[
|
:rules="[
|
||||||
|
|
|
@ -71,8 +71,8 @@ export default {
|
||||||
restricted: true,
|
restricted: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: "mdi-account",
|
icon: "mdi-logout",
|
||||||
title: this.$t('auth.logout'),
|
title: this.$t('user.logout'),
|
||||||
restricted: true,
|
restricted: true,
|
||||||
nav: "/logout",
|
nav: "/logout",
|
||||||
},
|
},
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
"download": "Hent",
|
"download": "Hent",
|
||||||
"import": "Importere"
|
"import": "Importere"
|
||||||
},
|
},
|
||||||
"login": {
|
"user": {
|
||||||
"email": "E-mail",
|
"email": "E-mail",
|
||||||
"password": "Adgangskode",
|
"password": "Adgangskode",
|
||||||
"sign-in": "Log ind",
|
"sign-in": "Log ind",
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
"all-recipes": "Alle Rezepte",
|
"all-recipes": "Alle Rezepte",
|
||||||
"recent": "Neueste"
|
"recent": "Neueste"
|
||||||
},
|
},
|
||||||
"login": {
|
"user": {
|
||||||
"stay-logged-in": "Eingeloggt bleiben?",
|
"stay-logged-in": "Eingeloggt bleiben?",
|
||||||
"email": "E-Mail",
|
"email": "E-Mail",
|
||||||
"password": "Passwort",
|
"password": "Passwort",
|
||||||
|
|
|
@ -38,19 +38,29 @@
|
||||||
"confirm": "Confirm",
|
"confirm": "Confirm",
|
||||||
"sort": "Sort",
|
"sort": "Sort",
|
||||||
"recent": "Recent",
|
"recent": "Recent",
|
||||||
"sort-alphabetically": "A-Z"
|
"sort-alphabetically": "A-Z",
|
||||||
|
"reset": "Reset"
|
||||||
},
|
},
|
||||||
"page": {
|
"page": {
|
||||||
"home-page": "Home Page",
|
"home-page": "Home Page",
|
||||||
"all-recipes": "All Recipes",
|
"all-recipes": "All Recipes",
|
||||||
"recent": "Recent"
|
"recent": "Recent"
|
||||||
},
|
},
|
||||||
"login": {
|
"user": {
|
||||||
"stay-logged-in": "Stay logged in?",
|
"stay-logged-in": "Stay logged in?",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"password": "Password",
|
"password": "Password",
|
||||||
"sign-in": "Sign in",
|
"sign-in": "Sign in",
|
||||||
"sign-up": "Sign up"
|
"sign-up": "Sign up",
|
||||||
|
"logout": "Logout",
|
||||||
|
"full-name": "Full Name",
|
||||||
|
"user-group": "User Group",
|
||||||
|
"user-password": "User Password",
|
||||||
|
"admin": "Admin",
|
||||||
|
"user-id": "User ID",
|
||||||
|
"group": "Group",
|
||||||
|
"new-user": "New User",
|
||||||
|
"edit-user": "Edit User"
|
||||||
},
|
},
|
||||||
"meal-plan": {
|
"meal-plan": {
|
||||||
"shopping-list": "Shopping List",
|
"shopping-list": "Shopping List",
|
||||||
|
@ -175,8 +185,5 @@
|
||||||
"title": "Chowdown",
|
"title": "Chowdown",
|
||||||
"description": "Migrate data from Chowdown"
|
"description": "Migrate data from Chowdown"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"auth": {
|
|
||||||
"logout": "Logout"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,19 +38,29 @@
|
||||||
"confirm": "Confirmer",
|
"confirm": "Confirmer",
|
||||||
"recent": "Récent",
|
"recent": "Récent",
|
||||||
"sort": "Trier",
|
"sort": "Trier",
|
||||||
"sort-alphabetically": "A-Z"
|
"sort-alphabetically": "A-Z",
|
||||||
|
"reset": "Réinitialiser"
|
||||||
},
|
},
|
||||||
"page": {
|
"page": {
|
||||||
"home-page": "Accueil",
|
"home-page": "Accueil",
|
||||||
"all-recipes": "Toutes mes recettes",
|
"all-recipes": "Toutes mes recettes",
|
||||||
"recent": "Récent"
|
"recent": "Récent"
|
||||||
},
|
},
|
||||||
"login": {
|
"user": {
|
||||||
"stay-logged-in": "Rester connecté(e) ?",
|
"stay-logged-in": "Rester connecté(e) ?",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"password": "Mot de passe",
|
"password": "Mot de passe",
|
||||||
"sign-in": "Se connecter",
|
"sign-in": "Se connecter",
|
||||||
"sign-up": "S'inscrire"
|
"sign-up": "S'inscrire",
|
||||||
|
"logout": "Déconnexion",
|
||||||
|
"admin": "Admin",
|
||||||
|
"edit-user": "Modifier l'utilisateur",
|
||||||
|
"full-name": "Nom",
|
||||||
|
"group": "Groupe",
|
||||||
|
"new-user": "Nouvel utilisateur",
|
||||||
|
"user-group": "Groupe utilisateur",
|
||||||
|
"user-id": "ID utilisateur",
|
||||||
|
"user-password": "Mot de passe de l'utilisateur"
|
||||||
},
|
},
|
||||||
"meal-plan": {
|
"meal-plan": {
|
||||||
"shopping-list": "Liste d'achats",
|
"shopping-list": "Liste d'achats",
|
||||||
|
@ -176,7 +186,5 @@
|
||||||
"description": "Importer des recettes depuis Chowdown"
|
"description": "Importer des recettes depuis Chowdown"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {}
|
||||||
"logout": "Déconnexion"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"themes": "Motywy",
|
"themes": "Motywy",
|
||||||
"confirm": "Potwierdź"
|
"confirm": "Potwierdź"
|
||||||
},
|
},
|
||||||
"login": {
|
"user": {
|
||||||
"stay-logged-in": "Pozostań zalogowany",
|
"stay-logged-in": "Pozostań zalogowany",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"password": "Hasło",
|
"password": "Hasło",
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
"download": "Ladda ner",
|
"download": "Ladda ner",
|
||||||
"import": "Importera"
|
"import": "Importera"
|
||||||
},
|
},
|
||||||
"login": {
|
"user": {
|
||||||
"email": "E-mail",
|
"email": "E-mail",
|
||||||
"password": "Lösenord",
|
"password": "Lösenord",
|
||||||
"sign-in": "Logga in",
|
"sign-in": "Logga in",
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"themes": "布景主题",
|
"themes": "布景主题",
|
||||||
"confirm": "确定"
|
"confirm": "确定"
|
||||||
},
|
},
|
||||||
"login": {
|
"user": {
|
||||||
"stay-logged-in": "保持登录状态?",
|
"stay-logged-in": "保持登录状态?",
|
||||||
"email": "电子邮件",
|
"email": "电子邮件",
|
||||||
"password": "密码",
|
"password": "密码",
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"themes": "佈景主題",
|
"themes": "佈景主題",
|
||||||
"confirm": "確定"
|
"confirm": "確定"
|
||||||
},
|
},
|
||||||
"login": {
|
"user": {
|
||||||
"stay-logged-in": "保持登錄狀態?",
|
"stay-logged-in": "保持登錄狀態?",
|
||||||
"email": "電子郵件",
|
"email": "電子郵件",
|
||||||
"password": "密碼",
|
"password": "密碼",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue