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

@@ -1,11 +1,11 @@
<template>
<PopupWrapper name="change-plan-subscription">
<PopupHeader :title="$t('Change Your Plan')" icon="credit-card" />
<PopupHeader :title="$t('change_your_plan')" icon="credit-card" />
<!--Select Payment Plans-->
<PopupContent v-if="plans">
<InfoBox v-if="plans.data.length === 0" class="!mb-0">
<p>{{ $t("There isn't any plan yet.") }}</p>
<p>{{ $t("not_any_plan") }}</p>
</InfoBox>
<!--Toggle yearly billing-->
@@ -37,7 +37,7 @@
:button-style="buttonStyle"
:loading="isLoading"
@click.native="proceedToPayment"
>{{ $t('Change Plan') }}
>{{ $t('change_plan') }}
</ButtonBase>
</PopupActions>
</PopupWrapper>
@@ -152,7 +152,7 @@ export default {
events.$emit('toaster', {
type: 'success',
message: this.$t('Your subscription was successfully changed.'),
message: this.$t('subscription_changed'),
})
})
}

View File

@@ -21,12 +21,12 @@
</div>
</div>
<span v-if="!row.data.relationships.user" class="text-xs font-bold text-gray-500">
{{ $t('User was deleted') }}
{{ $t('user_was_deleted') }}
</span>
</td>
<td class="px-3 md:px-1">
<ColorLabel class="capitalize" :color="$getTransactionStatusColor(row.data.attributes.status)">
{{ row.data.attributes.status }}
{{ $t(row.data.attributes.status) }}
</ColorLabel>
</td>
<td class="px-3 md:px-1">

View File

@@ -21,12 +21,12 @@
</div>
</div>
<span v-if="!row.data.relationships.user" class="text-xs font-bold text-gray-500">
{{ $t('User was deleted') }}
{{ $t('user_was_deleted') }}
</span>
</td>
<td class="px-3 md:px-1">
<ColorLabel class="capitalize" :color="$getTransactionStatusColor(row.data.attributes.status)">
{{ row.data.attributes.status }}
{{ $t(row.data.attributes.status) }}
</ColorLabel>
</td>
<td class="px-3 md:px-1">

View File

@@ -9,7 +9,7 @@
{{ card.data.attributes.last4 }}
</b>
</div>
<b class="text-sm font-bold leading-none"> {{ $t('Expires') }} {{ card.data.attributes.expiration }} </b>
<b class="text-sm font-bold leading-none"> {{ $t('expires') }} {{ card.data.attributes.expiration }} </b>
<Trash2Icon @click="deleteCreditCard(card.data.id)" size="15" class="cursor-pointer" />
</div>
</template>
@@ -27,10 +27,8 @@ export default {
methods: {
deleteCreditCard(id) {
events.$emit('confirm:open', {
title: this.$t('Are you sure you want to delete your credit card?'),
message: this.$t(
'We will no longer settle your payments automatically and you will have to fund your account for the next payments.'
),
title: this.$t('want_to_delete_card_title'),
message: this.$t('want_to_delete_card_description'),
action: {
id: id,
operation: 'delete-credit-card',
@@ -48,7 +46,7 @@ export default {
events.$emit('toaster', {
type: 'success',
message: this.$t('Your credit card was deleted.'),
message: this.$t('credit_card_deleted'),
})
})
.catch(() => this.$isSomethingWrong())

View File

@@ -4,7 +4,7 @@
:class="{ 'text-gray-400': !isSelectedYearlyPlans }"
class="cursor-pointer text-xs font-bold"
>
{{ $t('Billed Annually') }}
{{ $t('billed_annually') }}
</label>
<div class="relative inline-block w-12 select-none align-middle">
<SwitchInput

View File

@@ -1,7 +1,7 @@
<template>
<div v-if="$store.getters.isLimitedUser" class="bg-red-500 py-1 text-center">
<router-link :to="{ name: 'Billing' }" class="text-xs font-bold text-white">
{{ $t('Your functionality is restricted. Please review your billing settings.') }}
{{ $t('restricted_account_warning') }}
</router-link>
</div>
</template>

View File

@@ -1,6 +1,6 @@
<template>
<PopupWrapper name="select-plan-subscription">
<PopupHeader :title="$t('Upgrade Your Account')" icon="credit-card" />
<PopupHeader :title="$t('upgrade_your_account')" icon="credit-card" />
<!--Payment Options-->
<div v-if="isPaymentOptionPage">
@@ -9,7 +9,7 @@
<PaymentMethod
v-if="config.isStripe"
driver="stripe"
:description="$t('Pay by your credit card or Apple Pay')"
:description="$t(config.stripe_payment_description)"
>
<div v-if="stripe.isGettingCheckoutLink" class="translate-y-3 scale-50 transform">
<Spinner />
@@ -19,7 +19,7 @@
:class="{ 'opacity-0': stripe.isGettingCheckoutLink }"
class="text-theme cursor-pointer text-sm font-bold"
>
{{ $t('Select') }}
{{ $t('select') }}
</span>
</PaymentMethod>
@@ -33,7 +33,7 @@
<PaymentMethod
@click.native="payByPayPal"
driver="paypal"
:description="$t('Available PayPal Credit, Debit or Credit Card.')"
:description="$t(config.paypal_payment_description)"
>
<div v-if="paypal.isMethodLoading" class="translate-y-3 scale-50 transform">
<Spinner />
@@ -43,7 +43,7 @@
:class="{ 'opacity-0': paypal.isMethodLoading }"
class="text-theme cursor-pointer text-sm font-bold"
>
{{ $t('Select') }}
{{ $t('select') }}
</span>
</PaymentMethod>
@@ -55,7 +55,7 @@
<PaymentMethod
v-if="config.isPaystack"
driver="paystack"
:description="$t('Available Bank Account, USSD, Mobile Money, Apple Pay')"
:description="$t(config.paystack_payment_description)"
>
<div v-if="paystack.isGettingCheckoutLink" class="translate-y-3 scale-50 transform">
<Spinner />
@@ -65,14 +65,14 @@
:class="{ 'opacity-0': paystack.isGettingCheckoutLink }"
class="text-theme cursor-pointer text-sm font-bold"
>
{{ $t('Select') }}
{{ $t('select') }}
</span>
</PaymentMethod>
</PopupContent>
<PopupActions>
<ButtonBase class="w-full" @click.native="$closePopup()" button-style="secondary">
{{ $t('Cancel Payment') }}
{{ $t('cancel_payment') }}
</ButtonBase>
</PopupActions>
</div>
@@ -110,7 +110,7 @@
v-if="plans && plans.data.length !== 0"
:button-style="buttonStyle"
@click.native="isPaymentOptionPage = true"
>{{ $t('Upgrade Account') }}
>{{ $t('upgrade_account') }}
</ButtonBase>
</PopupActions>
</div>
@@ -221,7 +221,7 @@ export default {
} catch (error) {
events.$emit('toaster', {
type: 'danger',
message: this.$t('Failed to load the PayPal service'),
message: this.$t('failed_to_load_paypal'),
})
}
@@ -266,7 +266,7 @@ export default {
events.$emit('toaster', {
type: 'success',
message: this.$t('Your payment was successfully received.'),
message: this.$t('payment_was_successfully_received'),
})
// todo: temporary reload function

View File

@@ -1,7 +1,7 @@
<template>
<div v-if="!hasPaymentMethod" class="card shadow-card">
<FormLabel icon="dollar">
{{ $t('Balance') }}
{{ $t('balance') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
@@ -25,7 +25,7 @@
>
<AppInputText
:description="
$t('The amount will be increased as soon as we register your charge from payment gateway.')
$t('amount_increase_description')
"
:error="errors[0]"
:is-last="true"
@@ -33,7 +33,7 @@
<div class="space-y-4 sm:flex sm:space-x-4 sm:space-y-0">
<input
v-model="chargeAmount"
:placeholder="$t('Fund Your Account Balance...')"
:placeholder="$t('fund_account_balance')"
type="number"
min="1"
max="999999999"
@@ -41,7 +41,7 @@
:class="{ '!border-rose-600': errors[0] }"
/>
<ButtonBase type="submit" button-style="theme" class="w-full sm:w-auto">
{{ $t('Make a Payment') }}
{{ $t('make_payment') }}
</ButtonBase>
</div>
</AppInputText>

View File

@@ -1,7 +1,7 @@
<template>
<div class="card shadow-card">
<FormLabel icon="bell">
{{ $t('Billing Alert') }}
{{ $t('billing_alert') }}
</FormLabel>
<div v-if="user.data.relationships.alert">
@@ -22,7 +22,7 @@
</b>
<b class="block text-sm dark:text-gray-500 text-gray-400">
{{ $t('Alert will be triggered after you reach the value above.') }}
{{ $t('billing_alert_description') }}
</b>
</div>
@@ -38,7 +38,7 @@
<AppInputText
:description="
$t(
'You will receive an email whenever your monthly balance reaches the specified amount above.'
'billing_alert_notes'
)
"
:error="errors[0]"
@@ -47,7 +47,7 @@
<div class="space-y-4 sm:flex sm:space-x-4 sm:space-y-0">
<input
v-model="billingAlertAmount"
:placeholder="$t('Alert Amount...')"
:placeholder="$t('alert_amount_')"
type="number"
min="1"
max="999999999"
@@ -61,7 +61,7 @@
button-style="theme"
class="w-full sm:w-auto"
>
{{ $t('Update Alert') }}
{{ $t('update_alert') }}
</ButtonBase>
</div>
</AppInputText>
@@ -80,7 +80,7 @@
<AppInputText
:description="
$t(
'You will receive an email whenever your monthly balance reaches the specified amount above.'
'billing_alert_notes'
)
"
:error="errors[0]"
@@ -89,7 +89,7 @@
<div class="space-y-4 sm:flex sm:space-x-4 sm:space-y-0">
<input
v-model="billingAlertAmount"
:placeholder="$t('Alert Amount...')"
:placeholder="$t('alert_amount_')"
type="number"
min="1"
max="999999999"
@@ -103,7 +103,7 @@
button-style="theme"
class="w-full sm:w-auto"
>
{{ $t('Set Alert') }}
{{ $t('set_alert') }}
</ButtonBase>
</div>
</AppInputText>
@@ -162,7 +162,7 @@ export default {
events.$emit('toaster', {
type: 'success',
message: this.$t('Your billing alert was updated successfully'),
message: this.$t('alert_updated'),
})
})
.catch(() => {
@@ -192,7 +192,7 @@ export default {
events.$emit('toaster', {
type: 'success',
message: this.$t('Your billing alert was set successfully'),
message: this.$t('alert_set_successfully'),
})
})
.catch(() => {
@@ -207,9 +207,9 @@ export default {
},
deleteBillingAlert() {
events.$emit('confirm:open', {
title: this.$t('Are you sure you want to delete your alert?'),
title: this.$t('want_to_delete_alert'),
message: this.$t(
'You will no longer receive any notifications that your billing limit has been exceeded.'
'want_to_delete_alert_description'
),
action: {
id: this.user.data.relationships.alert.data.id,
@@ -231,7 +231,7 @@ export default {
events.$emit('toaster', {
type: 'success',
message: this.$t('Your billing alert was deleted.'),
message: this.$t('deleted_alert'),
})
})
.catch(() => this.$isSomethingWrong())

View File

@@ -1,15 +1,15 @@
<template>
<div v-if="hasSubscription" class="card shadow-card">
<FormLabel>
{{ $t('Edit your Subscription') }}
{{ $t('edit_your_subscription') }}
</FormLabel>
<AppInputButton
v-if="subscription.attributes.status !== 'cancelled'"
:title="$t('Cancel Subscription')"
:title="$t('cancel_subscription')"
:description="
$t(
'You can cancel your subscription now. You\'ll continue to have access to the features you\'ve paid for until the end of your billing cycle.'
'cancel_subscription_description'
)
"
>
@@ -19,17 +19,17 @@
class="w-full sm:w-auto"
button-style="secondary"
>
{{ $t('Cancel Now') }}
{{ $t('cancel_now') }}
</ButtonBase>
</AppInputButton>
<AppInputButton
:title="$t('Upgrade or Downgrade Plan')"
:description="$t('You can upgrade your plan at any time you want.')"
:title="$t('upgrade_downgrade_plan')"
:description="$t('upgrade_downgrade_plan_description')"
:is-last="true"
>
<ButtonBase @click.native="$changeSubscriptionOptions" class="w-full sm:w-auto" button-style="secondary">
{{ $t('Change Plan') }}
{{ $t('change_plan') }}
</ButtonBase>
</AppInputButton>
</div>
@@ -69,7 +69,7 @@ export default {
methods: {
cancelSubscriptionConfirmation() {
events.$emit('confirm:open', {
title: this.$t('Are you sure you want to cancel subscription?'),
title: this.$t('want_cancel_subscription'),
message: this.$t(
"popup_subscription_cancel.message"
),

View File

@@ -1,15 +1,15 @@
<template>
<div v-if="!hasSubscription" 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 v-if="$store.getters.config.allowed_payments" class="mb-3 mb-8 block text-sm text-gray-400">
{{ $t('Upgrade your account to get more.') }}
{{ $t('upgrade_to_get_more') }}
</b>
<ButtonBase
@@ -19,7 +19,7 @@
button-style="theme"
class="mt-4 w-full"
>
{{ $t('Upgrade Your Account') }}
{{ $t('upgrade_your_account') }}
</ButtonBase>
</div>
</template>

View File

@@ -4,7 +4,7 @@
class="card shadow-card"
>
<FormLabel icon="frown">
{{ $t('Failed Payments') }}
{{ $t('failed_payments') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
@@ -14,7 +14,7 @@
<b class="mb-3 mb-5 block text-sm text-gray-400">
{{
$t(
"We are unable to charge your usage. Please register new credit card or fund your account with sufficient amount and we'll give it another try!"
"unable_to_charge"
)
}}
</b>

View File

@@ -1,7 +1,7 @@
<template>
<div v-if="hasSubscription" 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">
@@ -50,12 +50,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'),
},
}
@@ -75,14 +75,14 @@ export default {
},
status() {
return {
active: `Active until ${this.subscription.data.attributes.renews_at}`,
cancelled: `Ends at ${this.subscription.data.attributes.ends_at}`,
active: this.$t('active_until', {date: this.subscription.data.attributes.renews_at}),
cancelled: this.$t('ends_at_date', {date: this.subscription.data.attributes.ends_at}),
}[this.subscription.data.attributes.status]
},
price() {
return {
month: `${this.subscription.data.relationships.plan.data.attributes.price} Per Month`,
year: `${this.subscription.data.relationships.plan.data.attributes.price} Per Year`,
month: this.$t('price_per_month', {price: this.subscription.data.relationships.plan.data.attributes.price}),
year: this.$t('price_per_year', {price: this.subscription.data.relationships.plan.data.attributes.price}),
}[this.subscription.data.relationships.plan.data.attributes.interval]
},
},

View File

@@ -1,7 +1,7 @@
<template>
<div v-if="canShowForMeteredBilling || canShowForFixedBilling" class="card shadow-card">
<FormLabel icon="credit-card">
{{ $t('Payment Method') }}
{{ $t('payment_method') }}
</FormLabel>
<!-- User has registered payment method -->
@@ -23,7 +23,7 @@
<PaymentCard v-for="card in user.data.relationships.creditCards.data" :key="card.data.id" :card="card" />
<small class="hidden pt-3 text-xs leading-none dark:text-gray-500 text-gray-500 sm:block">
{{ $t('We are settling your payment automatically via your saved credit card.') }}
{{ $t('auto_settled_credit_card') }}
</small>
</div>
@@ -38,7 +38,7 @@
button-style="theme"
class="mt-4 w-full"
>
{{ $t('Add Payment Method') }}
{{ $t('add_payment_method') }}
</ButtonBase>
<!-- Store credit card form -->
@@ -59,7 +59,7 @@
button-style="theme"
class="mt-4 w-full"
>
{{ $t('Store My Credit Card') }}
{{ $t('store_my_credit_card') }}
</ButtonBase>
<div id="error-message" class="pt-2 text-xs text-rose-600">
<!-- Display error message to your customers here -->
@@ -124,7 +124,7 @@ export default {
if (this.config.isDemo && this.user.data.attributes.email === 'ho**@hi5ve.digital') {
events.$emit('toaster', {
type: 'success',
message: this.$t('Your credit card was stored successfully'),
message: this.$t('credit_card_stored'),
})
return
@@ -153,7 +153,7 @@ export default {
// site first to authorize the payment, then redirected to the `return_url`.
events.$emit('toaster', {
type: 'success',
message: this.$t('Your credit card was stored successfully'),
message: this.$t('credit_card_stored'),
})
// TODO: L9 - load credit card after was stored in database

View File

@@ -1,7 +1,7 @@
<template>
<div class="card shadow-card">
<FormLabel icon="file-text">
{{ $t('Transactions') }}
{{ $t('transactions') }}
</FormLabel>
<DatatableWrapper

View File

@@ -1,7 +1,7 @@
<template>
<div class="card shadow-card">
<FormLabel icon="file-text">
{{ $t('Transactions') }}
{{ $t('transactions') }}
</FormLabel>
<DatatableWrapper class="overflow-x-auto" api="/api/user/transactions" :paginator="true" :columns="columns">

View File

@@ -1,12 +1,12 @@
<template>
<div v-if="canShowForSubscription" class="card shadow-card">
<FormLabel>
{{ $t('Update Payments') }}
{{ $t('update_payments') }}
</FormLabel>
<AppInputButton
:title="$t('Update your Payment Method')"
:description="$t('You will be redirected to your payment provider to edit your payment method.')"
:title="$t('update_payment_method')"
:description="$t('payment_method_update_redirect_description')"
:is-last="true"
>
<ButtonBase
@@ -15,7 +15,7 @@
class="w-full sm:w-auto"
button-style="theme"
>
{{ $t('Update Payments') }}
{{ $t('update_payments') }}
</ButtonBase>
</AppInputButton>
</div>

View File

@@ -1,7 +1,7 @@
<template>
<div class="card shadow-card">
<FormLabel icon="bar-chart">
{{ $t('Usage Estimates') }}
{{ $t('usage_estimates') }}
</FormLabel>
<b class="-mt-3 mb-0.5 block text-2xl font-extrabold sm:text-3xl">
@@ -10,7 +10,7 @@
<b class="mb-3 mb-5 block text-sm dark:text-gray-500 text-gray-400">
{{ user.data.relationships.subscription.data.attributes.updated_at }}
{{ $t('till now') }}
{{ $t('till_now') }}
</b>
<div
@@ -39,7 +39,7 @@
</div>
<small class="mt-6 block font-bold">
{{ $t('Records are updated on daily bases.') }}
{{ $t('records_updated_daily_bases') }}
</small>
</div>
</template>