language strings refactoring

This commit is contained in:
Čarodej
2022-03-19 10:14:11 +01:00
parent 7564c01fa3
commit 98d9f3ab0d
73 changed files with 617 additions and 655 deletions
+4 -4
View File
@@ -19,7 +19,7 @@
target="_blank"
class="mr-4 inline-block"
>
<span class="text-sm font-bold"> {{ $t('admin_page_dashboard.version') }}: </span>
<span class="text-sm font-bold"> {{ $t('version') }}: </span>
<ColorLabel color="purple">
{{ data.app.version }}
</ColorLabel>
@@ -29,7 +29,7 @@
target="_blank"
class="mr-4 inline-block"
>
<span class="text-sm font-bold"> {{ $t('admin_page_dashboard.license') }}: </span>
<span class="text-sm font-bold"> {{ $t('license') }}: </span>
<ColorLabel color="purple">
{{ data.app.license }}
</ColorLabel>
@@ -94,7 +94,7 @@
<router-link :to="{ name: 'Users' }" class="mt-6 flex items-center">
<span class="mr-2 whitespace-nowrap text-xs font-bold">
{{ $t('admin_page_dashboard.w_total_space.link') }}
{{ $t('show_all_users') }}
</span>
<chevron-right-icon size="16" class="text-theme vue-feather" />
</router-link>
@@ -110,7 +110,7 @@
<router-link :to="{ name: 'Users' }" class="mt-6 flex items-center">
<span class="mr-2 whitespace-nowrap text-xs font-bold">
{{ $t('admin_page_dashboard.w_total_space.link') }}
{{ $t('show_all_users') }}
</span>
<chevron-right-icon size="16" class="text-theme vue-feather" />
</router-link>
+4 -4
View File
@@ -100,22 +100,22 @@ export default {
isLoading: true,
columns: [
{
label: this.$t('admin_pages.table.page'),
label: this.$t('page'),
field: 'title',
sortable: true,
},
{
label: this.$t('admin_pages.table.slug'),
label: this.$t('slug'),
field: 'slug',
sortable: true,
},
{
label: this.$t('admin_pages.table.status'),
label: this.$t('status'),
field: 'visibility',
sortable: true,
},
{
label: this.$t('admin_page_user.table.action'),
label: this.$t('action'),
sortable: false,
},
],
+4 -4
View File
@@ -5,12 +5,12 @@
{{ page.data.attributes.title }}
</FormLabel>
<AppInputSwitch
:title="$t('admin_pages.form.visibility')"
:title="$t('visibility')"
:description="$t('admin_pages.form.visibility_help')"
>
<SwitchInput @input="changeStatus" class="switch" :state="page.data.attributes.visibility" />
</AppInputSwitch>
<AppInputText :title="$t('admin_pages.form.title')">
<AppInputText :title="$t('title')">
<input
@input="$updateText('/admin/pages/' + $route.params.slug, 'title', page.data.attributes.title)"
v-model="page.data.attributes.title"
@@ -19,10 +19,10 @@
class="focus-border-theme input-dark"
/>
</AppInputText>
<AppInputText :title="$t('admin_pages.form.slug')">
<AppInputText :title="$t('slug')">
<input v-model="page.data.attributes.slug" type="text" class="focus-border-theme input-dark" disabled />
</AppInputText>
<AppInputText :title="$t('admin_pages.form.content')" :is-last="true">
<AppInputText :title="$t('content')" :is-last="true">
<textarea
@input="$updateText('/admin/pages/' + $route.params.slug, 'content', page.data.attributes.content)"
v-model="page.data.attributes.content"
@@ -40,7 +40,7 @@
/>
</AppInputText>
<AppInputText :title="$t('admin_settings.billings.address')">
<AppInputText :title="$t('billing_address')">
<input
@input="$updateText('/admin/settings', 'billing_address', billingInformation.billing_address)"
v-model="billingInformation.billing_address"
@@ -51,7 +51,7 @@
</AppInputText>
<div class="flex space-x-4">
<AppInputText :title="$t('admin_settings.billings.city')" class="w-full">
<AppInputText :title="$t('billing_city')" class="w-full">
<input
@input="$updateText('/admin/settings', 'billing_city', billingInformation.billing_city)"
v-model="billingInformation.billing_city"
@@ -568,7 +568,7 @@ export default {
sortable: false,
},
{
label: this.$t('admin_page_user.table.action'),
label: this.$t('action'),
sortable: false,
},
],
+2 -2
View File
@@ -243,7 +243,7 @@ export default {
sortable: false,
},
{
label: this.$t('admin_page_user.table.action'),
label: this.$t('action'),
sortable: false,
},
],
@@ -277,7 +277,7 @@ export default {
sortable: false,
},
{
label: this.$t('admin_page_user.table.action'),
label: this.$t('action'),
sortable: false,
},
],
@@ -7,7 +7,7 @@
<!--Visible-->
<AppInputSwitch
:title="$t('admin_page_plans.form.status')"
:title="$t('status')"
:description="$t('admin_page_plans.form.status_help')"
>
<SwitchInput
@@ -155,7 +155,7 @@ export default {
return {
metered: [
{
label: this.$t('admin_page_user.table.name'),
label: this.$t('user'),
field: 'user_id',
sortable: true,
},
@@ -172,7 +172,7 @@ export default {
],
fixed: [
{
label: this.$t('admin_page_user.table.name'),
label: this.$t('user'),
field: 'user_id',
sortable: true,
},
+1 -1
View File
@@ -119,7 +119,7 @@ export default {
isLoading: true,
columns: [
{
label: this.$t('admin_page_user.table.name'),
label: this.$t('user'),
field: 'user_id',
sortable: true,
},
+13 -13
View File
@@ -139,7 +139,7 @@
</td>
<td class="px-3 md:px-1">
<span class="text-sm font-bold">
{{ row.data.relationships.subscription ? $t('global.premium') : $t('global.free') }}
{{ row.data.relationships.subscription ? $t('premium') : $t('free') }}
</span>
</td>
<td class="px-3 md:px-1">
@@ -304,17 +304,17 @@ export default {
return {
metered: [
{
label: this.$t('admin_page_user.table.name'),
label: this.$t('user'),
field: 'email',
sortable: true,
},
{
label: this.$t('admin_page_user.table.role'),
label: this.$t('role'),
field: 'role',
sortable: true,
},
{
label: this.$t('admin_page_user.table.storage_used'),
label: this.$t('storage_used'),
sortable: false,
},
{
@@ -327,18 +327,18 @@ export default {
sortable: true,
},
{
label: this.$t('admin_page_user.table.action'),
label: this.$t('action'),
sortable: false,
},
],
fixed: [
{
label: this.$t('admin_page_user.table.name'),
label: this.$t('user'),
field: 'email',
sortable: true,
},
{
label: this.$t('admin_page_user.table.role'),
label: this.$t('role'),
field: 'role',
sortable: true,
},
@@ -347,7 +347,7 @@ export default {
sortable: false,
},
{
label: this.$t('admin_page_user.table.storage_used'),
label: this.$t('storage_used'),
sortable: false,
},
{
@@ -361,23 +361,23 @@ export default {
sortable: true,
},
{
label: this.$t('admin_page_user.table.action'),
label: this.$t('action'),
sortable: false,
},
],
none: [
{
label: this.$t('admin_page_user.table.name'),
label: this.$t('user'),
field: 'email',
sortable: true,
},
{
label: this.$t('admin_page_user.table.role'),
label: this.$t('role'),
field: 'role',
sortable: true,
},
{
label: this.$t('admin_page_user.table.storage_used'),
label: this.$t('storage_used'),
sortable: false,
},
{
@@ -391,7 +391,7 @@ export default {
sortable: true,
},
{
label: this.$t('admin_page_user.table.action'),
label: this.$t('action'),
sortable: false,
},
],
+4 -4
View File
@@ -80,7 +80,7 @@ export default {
if (this.config.subscriptionType === 'none') {
return [
{
title: this.$t('admin_page_user.tabs.detail'),
title: this.$t('detail'),
route: 'UserDetail',
},
{
@@ -88,7 +88,7 @@ export default {
route: 'UserStorage',
},
{
title: this.$t('admin_page_user.tabs.password'),
title: this.$t('password'),
route: 'UserPassword',
},
{
@@ -100,7 +100,7 @@ export default {
return [
{
title: this.$t('admin_page_user.tabs.detail'),
title: this.$t('detail'),
route: 'UserDetail',
},
{
@@ -112,7 +112,7 @@ export default {
route: 'UserSubscription',
},
{
title: this.$t('admin_page_user.tabs.password'),
title: this.$t('password'),
route: 'UserPassword',
},
{
@@ -1,11 +1,11 @@
<template>
<ValidationObserver @submit.prevent="createUser" ref="createUser" v-slot="{ invalid }" tag="form">
<div class="card shadow-card">
<FormLabel>{{ $t('admin_page_user.create_user.group_details') }}</FormLabel>
<FormLabel>{{ $t('account_details') }}</FormLabel>
<!--Avatar-->
<ValidationProvider tag="div" mode="passive" name="avatar" v-slot="{ errors }">
<AppInputText :title="$t('admin_page_user.create_user.avatar')" :error="errors[0]">
<AppInputText :title="$t('avatar')" :error="errors[0]">
<ImageInput v-model="user.avatar" :error="errors[0]" />
</AppInputText>
</ValidationProvider>
@@ -24,7 +24,7 @@
<!--Email-->
<ValidationProvider tag="div" mode="passive" name="email" rules="required" v-slot="{ errors }">
<AppInputText :title="$t('page_registration.label_email')" :error="errors[0]">
<AppInputText :title="$t('email')" :error="errors[0]">
<input
v-model="user.email"
:placeholder="$t('admin_page_user.create_user.label_email')"
@@ -37,7 +37,7 @@
<!--Name-->
<ValidationProvider tag="div" mode="passive" name="user name" rules="required" v-slot="{ errors }">
<AppInputText :title="$t('page_registration.label_name')" :error="errors[0]">
<AppInputText :title="$t('full_name')" :error="errors[0]">
<input
v-model="user.name"
:placeholder="$t('admin_page_user.create_user.label_name')"
@@ -61,7 +61,7 @@
<AppInputText :title="$t('page_registration.label_pass')" :error="errors[0]" :is-last="true">
<input
v-model="user.password"
:placeholder="$t('page_registration.placeholder_pass')"
:placeholder="$t('new_password')"
type="password"
class="focus-border-theme input-dark"
:class="{ '!border-rose-600': errors[0] }"
@@ -77,7 +77,7 @@
class="w-full"
>
<AppInputText
:title="$t('page_registration.label_confirm_pass')"
:title="$t('confirm_password')"
:error="errors[0]"
:is-last="true"
>
@@ -61,7 +61,7 @@
</AppInputText>
</div>
<AppInputText :title="$t('page_registration.label_name')" :is-last="true">
<AppInputText :title="$t('full_name')" :is-last="true">
<input
:value="user.data.relationships.settings.data.attributes.name"
:placeholder="$t('page_registration.placeholder_name')"
@@ -72,7 +72,7 @@
</AppInputText>
</div>
<div class="card shadow-card">
<FormLabel>{{ $t('user_settings.title_billing') }}</FormLabel>
<FormLabel>{{ $t('billing_information') }}</FormLabel>
<AppInputText :title="$t('name')">
<input
:value="user.data.relationships.settings.data.attributes.name"
@@ -81,7 +81,7 @@
disabled
/>
</AppInputText>
<AppInputText :title="$t('user_settings.address')">
<AppInputText :title="$t('address')">
<input
:value="user.data.relationships.settings.data.attributes.address"
type="text"
@@ -89,7 +89,7 @@
class="focus-border-theme input-dark disabled:text-gray-900 disabled:opacity-100"
/>
</AppInputText>
<AppInputText :title="$t('user_settings.country')">
<AppInputText :title="$t('country')">
<input
:value="user.data.relationships.settings.data.attributes.country"
type="text"
@@ -98,7 +98,7 @@
/>
</AppInputText>
<div class="flex space-x-4">
<AppInputText :title="$t('user_settings.city')" class="w-full">
<AppInputText :title="$t('city')" class="w-full">
<input
:value="user.data.relationships.settings.data.attributes.city"
type="text"
@@ -106,7 +106,7 @@
class="focus-border-theme input-dark disabled:text-gray-900 disabled:opacity-100"
/>
</AppInputText>
<AppInputText :title="$t('user_settings.postal_code')" class="w-full">
<AppInputText :title="$t('postal_co')" class="w-full">
<input
:value="user.data.relationships.settings.data.attributes.postal_code"
type="text"
@@ -115,7 +115,7 @@
/>
</AppInputText>
</div>
<AppInputText :title="$t('user_settings.state')">
<AppInputText :title="$t('state')">
<input
:value="user.data.relationships.settings.data.attributes.state"
type="text"
@@ -123,7 +123,7 @@
class="focus-border-theme input-dark disabled:text-gray-900 disabled:opacity-100"
/>
</AppInputText>
<AppInputText :title="$t('user_settings.phone_number')" :is-last="true">
<AppInputText :title="$t('phone_number')" :is-last="true">
<input
:value="user.data.relationships.settings.data.attributes.phone_number"
type="text"
@@ -95,7 +95,7 @@
button-style="theme"
class="w-full sm:w-auto"
>
{{ $t('admin_page_user.change_capacity') }}
{{ $t('change_capacity') }}
</ButtonBase>
</div>
</AppInputText>