translations update

This commit is contained in:
carodej
2020-07-10 17:05:30 +02:00
parent 5bd6455f7f
commit 3c3a18cf6b
29 changed files with 503 additions and 267 deletions
+7 -16
View File
@@ -1,7 +1,7 @@
<template>
<PageTab :is-loading="isLoading">
<PageTabGroup v-if="invoices && invoices.length > 0">
<FormLabel>Invoices</FormLabel>
<FormLabel>{{ $t('user_invoices.title') }}</FormLabel>
<DatatableWrapper :paginator="true" :columns="columns" :data="invoices" class="table">
<template scope="{ row }">
<tr>
@@ -37,7 +37,7 @@
</DatatableWrapper>
</PageTabGroup>
<InfoBox v-else>
<p>You don't have any invoices yet.</p>
<p>{{ $t('user_invoices.empty') }}</p>
</InfoBox>
</PageTab>
</template>
@@ -48,7 +48,7 @@
import FormLabel from '@/components/Others/Forms/FormLabel'
import PageTab from '@/components/Others/Layout/PageTab'
import InfoBox from '@/components/Others/Forms/InfoBox'
import {ExternalLinkIcon} from "vue-feather-icons";
import {ExternalLinkIcon} from "vue-feather-icons"
import axios from 'axios'
export default {
@@ -67,22 +67,22 @@
invoices: undefined,
columns: [
{
label: 'Invoice Number',
label: this.$t('rows.invoice.number'),
field: 'data.attributes.order',
sortable: true
},
{
label: 'Total',
label: this.$t('rows.invoice.total'),
field: 'data.attributes.bag.amount',
sortable: true
},
{
label: 'Plan',
label: this.$t('rows.invoice.plan'),
field: 'data.attributes.bag.amount',
sortable: true
},
{
label: 'Payed',
label: this.$t('rows.invoice.payed'),
field: 'data.attributes.created_at',
sortable: true
},
@@ -112,13 +112,4 @@
max-width: 100%;
}
@media only screen and (max-width: 960px) {
}
@media (prefers-color-scheme: dark) {
}
</style>
+1 -1
View File
@@ -2,7 +2,7 @@
<PageTab>
<PageTabGroup>
<ValidationObserver ref="password" @submit.prevent="resetPassword" v-slot="{ invalid }" tag="form" class="form block-form">
<FormLabel>Change Your Password</FormLabel>
<FormLabel>{{ $t('user_password.title') }}</FormLabel>
<div class="block-wrapper">
<label>{{ $t('page_create_password.label_new_pass') }}:</label>
<ValidationProvider tag="div" mode="passive" class="input-wrapper" name="New Password"
+18 -18
View File
@@ -1,7 +1,7 @@
<template>
<PageTab :is-loading="isLoading">
<PageTabGroup v-if="PaymentMethods && PaymentMethods.length > 0">
<FormLabel>Payment Methods</FormLabel>
<FormLabel>{{ $t('user_payments.title') }}</FormLabel>
<DatatableWrapper :paginator="true" :columns="columns" :data="PaymentMethods" class="table">
<template scope="{ row }">
<tr :class="{'is-deleting': row.data.attributes.card_id === deletingID}">
@@ -13,15 +13,15 @@
<div class="credit-card-numbers">
{{ row.data.attributes.last4 }}
</div>
<ColorLabel v-if="row.data.id === defaultPaymentCard.data.id" color="purple">Default</ColorLabel>
<ColorLabel v-if="row.data.id === defaultPaymentCard.data.id" color="purple">{{ $t('global.default') }}</ColorLabel>
</div>
</span>
</td>
<td>
<!--<td>
<span class="cell-item">
<ColorLabel :color="getCardStatusColor(row.data.attributes.status)">{{ getCardStatus(row.data.attributes.status) }}</ColorLabel>
</span>
</td>
</td>-->
<td>
<span class="cell-item">
{{ row.data.attributes.exp_month }} / {{ row.data.attributes.exp_year }}
@@ -29,8 +29,8 @@
</td>
<td>
<div class="action-icons">
<credit-card-icon size="15" class="icon icon-card" title="Set as default card" @click="setDefaultCard(row.data.attributes)" v-if="row.data.id !== defaultPaymentCard.data.id"></credit-card-icon>
<trash2-icon size="15" class="icon icon-trash" title="Delete card" @click="deleteCard(row.data.attributes)"></trash2-icon>
<credit-card-icon size="15" class="icon icon-card" :title="$t('user_payments.set_as_default')" @click="setDefaultCard(row.data.attributes)" v-if="row.data.id !== defaultPaymentCard.data.id"></credit-card-icon>
<trash2-icon size="15" class="icon icon-trash" :title="$t('user_payments.delete_card')" @click="deleteCard(row.data.attributes)"></trash2-icon>
</div>
</td>
</tr>
@@ -38,7 +38,7 @@
</DatatableWrapper>
</PageTabGroup>
<InfoBox v-else>
<p>You don't have any payment cards yet.</p>
<p>{{ $t('user_payments.empty') }}</p>
</InfoBox>
</PageTab>
</template>
@@ -73,17 +73,17 @@
deletingID: undefined,
columns: [
{
label: 'Card Number',
label: this.$t('rows.card.number'),
field: 'data.attributes.total',
sortable: true
},
{
label: 'Status',
/*{
label: this.$t('rows.card.status'),
field: 'data.attributes.status',
sortable: true
},
},*/
{
label: 'Expiration Date',
label: this.$t('rows.card.expiration'),
field: 'data.attributes.total',
sortable: true
},
@@ -125,8 +125,8 @@
},
setDefaultCard(card) {
events.$emit('confirm:open', {
title: 'Set as default card?',
message: 'Your card will be set as default and will be always charged for the next billings.',
title: this.$t('popup_set_card.title'),
message: this.$t('popup_set_card.message'),
buttonColor: 'theme-solid',
action: {
id: card.card_id,
@@ -136,8 +136,8 @@
},
deleteCard(card) {
events.$emit('confirm:open', {
title: 'Are you sure?',
message: 'This event is irreversible and your payment card will be delete forever',
title: this.$t('popup_set_card.'),
message: this.$t('popup_set_card.'),
action: {
id: card.card_id,
operation: 'delete-credit-card'
@@ -185,7 +185,7 @@
// Show toaster
events.$emit('toaster', {
type: 'success',
message: 'Your card was successfully deleted.',
message: this.$t('toaster.card_deleted'),
})
})
.catch(error => {
@@ -206,7 +206,7 @@
// Show toaster
events.$emit('toaster', {
type: 'success',
message: 'Your card was successfully set as default.',
message: this.$t('toaster.card_set'),
})
})
.catch(error => {
+16 -24
View File
@@ -2,7 +2,7 @@
<PageTab>
<PageTabGroup v-if="userInfo">
<div class="form block-form">
<FormLabel>Account Information</FormLabel>
<FormLabel>{{ $t('user_settings.title_account') }}</FormLabel>
<div class="block-wrapper">
<label>{{ $t('page_registration.label_email') }}</label>
<div class="input-wrapper">
@@ -27,75 +27,75 @@
</PageTabGroup>
<PageTabGroup v-if="config.isSaaS && billingInfo">
<div class="form block-form">
<FormLabel>Billing Information</FormLabel>
<FormLabel>{{ $t('user_settings.title_billing') }}</FormLabel>
<div class="block-wrapper">
<label>Name:</label>
<label>{{ $t('user_settings.name') }}:</label>
<div class="input-wrapper">
<input @keyup="$updateText('/user/relationships/settings', 'billing_name', billingInfo.billing_name)"
v-model="billingInfo.billing_name"
placeholder="Type your billing name"
:placeholder="$t('user_settings.name_plac')"
type="text"
/>
</div>
</div>
<div class="block-wrapper">
<label>Address:</label>
<label>{{ $t('user_settings.address') }}:</label>
<div class="input-wrapper">
<input @keyup="$updateText('/user/relationships/settings', 'billing_address', billingInfo.billing_address)"
v-model="billingInfo.billing_address"
placeholder="Type your billing address"
:placeholder="$t('user_settings.address_plac')"
type="text"
/>
</div>
</div>
<div class="block-wrapper">
<label>State:</label>
<label>{{ $t('user_settings.state') }}:</label>
<div class="input-wrapper">
<input @keyup="$updateText('/user/relationships/settings', 'billing_state', billingInfo.billing_state)"
v-model="billingInfo.billing_state"
placeholder="Type your billing state"
:placeholder="$t('user_settings.state_plac')"
type="text"
/>
</div>
</div>
<div class="wrapper-inline">
<div class="block-wrapper">
<label>City:</label>
<label>{{ $t('user_settings.city') }}:</label>
<div class="input-wrapper">
<input @keyup="$updateText('/user/relationships/settings', 'billing_city', billingInfo.billing_city)"
v-model="billingInfo.billing_city"
placeholder="Type your billing city"
:placeholder="$t('user_settings.city_plac')"
type="text"
/>
</div>
</div>
<div class="block-wrapper">
<label>Postal Code:</label>
<label>{{ $t('user_settings.postal_code') }}:</label>
<div class="input-wrapper">
<input @keyup="$updateText('/user/relationships/settings', 'billing_postal_code', billingInfo.billing_postal_code)"
v-model="billingInfo.billing_postal_code"
placeholder="Type your billing postal code"
:placeholder="$t('user_settings.postal_code_plac')"
type="text"
/>
</div>
</div>
</div>
<div class="block-wrapper">
<label>Country:</label>
<label>{{ $t('user_settings.country') }}:</label>
<div class="input-wrapper">
<input @keyup="$updateText('/user/relationships/settings', 'billing_country', billingInfo.billing_country)"
v-model="billingInfo.billing_country"
placeholder="Type your billing country"
:placeholder="$t('user_settings.country_plac')"
type="text"
/>
</div>
</div>
<div class="block-wrapper">
<label>Phone Number:</label>
<label>{{ $t('user_settings.phone_number') }}:</label>
<div class="input-wrapper">
<input @keyup="$updateText('/user/relationships/settings', 'billing_phone_number', billingInfo.billing_phone_number)"
v-model="billingInfo.billing_phone_number"
placeholder="Type your billing phone number"
:placeholder="$t('user_settings.phone_number_plac')"
type="text"
/>
</div>
@@ -180,12 +180,4 @@
max-width: 100%;
}
@media only screen and (max-width: 960px) {
}
@media (prefers-color-scheme: dark) {
}
</style>
+1 -1
View File
@@ -1,7 +1,7 @@
<template>
<PageTab v-if="storage">
<PageTabGroup>
<FormLabel>Your disk Usage</FormLabel>
<FormLabel>{{ $t('storage.sec_capacity') }}</FormLabel>
<StorageItemDetail type="disk" :title="$t('storage.total_used', {used: storage.attributes.used})" :percentage="storage.attributes.percentage" :used="$t('storage.total_capacity', {capacity: storage.attributes.capacity})"/>
</PageTabGroup>
<PageTabGroup>
+23 -21
View File
@@ -1,16 +1,18 @@
<template>
<PageTab :is-loading="isLoading">
<PageTabGroup v-if="subscription">
<FormLabel>Subscription Plan</FormLabel>
<FormLabel>
{{ $t('user_subscription.title') }}
</FormLabel>
<!--Info about active subscription-->
<div v-if="! subscription.data.attributes.canceled" class="state active">
<ListInfo class="list-info">
<ListInfoItem class="list-item" title="Plan" :content="subscription.data.attributes.name + ' - ' + subscription.data.attributes.capacity_formatted"/>
<ListInfoItem class="list-item" title="Billed" content="Monthly"/>
<ListInfoItem class="list-item" title="Status" :content="status"/>
<ListInfoItem class="list-item" title="Created At" :content="subscription.data.attributes.created_at"/>
<ListInfoItem class="list-item" title="Renews At" :content="subscription.data.attributes.ends_at"/>
<ListInfoItem class="list-item" :title="$t('user_subscription.plan')" :content="subscription.data.attributes.name + ' - ' + subscription.data.attributes.capacity_formatted"/>
<ListInfoItem class="list-item" :title="$t('user_subscription.billed')" content="Monthly"/>
<ListInfoItem class="list-item" :title="$t('user_subscription.status')" :content="status"/>
<ListInfoItem class="list-item" :title="$t('user_subscription.created_at')" :content="subscription.data.attributes.created_at"/>
<ListInfoItem class="list-item" :title="$t('user_subscription.renews_at')" :content="subscription.data.attributes.ends_at"/>
</ListInfo>
<div class="plan-action">
<ButtonBase
@@ -26,10 +28,10 @@
<!--Info about canceled subscription-->
<div v-if="subscription.data.attributes.canceled" class="state canceled">
<ListInfo class="list-info">
<ListInfoItem class="list-item" title="Plan" :content="subscription.data.attributes.name"/>
<ListInfoItem class="list-item" title="Status" :content="status"/>
<ListInfoItem class="list-item" title="Canceled At" :content="subscription.data.attributes.canceled_at"/>
<ListInfoItem class="list-item" title="Ends At" :content="subscription.data.attributes.ends_at"/>
<ListInfoItem class="list-item" :title="$t('user_subscription.plan')" :content="subscription.data.attributes.name"/>
<ListInfoItem class="list-item" :title="$t('user_subscription.status')" :content="status"/>
<ListInfoItem class="list-item" :title="$t('user_subscription.canceled_at')" :content="subscription.data.attributes.canceled_at"/>
<ListInfoItem class="list-item" :title="$t('user_subscription.ends_at')" :content="subscription.data.attributes.ends_at"/>
</ListInfo>
<div class="plan-action">
<ButtonBase
@@ -43,7 +45,7 @@
</div>
</PageTabGroup>
<InfoBox v-else>
<p>You don't have any subscription yet.</p>
<p>{{ $t('user_subscription.empty') }}</p>
</InfoBox>
</PageTab>
</template>
@@ -77,23 +79,23 @@
},
computed: {
cancelButtonText() {
return this.isConfirmedCancel ? this.$t('popup_share_edit.confirm') : 'Cancel Plan'
return this.isConfirmedCancel ? this.$t('popup_share_edit.confirm') : this.$t('user_subscription.cancel_plan')
},
cancelButtonStyle() {
return this.isConfirmedCancel ? 'danger-solid' : 'secondary'
},
resumeButtonText() {
return this.isConfirmedResume ? this.$t('popup_share_edit.confirm') : 'Resume Plan'
return this.isConfirmedResume ? this.$t('popup_share_edit.confirm') : this.$t('user_subscription.resume_plan')
},
resumeButtonStyle() {
return this.isConfirmedResume ? 'theme-solid' : 'secondary'
},
status() {
if (this.subscription.data.attributes.canceled) {
return 'Canceled'
return this.$t('global.canceled')
}
if (this.subscription.data.attributes.active) {
return 'Active'
return this.$t('global.active')
}
}
},
@@ -135,10 +137,10 @@
events.$emit('alert:open', {
emoji: '👍',
title: 'Subscription Was Canceled',
message: 'You\'ll continue to have access to the features you\'ve paid for until the end of your billing cycle.',
title: this.$t('popup_subscription_cancel.title'),
message: this.$t('popup_subscription_cancel.message'),
buttonStyle: 'theme',
button: 'I\'m done'
button: this.$t('popup_subscription_cancel.button')
})
})
.catch(() => {
@@ -176,10 +178,10 @@
events.$emit('alert:open', {
emoji: '👍',
title: 'Subscription Was Resumed',
message: 'Your subscription was re-activated, and they will be billed on the original billing cycle.',
title: this.$t('popup_subscription_cancel.title'),
message: this.$t('popup_subscription_cancel.message'),
buttonStyle: 'theme',
button: 'That\'s awesome!'
button: this.$t('popup_subscription_cancel.button')
})
})
.catch(() => {