language strings updates

This commit is contained in:
Čarodej
2022-03-20 12:12:09 +01:00
parent 98d9f3ab0d
commit 881facc867
121 changed files with 1729 additions and 1400 deletions

View File

@@ -15,7 +15,7 @@
{{ user.data.relationships.settings.data.attributes.last_name }}
<ColorLabel color="purple">
{{ user.data.attributes.role }}
{{ $t(user.data.attributes.role) }}
</ColorLabel>
</b>
<small class="block text-xs text-gray-600 sm:text-sm">
@@ -84,7 +84,7 @@ export default {
route: 'UserDetail',
},
{
title: this.$t('Storage'),
title: this.$t('storage'),
route: 'UserStorage',
},
{
@@ -92,7 +92,7 @@ export default {
route: 'UserPassword',
},
{
title: this.$t('Delete Account'),
title: this.$t('delete_account'),
route: 'UserDelete',
},
]
@@ -104,11 +104,11 @@ export default {
route: 'UserDetail',
},
{
title: this.$t('Storage'),
title: this.$t('storage'),
route: 'UserStorage',
},
{
title: this.$t('Billing'),
title: this.$t('billing'),
route: 'UserSubscription',
},
{
@@ -116,7 +116,7 @@ export default {
route: 'UserPassword',
},
{
title: this.$t('Delete Account'),
title: this.$t('delete_account'),
route: 'UserDelete',
},
]

View File

@@ -83,7 +83,7 @@
>
<input
v-model="user.password_confirmation"
:placeholder="$t('admin_page_user.create_user.label_conf_pass')"
:placeholder="$t('confirm_password')"
type="password"
class="focus-border-theme input-dark"
:class="{ '!border-rose-600': errors[0] }"

View File

@@ -41,7 +41,7 @@
<!--Name-->
<div class="justify-items md:flex md:space-x-4">
<AppInputText :title="$t('First Name')" class="w-full">
<AppInputText :title="$t('first_name')" class="w-full">
<input
disabled
:value="user.data.relationships.settings.data.attributes.first_name"
@@ -50,7 +50,7 @@
class="focus-border-theme input-dark disabled:text-gray-900 disabled:opacity-100"
/>
</AppInputText>
<AppInputText :title="$t('Last Name')" class="w-full">
<AppInputText :title="$t('last_name')" class="w-full">
<input
disabled
:value="user.data.relationships.settings.data.attributes.last_name"

View File

@@ -1,7 +1,7 @@
<template>
<div class="card shadow-card">
<FormLabel>
{{ $t('Subscription') }}
{{ $t('subscription') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-xl font-extrabold sm:text-3xl">
@@ -36,14 +36,14 @@ export default {
computed: {
status() {
return {
active: `Active until ${this.subscription.attributes.renews_at}`,
cancelled: `Active until ${this.subscription.attributes.ends_at}`,
active: this.$t('active_until', {date: this.subscription.attributes.renews_at}),
cancelled: this.$t('ends_at_date', {date: this.subscription.attributes.ends_at}),
}[this.subscription.attributes.status]
},
price() {
return {
month: `${this.subscription.relationships.plan.data.attributes.price} Per Month`,
year: `${this.subscription.relationships.plan.data.attributes.price} Per Year`,
month: this.$t('price_per_month', {price: this.subscription.relationships.plan.data.attributes.price}),
year: this.$t('price_per_year', {price: this.subscription.relationships.plan.data.attributes.price}),
}[this.subscription.relationships.plan.data.attributes.interval]
},
},
@@ -60,12 +60,12 @@ export default {
max_team_members: 'purple',
},
message: {
max_storage_amount: `Total ${item.use} of ${item.total} Used`,
max_team_members: `Total ${item.use} of ${item.total} Members`,
max_storage_amount: this.$t('total_x_of_x_used', {use: item.use, total:item.total }),
max_team_members: this.$t('total_x_of_x_members', {use: item.use, total:item.total }),
},
title: {
max_storage_amount: `Storage`,
max_team_members: `Team Members`,
max_storage_amount: this.$t('storage'),
max_team_members: this.$t('team_members'),
},
}

View File

@@ -3,7 +3,7 @@
<!--Balance-->
<div class="card shadow-card">
<FormLabel icon="hard-drive">
{{ $t('Balance') }}
{{ $t('balance') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
@@ -19,14 +19,14 @@
>
<ValidationProvider tag="div" v-slot="{ errors }" mode="passive" name="Balance Amount" rules="required">
<AppInputText
:description="$t('User balance will be increased for the amount above.')"
:description="$t('balance_will_be_increased')"
:error="errors[0]"
:is-last="true"
>
<div class="space-y-4 sm:flex sm:space-x-4 sm:space-y-0">
<input
v-model="balanceAmount"
:placeholder="$t('Increase user balance for...')"
:placeholder="$t('increase_for')"
type="number"
min="1"
max="999999999"
@@ -40,7 +40,7 @@
:loading="isUpdatingBalanceAmount"
:disabled="isUpdatingBalanceAmount"
>
{{ $t('Increase Balance') }}
{{ $t('increase_balance') }}
</ButtonBase>
</div>
</AppInputText>
@@ -51,7 +51,7 @@
<!--Usage Estimates-->
<div class="card shadow-card">
<FormLabel icon="hard-drive">
{{ $t('Usage Estimates') }}
{{ $t('usage_estimates') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
@@ -60,7 +60,7 @@
<b class="mb-3 mb-5 block text-sm text-gray-400">
{{ user.data.relationships.subscription.data.attributes.updated_at }}
{{ $t('till now') }}
{{ $t('till_now') }}
</b>
<div>
@@ -142,7 +142,7 @@ export default {
events.$emit('toaster', {
type: 'success',
message: this.$t('User balance was successfully increased'),
message: this.$t('balance_was_increased'),
})
})
.catch(() => {

View File

@@ -6,7 +6,7 @@
</FormLabel>
<AppInputText
:title="$t('Reset User Password')"
:title="$t('reset_user_password')"
:description="$t('user_box_password.description')"
:is-last="true"
>

View File

@@ -3,7 +3,7 @@
<!--Storage Usage-->
<div v-if="distribution" class="card shadow-card">
<FormLabel icon="hard-drive">
{{ $t('Storage Usage') }}
{{ $t('storage_usage') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
@@ -16,8 +16,8 @@
"
class="mt-0.5 block text-sm dark:text-gray-500 text-gray-400"
>
{{ $t('Total of') }} {{ storage.data.attributes.capacity }}
{{ $t('Used') }}
{{ $t('total_of', {capacity: storage.data.attributes.capacity}) }}
{{ $t('used') }}
</b>
<ProgressLine v-if="storage.data.attributes.used !== '0B'" :data="distribution" class="mt-5" />
@@ -26,7 +26,7 @@
<!--Upload-->
<div v-if="distribution" class="card shadow-card">
<FormLabel icon="hard-drive">
{{ $t('Upload') }}
{{ $t('upload') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
@@ -34,7 +34,7 @@
</b>
<b class="mb-3 mb-5 block text-sm dark:text-gray-500 text-gray-400">
{{ $t('In last 45 days') }}
{{ $t('in_last_x_days') }}
</b>
<BarChart :data="storage.data.meta.traffic.chart.upload" color="#FFBD2D" />
@@ -43,7 +43,7 @@
<!--Download-->
<div v-if="distribution" class="card shadow-card">
<FormLabel icon="hard-drive">
{{ $t('Download') }}
{{ $t('download') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
@@ -51,7 +51,7 @@
</b>
<b class="mb-3 mb-5 block text-sm dark:text-gray-500 text-gray-400">
{{ $t('In last 45 days') }}
{{ $t('in_last_x_days') }}
</b>
<BarChart :data="storage.data.meta.traffic.chart.download" color="#9d66fe" />

View File

@@ -15,22 +15,22 @@
<!--Free Plan-->
<div v-if="!subscription && config.subscriptionType === 'fixed'" class="card shadow-card">
<FormLabel>
{{ $t('Subscription') }}
{{ $t('subscription') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
{{ $t('Free Plan') }}
{{ $t('free_plan') }}
</b>
<b class="block text-sm text-gray-400">
{{ $t('1GB Free storage space with 5 Team members') }}
{{ $t('free_plan_parameters', {storage: config.storageDefaultSpaceFormatted, members: config.teamsDefaultMembers}) }}
</b>
</div>
<!--Transactions-->
<div class="card shadow-card">
<FormLabel icon="file-text">
{{ $t('Transactions') }}
{{ $t('transactions') }}
</FormLabel>
<DatatableWrapper
@@ -60,7 +60,7 @@
<template v-slot:empty-page>
<InfoBox style="margin-bottom: 0">
<p>
{{ $t("User doesn't have any transactions yet.") }}
{{ $t("user_dont_have_transactions") }}
</p>
</InfoBox>
</template>