Skip to content

Commit 6fcecdb

Browse files
committed
Translated role pages
1 parent 8019c3f commit 6fcecdb

File tree

3 files changed

+51
-18
lines changed

3 files changed

+51
-18
lines changed

script/script.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,59 +11,59 @@ const gysClient = axios.create({
1111
const COMPONENTS = [
1212
{
1313
componentName: "AdvertInformation",
14-
label: "Gayrimenkul > İlanlar"
14+
label: "page.advertInformation"
1515
},
1616
{
1717
componentName: "RealEstateBasicInformation",
18-
label: "Gayrimenkul > Temel Bilgiler"
18+
label: "page.realEstateBasicInformation"
1919
},
2020
{
2121
componentName: "RealEstatePhoto",
22-
label: "Gayrimenkul > Fotoğraflar"
22+
label: "page.realEstatePhoto"
2323
},
2424
{
2525
componentName: "RealEstateListView",
26-
label: "Gayrimenkuller"
26+
label: "page.realEstateListView"
2727
},
2828
{
2929
componentName: "CategoryView",
30-
label: "Sistem Tanımları > Kategoriler"
30+
label: "page.categoryView"
3131
},
3232
{
3333
componentName: "AttributeView",
34-
label: "Sistem Tanımları > Özellikler"
34+
label: "page.attributeView"
3535
},
3636
{
3737
componentName: "AdvertPlaceView",
38-
label: "Sistem Tanımları > İlan Yerleri"
38+
label: "page.advertPlaceView"
3939
},
4040
{
4141
componentName: "RoleView",
42-
label: "Güvenlik > Rol Mekanizması"
42+
label: "page.roleView"
4343
},
4444
{
4545
componentName: "StaffView",
46-
label: "Kullanıcı Yönetimi > Alt Kullanıcı"
46+
label: "page.staffView"
4747
},
4848
{
4949
componentName: "TenantView",
50-
label: "Kullanıcı Yönetimi > Kiracılar"
50+
label: "page.tenantView"
5151
},
5252
{
5353
componentName: "RentalContractInformation",
54-
label: "Gayrimenkul > Sözleşmeler"
54+
label: "page.rentalContractInformation"
5555
},
5656
{
5757
componentName: "PaymentDeclarationStaffView",
58-
label: "Ödeme İşlemleri > Ödeme Beyanları"
58+
label: "page.paymentDeclarationStaffView"
5959
},
6060
{
6161
componentName: "DashboardStaffView",
62-
label: "Dashboard"
62+
label: "page.dashboardStaffView"
6363
},
6464
{
6565
componentName: "RentPaymentPlanInformation",
66-
label: "Gayrimenkul > Sözleşmeler > Kira Ödeme Planı"
66+
label: "page.rentPaymentPlanInformation"
6767
}
6868
]
6969

src/i18n/index.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ const messages = {
55
// TR
66

77
tr: {
8+
page: {
9+
advertInformation: "Gayrimenkul > İlanlar",
10+
realEstateBasicInformation: "Gayrimenkul > Temel Bilgiler",
11+
realEstatePhoto: "Gayrimenkul > Fotoğraflar",
12+
realEstateListView: "Gayrimenkuller",
13+
categoryView: "Sistem Tanımları > Kategoriler",
14+
attributeView: "Sistem Tanımları > Özellikler",
15+
advertPlaceView: "Sistem Tanımları > İlan Yerleri",
16+
roleView: "Güvenlik > Rol",
17+
staffView: "Kullanıcı Yönetimi > Alt Kullanıcılar",
18+
tenantView: "Kullanıcı Yönetimi > Kiracılar",
19+
rentalContractInformation: "Gayrimenkul > Sözleşmeler",
20+
paymentDeclarationStaffView: "Ödeme İşlemleri > Ödeme Beyanları",
21+
dashboardStaffView: "Dashboard",
22+
rentPaymentPlanInformation: "Gayrimenkul > Sözleşmeler > Kira Ödeme Planı"
23+
24+
},
825
enum: {
926
invoiceType: {
1027
rentPayment: "Kira Faturası"
@@ -327,6 +344,22 @@ const messages = {
327344
// EN
328345

329346
en: {
347+
page: {
348+
advertInformation: "Real Estate > Adverts",
349+
realEstateBasicInformation: "Real Estate > Basic Information",
350+
realEstatePhoto: "Real Estate > Photos",
351+
realEstateListView: "Real Estates",
352+
categoryView: "System Definitions > Categories",
353+
attributeView: "System Definitions > Attributes",
354+
advertPlaceView: "System Definitions > Advert Places",
355+
roleView: "Security > Role",
356+
staffView: "User Management > Sub Users",
357+
tenantView: "User Management > Tenants",
358+
rentalContractInformation: "Real Estates > Contracts",
359+
paymentDeclarationStaffView: "Payment Management > Payment Declarations",
360+
dashboardStaffView: "Dashboard",
361+
rentPaymentPlanInformation: "Real Estate > Contract > Rent Payment Plan"
362+
},
330363
enum: {
331364
invoiceType: {
332365
rentPayment: "Rent Payment"

src/views/RoleView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<th></th>
105105
</tr>
106106
<tr v-for="(uiElement, index) in uiElements" :key="index">
107-
<td>{{ uiElement.label }}</td>
107+
<td>{{ $t(uiElement.label) }}</td>
108108
<td>
109109
<Checkbox
110110
v-model="role.selectedUIElements"
@@ -130,7 +130,7 @@
130130
v-for="(uiElement, index) in role.selectedUIElements"
131131
:key="index"
132132
>
133-
<td>{{ uiElement.label }}</td>
133+
<td>{{$t(uiElement.label) }}</td>
134134
<td></td>
135135
</tr>
136136
</table>
@@ -181,7 +181,7 @@
181181
<th></th>
182182
</tr>
183183
<tr v-for="(uiElement, index) in uiElements" :key="index">
184-
<td>{{ uiElement.label }}</td>
184+
<td>{{ $t(uiElement.label) }}</td>
185185
<td>
186186
<Checkbox
187187
v-model="role.selectedUIElements"
@@ -207,7 +207,7 @@
207207
v-for="(uiElement, index) in role.selectedUIElements"
208208
:key="index"
209209
>
210-
<td>{{ uiElement.label }}</td>
210+
<td>{{ $t(uiElement.label) }}</td>
211211
<td></td>
212212
</tr>
213213
</table>

0 commit comments

Comments
 (0)