Skip to content

Commit 6b2e628

Browse files
committed
Translation update
1 parent 3e9bfaa commit 6b2e628

File tree

11 files changed

+86
-16
lines changed

11 files changed

+86
-16
lines changed

resources/js/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ app.use(i18n)
1717
app.use(stores)
1818
app.use(router)
1919

20+
console.log(lang)
21+
2022
/*
2123
2224
// Glogal variable provide/inject composition api
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
.label-color .input-group label {
22
color: var(--label-primary) !important;
33
}
4+
5+
a:hover,
6+
button {
7+
cursor: pointer !important;
8+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const account = {
2+
'Update your account details here.': 'Update your account details here.',
3+
}
4+
5+
export default account
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
const account = {
2+
'Update your account details here.': 'Zmiana ustawień konta.',
3+
'Change account email': 'Zmiana adresu email konta',
4+
'Email address': 'Adres email',
5+
'Two factor authentication': 'Uwierzytelnianie dwuskładnikowe',
6+
'Go to admin panel': 'Panel admnistratora',
7+
Disabled: 'Wyłączone',
8+
Enabled: 'Włączone',
9+
'Current password': 'Aktualne hasło',
10+
Update: 'Zaktualizuj',
11+
'Select image': 'Wybierz zdjęcie',
12+
'Update your profile details here.': 'Zaktualizuj dane swojego profilu tutaj.',
13+
Details: 'Szczegóły',
14+
Orders: 'Zamówienia',
15+
'Edit Profil': 'Edytuj Profil',
16+
Name: 'Imię',
17+
'Enter name': 'Podaj Imię',
18+
Username: 'Nazwa użytkownika',
19+
'Enter username': 'Podaj nazwę użytkownika',
20+
Location: 'Lokalizacja',
21+
'Enter location': 'Podaj lokalizację',
22+
Bio: 'Opis',
23+
'Enter bio': 'Podaj opis',
24+
Password: 'Zmiana hasła',
25+
'Here you can change your password.': 'Tutaj możesz zmienić swoje hasło.',
26+
'Change password': 'Zmiana hasła',
27+
'New password': 'Nowe hasło',
28+
'Confirm password': 'Potwierdź hasło',
29+
Address: 'Adres',
30+
'Enter address': 'Podaj adres',
31+
'Update your address details.': 'Zaktualizuj swoje dane adresowe.',
32+
'Home address': 'Adres domowy',
33+
Country: 'Kraj',
34+
'Enter country': 'Podaj kraj',
35+
City: 'Miasto',
36+
'Enter city': 'Podaj miasto',
37+
State: 'Województwo',
38+
'Enter state': 'Podaj województwo',
39+
Street: 'Ulica',
40+
'Enter street': 'Podaj ulica numer domu i/lub mieszkania',
41+
'Postal code': 'Kod pocztowy',
42+
'Enter postal code': 'Podaj kod pocztowy',
43+
'You can delete your account here.': 'Tutaj możesz usunąć swoje konto.',
44+
'Delete Account': 'Usuń konto',
45+
'Delete Account Now!': 'Usuń moje konto',
46+
'Your account and all your data will be deleted.': 'Twoje konto i wszystkie Twoje dane zostaną usunięte.',
47+
'Enter current password': 'Podaj aktualne hasło',
48+
'Enter new password': 'Podaj nowe hasło',
49+
'Enter new password again': 'Podaj nowe hasło powtórnie',
50+
'Enter email address': 'Podaj adres email',
51+
}
52+
53+
export default account

resources/js/atomjoy/panel/client/pages/Account/AccountPage.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { onBeforeMount, ref } from 'vue'
1010
1111
const auth = useAuthStore()
1212
let user = auth.getUser
13-
let password_current = ref('')
1413
1514
onBeforeMount(() => {
1615
auth.clearError()
@@ -39,15 +38,15 @@ function onSubmitF2a(e) {
3938

4039
<form @submit.prevent="onSubmitEmail" method="post" class="label-color">
4140
<TitleH2 :title="$t('Change account email')" />
42-
<Input name="email" :label="$t('Email address')" v-model="user.email" />
41+
<Input name="email" :label="$t('Email address')" v-model="user.email" :placeholder="$t('Enter email address')" />
4342
<Button :text="$t('Update')" />
4443
</form>
4544

4645
<form @submit.prevent="onSubmitF2a" method="post" class="label-color">
4746
<TitleH2 :title="$t('Two factor authentication')" />
4847
<div v-if="user.f2a == 1" class="f2a-enabled">{{ $t('Enabled') }}</div>
4948
<div v-if="user.f2a == 0" class="f2a-disabled">{{ $t('Disabled') }}</div>
50-
<Password name="password_current" :label="$t('Current password')" v-model="password_current" />
49+
<Password name="password_current" :label="$t('Current password')" :placeholder="$t('Enter current password')" />
5150
<Button :text="$t('Update')" />
5251
</form>
5352
</template>

resources/js/atomjoy/panel/client/pages/Address/AddressPage.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ function onSubmitDetails(e) {
2727

2828
<form @submit.prevent="onSubmitDetails" method="post" class="label-color">
2929
<TitleH2 :title="$t('Home address')" />
30-
<Input name="country" :label="$t('Country')" v-model="user.address.country" />
31-
<Input name="state" :label="$t('State')" v-model="user.address.state" />
32-
<Input name="city" :label="$t('City')" v-model="user.address.city" />
33-
<Input name="street" :label="$t('Street')" v-model="user.address.street" />
34-
<Input name="postal_code" :label="$t('Postal code')" v-model="user.address.postal_code" />
30+
<Input name="country" :label="$t('Country')" v-model="user.address.country" :placeholder="$t('Enter country')" />
31+
<Input name="state" :label="$t('State')" v-model="user.address.state" :placeholder="$t('Enter state')" />
32+
<Input name="city" :label="$t('City')" v-model="user.address.city" :placeholder="$t('Enter city')" />
33+
<Input name="street" :label="$t('Street')" v-model="user.address.street" :placeholder="$t('Enter street')" />
34+
<Input name="postal_code" :label="$t('Postal code')" v-model="user.address.postal_code" :placeholder="$t('Enter postal code')" />
3535
<Button :text="$t('Update')" />
3636
</form>
3737
</template>

resources/js/atomjoy/panel/client/pages/Password/PasswordPage.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ function onSubmit(e) {
2929

3030
<form @submit.prevent="onSubmit" method="post" class="label-color">
3131
<TitleH2 :title="$t('Change password')" />
32-
<Password name="password_current" :label="$t('Current password')" v-model="password_current" />
33-
<Password name="password" :label="$t('New password')" v-model="password" />
34-
<Password name="password_confirmation" :label="$t('Confirm password')" v-model="password_confirmation" />
32+
<Password name="password_current" :label="$t('Current password')" v-model="password_current" :placeholder="$t('Enter current password')" />
33+
<Password name="password" :label="$t('New password')" v-model="password" :placeholder="$t('Enter new password')" />
34+
<Password name="password_confirmation" :label="$t('Confirm password')" v-model="password_confirmation" :placeholder="$t('Enter new password again')" />
3535
<Button :text="$t('Update')" />
3636
</form>
3737
</template>

resources/js/atomjoy/panel/client/pages/Profil/ProfilPage.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ function onSubmitDetails(e) {
4646

4747
<form @submit.prevent="onSubmitDetails" method="post" class="label-color">
4848
<TitleH2 :title="$t('Details')" />
49-
<Input name="name" :label="$t('Name')" v-model="user.profile.name" />
50-
<Input name="username" :label="$t('Username')" v-model="user.profile.username" />
51-
<Input name="location" :label="$t('Location')" v-model="user.profile.location" />
52-
<Textarea name="bio" :label="$t('Bio')" v-model="user.profile.bio" />
49+
<Input name="name" :label="$t('Name')" v-model="user.profile.name" :placeholder="$t('Enter name')" />
50+
<Input name="username" :label="$t('Username')" v-model="user.profile.username" :placeholder="$t('Enter username')" />
51+
<Input name="location" :label="$t('Location')" v-model="user.profile.location" :placeholder="$t('Enter location')" />
52+
<Textarea name="bio" :label="$t('Bio')" v-model="user.profile.bio" :placeholder="$t('Enter bio')" />
5353
<Button :text="$t('Update')" />
5454
</form>
5555
</template>

resources/js/atomjoy/panel/client/slots/NavbarSlot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const open = ref(false)
1919

2020
<slot name="footer">
2121
<div class="footer-links">
22-
<RouterLink to="/admin/panel" class="link-admin-dashboard"> Go to admin panel </RouterLink>
22+
<RouterLink to="/admin/panel" class="link-admin-dashboard"> {{ $t('Go to admin panel') }} </RouterLink>
2323
</div>
2424
</slot>
2525
</div>

resources/js/lang/lang_en.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import account from '../atomjoy/panel/client/lang/account_en.js'
2+
13
const en = {
24
en: 'English',
35
pl: 'Polish',
@@ -188,6 +190,7 @@ const en = {
188190
'Authenticated.': 'Authenticated.',
189191
'Unauthenticated.': 'Unauthenticated.',
190192
'Ups! Invalid data.': 'Ups! Invalid data.',
193+
...account,
191194
}
192195

193196
export default en

0 commit comments

Comments
 (0)