@crm-market/template-shared 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/components/AddAddress/index.vue +10 -12
  2. package/components/Cart/index.vue +15 -17
  3. package/components/ChangePassword/index.vue +11 -13
  4. package/components/Checkout/index.vue +35 -37
  5. package/components/Common/DashboardNavigation.vue +11 -13
  6. package/components/Common/PageBanner.vue +4 -6
  7. package/components/Common/ProductCard.vue +38 -52
  8. package/components/Common/Services.vue +10 -12
  9. package/components/Contact/ContactForm.vue +13 -18
  10. package/components/Dashboard/index.vue +8 -10
  11. package/components/EditAddress/index.vue +14 -16
  12. package/components/EditProfile/index.vue +10 -12
  13. package/components/ForgotPassword/index.vue +7 -9
  14. package/components/Layout/Copyright.vue +3 -5
  15. package/components/Layout/Footer.vue +36 -51
  16. package/components/Layout/FooterTwo.vue +34 -40
  17. package/components/Layout/MiddleHeader.vue +11 -9
  18. package/components/Layout/MiddleHeaderThree.vue +7 -5
  19. package/components/Layout/MiddleHeaderTwo.vue +9 -7
  20. package/components/Layout/Navbar.vue +10 -8
  21. package/components/Layout/NavbarStyleThree.vue +10 -8
  22. package/components/Layout/NavbarStyleTwo.vue +8 -6
  23. package/components/Layout/ResponsiveNavbar.vue +40 -38
  24. package/components/Layout/TopHeader.vue +30 -63
  25. package/components/Login/index.vue +14 -19
  26. package/components/MyAccount/index.vue +31 -31
  27. package/components/OrderDetails/index.vue +16 -18
  28. package/components/OrderHistory/index.vue +13 -15
  29. package/components/ProductDetails/index.vue +17 -15
  30. package/components/Products/RecentlyViewed.vue +12 -14
  31. package/components/Products/index.vue +20 -18
  32. package/components/Register/index.vue +14 -19
  33. package/components/Wishlist/index.vue +12 -14
  34. package/composables/useCategories.ts +2 -0
  35. package/composables/useCheckout.ts +3 -0
  36. package/composables/useI18n.ts +114 -0
  37. package/composables/useProducts.ts +2 -0
  38. package/composables/useSiteConfig.ts +1 -0
  39. package/composables/useTemplateSections.ts +2 -1
  40. package/locales/ar.json +234 -0
  41. package/locales/en.json +234 -0
  42. package/locales/ru.json +234 -0
  43. package/locales/uk.json +234 -0
  44. package/modules/auto-imports.ts +20 -0
  45. package/nuxt.config.ts +3 -11
  46. package/package.json +8 -6
  47. package/pages/about-us.vue +2 -1
  48. package/pages/address.vue +2 -1
  49. package/pages/cart.vue +2 -1
  50. package/pages/categories.vue +2 -1
  51. package/pages/change-password.vue +2 -1
  52. package/pages/checkout.vue +2 -1
  53. package/pages/contact.vue +2 -1
  54. package/pages/dashboard.vue +2 -1
  55. package/pages/edit-address.vue +2 -1
  56. package/pages/edit-profile.vue +2 -1
  57. package/pages/faq.vue +2 -1
  58. package/pages/forgot-password.vue +2 -1
  59. package/pages/login.vue +2 -1
  60. package/pages/my-account.vue +2 -1
  61. package/pages/order-details.vue +2 -1
  62. package/pages/order-history.vue +2 -1
  63. package/pages/privacy-policy.vue +2 -1
  64. package/pages/product-details.vue +2 -1
  65. package/pages/products.vue +2 -1
  66. package/pages/register.vue +2 -1
  67. package/pages/terms-conditions.vue +2 -1
  68. package/pages/wishlist.vue +2 -1
  69. package/plugins/i18n.ts +7 -0
  70. package/plugins/site-init.client.ts +5 -0
  71. package/plugins/vuetify.ts +0 -1
  72. package/utils/image.ts +2 -0
  73. package/e2e/cart.spec.ts +0 -71
  74. package/e2e/fixtures/mock-api.ts +0 -166
  75. package/e2e/homepage.spec.ts +0 -65
  76. package/e2e/layout.spec.ts +0 -73
  77. package/e2e/navigation.spec.ts +0 -61
  78. package/e2e/pages/cart.page.ts +0 -44
  79. package/e2e/pages/homepage.page.ts +0 -46
  80. package/e2e/playwright.config.ts +0 -32
  81. package/e2e/products.spec.ts +0 -33
@@ -22,7 +22,7 @@
22
22
  <div class="offcanvas-body">
23
23
  <v-expansion-panels variant="accordion" v-model="panel">
24
24
  <v-expansion-panel>
25
- <v-expansion-panel-title>Home</v-expansion-panel-title>
25
+ <v-expansion-panel-title>{{ t('nav.home') }}</v-expansion-panel-title>
26
26
  <v-expansion-panel-text>
27
27
  <ul class="mobile-menu-items">
28
28
  <li>
@@ -56,7 +56,7 @@
56
56
  </v-expansion-panel-text>
57
57
  </v-expansion-panel>
58
58
  <v-expansion-panel>
59
- <v-expansion-panel-title>Pages</v-expansion-panel-title>
59
+ <v-expansion-panel-title>{{ t('nav.pages') }}</v-expansion-panel-title>
60
60
  <v-expansion-panel-text>
61
61
  <ul class="mobile-menu-items">
62
62
  <li>
@@ -65,14 +65,14 @@
65
65
  to="/about-us"
66
66
  @click="stateStoreInstance.onChangeShow"
67
67
  >
68
- About Us
68
+ {{ t('nav.aboutUs') }}
69
69
  </NuxtLink>
70
70
  </li>
71
71
  <li class="mobile-menu-list">
72
72
  <v-expansion-panels variant="accordion">
73
73
  <v-expansion-panel>
74
74
  <v-expansion-panel-title>
75
- Authentication
75
+ {{ t('nav.authentication') }}
76
76
  </v-expansion-panel-title>
77
77
  <v-expansion-panel-text>
78
78
  <ul class="mobile-menu-items sub-dropdown">
@@ -82,7 +82,7 @@
82
82
  to="/login"
83
83
  @click="stateStoreInstance.onChangeShow"
84
84
  >
85
- Login
85
+ {{ t('auth.login') }}
86
86
  </NuxtLink>
87
87
  </li>
88
88
  <li>
@@ -91,7 +91,7 @@
91
91
  to="/register"
92
92
  @click="stateStoreInstance.onChangeShow"
93
93
  >
94
- Register
94
+ {{ t('auth.register') }}
95
95
  </NuxtLink>
96
96
  </li>
97
97
  <li>
@@ -100,7 +100,7 @@
100
100
  to="/my-account"
101
101
  @click="stateStoreInstance.onChangeShow"
102
102
  >
103
- My Account
103
+ {{ t('account.myAccount') }}
104
104
  </NuxtLink>
105
105
  </li>
106
106
  <li>
@@ -109,7 +109,7 @@
109
109
  to="/change-password"
110
110
  @click="stateStoreInstance.onChangeShow"
111
111
  >
112
- Change Password
112
+ {{ t('auth.changePassword') }}
113
113
  </NuxtLink>
114
114
  </li>
115
115
  <li>
@@ -118,7 +118,7 @@
118
118
  to="/forgot-password"
119
119
  @click="stateStoreInstance.onChangeShow"
120
120
  >
121
- Forgot Password
121
+ {{ t('auth.forgotPassword') }}
122
122
  </NuxtLink>
123
123
  </li>
124
124
  </ul>
@@ -132,7 +132,7 @@
132
132
  to="/faq"
133
133
  @click="stateStoreInstance.onChangeShow"
134
134
  >
135
- FAQ
135
+ {{ t('nav.faqs') }}
136
136
  </NuxtLink>
137
137
  </li>
138
138
  <li>
@@ -141,7 +141,7 @@
141
141
  to="/privacy-policy"
142
142
  @click="stateStoreInstance.onChangeShow"
143
143
  >
144
- Privacy Policy
144
+ {{ t('common.privacyPolicy') }}
145
145
  </NuxtLink>
146
146
  </li>
147
147
  <li>
@@ -150,21 +150,21 @@
150
150
  to="/terms-conditions"
151
151
  @click="stateStoreInstance.onChangeShow"
152
152
  >
153
- Terms & Conditions
153
+ {{ t('common.termsConditions') }}
154
154
  </NuxtLink>
155
155
  </li>
156
156
  </ul>
157
157
  </v-expansion-panel-text>
158
158
  </v-expansion-panel>
159
159
  <v-expansion-panel>
160
- <v-expansion-panel-title>Shop</v-expansion-panel-title>
160
+ <v-expansion-panel-title>{{ t('nav.shop') }}</v-expansion-panel-title>
161
161
  <v-expansion-panel-text>
162
162
  <ul class="mobile-menu-items">
163
163
  <li class="mobile-menu-list">
164
164
  <v-expansion-panels variant="accordion">
165
165
  <v-expansion-panel>
166
166
  <v-expansion-panel-title>
167
- Product Layouts
167
+ {{ t('nav.productLayouts') }}
168
168
  </v-expansion-panel-title>
169
169
  <v-expansion-panel-text>
170
170
  <ul class="mobile-menu-items sub-dropdown">
@@ -174,7 +174,7 @@
174
174
  to="/best-sellers"
175
175
  @click="stateStoreInstance.onChangeShow"
176
176
  >
177
- Best Sellers
177
+ {{ t('product.bestSellers') }}
178
178
  </NuxtLink>
179
179
  </li>
180
180
  <li>
@@ -183,7 +183,7 @@
183
183
  to="/featured-products"
184
184
  @click="stateStoreInstance.onChangeShow"
185
185
  >
186
- Featured Products
186
+ {{ t('product.featuredProducts') }}
187
187
  </NuxtLink>
188
188
  </li>
189
189
  <li>
@@ -192,7 +192,7 @@
192
192
  to="/trending-products"
193
193
  @click="stateStoreInstance.onChangeShow"
194
194
  >
195
- Trending Products
195
+ {{ t('product.trendingProducts') }}
196
196
  </NuxtLink>
197
197
  </li>
198
198
  <li>
@@ -201,7 +201,7 @@
201
201
  to="/new-arrivals"
202
202
  @click="stateStoreInstance.onChangeShow"
203
203
  >
204
- New Arrivals
204
+ {{ t('product.newArrivals') }}
205
205
  </NuxtLink>
206
206
  </li>
207
207
  <li>
@@ -210,7 +210,7 @@
210
210
  to="/categories"
211
211
  @click="stateStoreInstance.onChangeShow"
212
212
  >
213
- Categories
213
+ {{ t('nav.categories') }}
214
214
  </NuxtLink>
215
215
  </li>
216
216
  </ul>
@@ -222,7 +222,7 @@
222
222
  <v-expansion-panels variant="accordion">
223
223
  <v-expansion-panel>
224
224
  <v-expansion-panel-title>
225
- Products Step
225
+ {{ t('nav.productsStep') }}
226
226
  </v-expansion-panel-title>
227
227
  <v-expansion-panel-text>
228
228
  <ul class="mobile-menu-items sub-dropdown">
@@ -232,7 +232,7 @@
232
232
  to="/products"
233
233
  @click="stateStoreInstance.onChangeShow"
234
234
  >
235
- Products
235
+ {{ t('nav.products') }}
236
236
  </NuxtLink>
237
237
  </li>
238
238
  <li>
@@ -241,7 +241,7 @@
241
241
  to="/cart"
242
242
  @click="stateStoreInstance.onChangeShow"
243
243
  >
244
- Cart
244
+ {{ t('cart.cart') }}
245
245
  </NuxtLink>
246
246
  </li>
247
247
  <li>
@@ -250,7 +250,7 @@
250
250
  to="/wishlist"
251
251
  @click="stateStoreInstance.onChangeShow"
252
252
  >
253
- Wishlist
253
+ {{ t('product.wishlist') }}
254
254
  </NuxtLink>
255
255
  </li>
256
256
  <li>
@@ -259,7 +259,7 @@
259
259
  to="/checkout"
260
260
  @click="stateStoreInstance.onChangeShow"
261
261
  >
262
- Checkout
262
+ {{ t('account.checkout') }}
263
263
  </NuxtLink>
264
264
  </li>
265
265
  <li>
@@ -268,7 +268,7 @@
268
268
  to="/product-details"
269
269
  @click="stateStoreInstance.onChangeShow"
270
270
  >
271
- Product Details
271
+ {{ t('product.productDetails') }}
272
272
  </NuxtLink>
273
273
  </li>
274
274
  </ul>
@@ -280,7 +280,7 @@
280
280
  <v-expansion-panels variant="accordion">
281
281
  <v-expansion-panel>
282
282
  <v-expansion-panel-title>
283
- Admin Page
283
+ {{ t('nav.adminPage') }}
284
284
  </v-expansion-panel-title>
285
285
  <v-expansion-panel-text>
286
286
  <ul class="mobile-menu-items sub-dropdown mb-3">
@@ -290,7 +290,7 @@
290
290
  to="/dashboard"
291
291
  @click="stateStoreInstance.onChangeShow"
292
292
  >
293
- Dashboard
293
+ {{ t('account.dashboard') }}
294
294
  </NuxtLink>
295
295
  </li>
296
296
  <li>
@@ -299,7 +299,7 @@
299
299
  to="/edit-profile"
300
300
  @click="stateStoreInstance.onChangeShow"
301
301
  >
302
- Edit Profile
302
+ {{ t('account.editProfile') }}
303
303
  </NuxtLink>
304
304
  </li>
305
305
  <li>
@@ -308,7 +308,7 @@
308
308
  to="/order-history"
309
309
  @click="stateStoreInstance.onChangeShow"
310
310
  >
311
- Order History
311
+ {{ t('account.orderHistory') }}
312
312
  </NuxtLink>
313
313
  </li>
314
314
  <li>
@@ -317,7 +317,7 @@
317
317
  to="/order-details"
318
318
  @click="stateStoreInstance.onChangeShow"
319
319
  >
320
- Order Details
320
+ {{ t('account.orderDetails') }}
321
321
  </NuxtLink>
322
322
  </li>
323
323
  <li>
@@ -326,7 +326,7 @@
326
326
  to="/change-password"
327
327
  @click="stateStoreInstance.onChangeShow"
328
328
  >
329
- Change Password
329
+ {{ t('auth.changePassword') }}
330
330
  </NuxtLink>
331
331
  </li>
332
332
  </ul>
@@ -338,7 +338,7 @@
338
338
  </v-expansion-panel-text>
339
339
  </v-expansion-panel>
340
340
  <v-expansion-panel>
341
- <v-expansion-panel-title>Blog</v-expansion-panel-title>
341
+ <v-expansion-panel-title>{{ t('nav.blog') }}</v-expansion-panel-title>
342
342
  <v-expansion-panel-text>
343
343
  <ul class="mobile-menu-items">
344
344
  <li>
@@ -347,7 +347,7 @@
347
347
  to="/our-blog"
348
348
  @click="stateStoreInstance.onChangeShow"
349
349
  >
350
- Our Blog
350
+ {{ t('nav.ourBlog') }}
351
351
  </NuxtLink>
352
352
  </li>
353
353
  <li>
@@ -356,7 +356,7 @@
356
356
  to="/blog-details"
357
357
  @click="stateStoreInstance.onChangeShow"
358
358
  >
359
- Blog Details
359
+ {{ t('nav.blogDetails') }}
360
360
  </NuxtLink>
361
361
  </li>
362
362
  <li>
@@ -365,7 +365,7 @@
365
365
  to="/tags"
366
366
  @click="stateStoreInstance.onChangeShow"
367
367
  >
368
- Tags
368
+ {{ t('nav.tags') }}
369
369
  </NuxtLink>
370
370
  </li>
371
371
  <li>
@@ -374,7 +374,7 @@
374
374
  to="/categories"
375
375
  @click="stateStoreInstance.onChangeShow"
376
376
  >
377
- Categories
377
+ {{ t('nav.categories') }}
378
378
  </NuxtLink>
379
379
  </li>
380
380
  <li>
@@ -383,7 +383,7 @@
383
383
  to="/author"
384
384
  @click="stateStoreInstance.onChangeShow"
385
385
  >
386
- Author
386
+ {{ t('nav.author') }}
387
387
  </NuxtLink>
388
388
  </li>
389
389
  </ul>
@@ -392,7 +392,7 @@
392
392
  <v-expansion-panel>
393
393
  <v-expansion-panel-title class="without-icon">
394
394
  <NuxtLink to="/contact" @click="stateStoreInstance.onChangeShow">
395
- Contact
395
+ {{ t('nav.contact') }}
396
396
  </NuxtLink>
397
397
  </v-expansion-panel-title>
398
398
  </v-expansion-panel>
@@ -411,6 +411,7 @@ export default defineComponent({
411
411
  panel: [0],
412
412
  }),
413
413
  setup() {
414
+ const { t } = useI18n();
414
415
  const show = ref(false);
415
416
  const stateStoreInstance = stateStore;
416
417
  const activeMobileMenu = ref<string | null>(null);
@@ -425,6 +426,7 @@ export default defineComponent({
425
426
  stateStoreInstance,
426
427
  toggleMobileMenu,
427
428
  activeMobileMenu,
429
+ t,
428
430
  };
429
431
  },
430
432
  });
@@ -7,13 +7,13 @@
7
7
  class="ps-0 mb-0 list-unstyled info-link d-flex align-items-center justify-content-center justify-content-md-start position-relative tops-1"
8
8
  >
9
9
  <li>
10
- <NuxtLink to="/about-us">About Us</NuxtLink>
10
+ <NuxtLink to="/about-us">{{ t('nav.aboutUs') }}</NuxtLink>
11
11
  </li>
12
12
  <li>
13
- <NuxtLink to="/faq">FAQs</NuxtLink>
13
+ <NuxtLink to="/faq">{{ t('nav.faqs') }}</NuxtLink>
14
14
  </li>
15
15
  <li>
16
- <NuxtLink to="/contact">Help & Contact</NuxtLink>
16
+ <NuxtLink to="/contact">{{ t('nav.helpContact') }}</NuxtLink>
17
17
  </li>
18
18
  </ul>
19
19
  </v-col>
@@ -27,7 +27,7 @@
27
27
  class="text-danger d-flex align-items-center position-relative tops-1"
28
28
  >
29
29
  <i class="flaticon-flash-sale"></i>
30
- <span>Flash sale 20% off</span>
30
+ <span>{{ t('nav.flashSale') }}</span>
31
31
  </NuxtLink>
32
32
  </li>
33
33
  <li>
@@ -38,21 +38,21 @@
38
38
  :aria-pressed="show ? 'true' : 'false'"
39
39
  :class="{ show: buttonShowState }"
40
40
  >
41
- <img :src="currentImage" :alt="currentName" />
42
- <span>{{ currentName }}</span>
41
+ <span class="me-1">{{ currentLocaleOption?.flag }}</span>
42
+ <span>{{ currentLocaleOption?.name }}</span>
43
43
  </button>
44
44
  <ul class="dropdown-menu" :class="{ toggler: show }">
45
45
  <li>
46
- <div v-if="languages.length > 0">
46
+ <div v-if="locales.length > 0">
47
47
  <a
48
48
  class="dropdown-item d-flex align-items-center"
49
49
  href="#"
50
- v-for="(language, index) in languages"
51
- :key="language.id"
52
- @click.prevent="toggleSelected(language, index)"
50
+ v-for="loc in locales"
51
+ :key="loc.code"
52
+ @click.prevent="selectLocale(loc.code)"
53
53
  >
54
- <img :src="language.image" :alt="language.name" />
55
- <span class="ms-2">{{ language.name }}</span>
54
+ <span>{{ loc.flag }}</span>
55
+ <span class="ms-2">{{ loc.name }}</span>
56
56
  </a>
57
57
  </div>
58
58
  </li>
@@ -62,11 +62,11 @@
62
62
  <li>
63
63
  <select
64
64
  class="form-select p-0 border-0 currency fw-medium fs-14 text-secondary"
65
- aria-label="Default select example"
65
+ :aria-label="t('nav.currencySelect')"
66
66
  >
67
- <option selected>USD $</option>
68
- <option value="1">EUR £</option>
69
- <option value="2">YEN ¥</option>
67
+ <option selected>{{ t('nav.currencyUSD') }}</option>
68
+ <option value="1">{{ t('nav.currencyEUR') }}</option>
69
+ <option value="2">{{ t('nav.currencyYEN') }}</option>
70
70
  </select>
71
71
  </li>
72
72
  </ul>
@@ -76,55 +76,22 @@
76
76
  </div>
77
77
  </template>
78
78
 
79
- <script lang="ts">
80
- import { defineComponent, ref } from "vue";
81
- import image1 from "~/assets/images/united-states.png";
82
- import image2 from "~/assets/images/china.png";
83
- import image3 from "~/assets/images/arabi.png";
79
+ <script setup lang="ts">
80
+ import { ref } from "vue";
84
81
 
85
- interface LanguageOption {
86
- id: string;
87
- image: string;
88
- name: string;
89
- }
82
+ const { t, locale, locales, setLocale, currentLocaleOption } = useI18n();
90
83
 
91
- export default defineComponent({
92
- name: "TopHeader",
93
- setup() {
94
- const show = ref(false);
95
- const buttonShowState = ref(false);
96
- const languages = ref<LanguageOption[]>([
97
- { id: "1", image: image1, name: "English" },
98
- { id: "2", image: image2, name: "China" },
99
- { id: "3", image: image3, name: "Arabic" },
100
- ]);
101
- const currentName = ref("English");
102
- const currentImage = ref(image1);
103
- const clicked = ref<number | null>(null);
84
+ const show = ref(false);
85
+ const buttonShowState = ref(false);
104
86
 
105
- const toggleDropdown = () => {
106
- show.value = !show.value;
107
- buttonShowState.value = !buttonShowState.value;
108
- };
87
+ const toggleDropdown = () => {
88
+ show.value = !show.value;
89
+ buttonShowState.value = !buttonShowState.value;
90
+ };
109
91
 
110
- const toggleSelected = (language: LanguageOption, index: number) => {
111
- clicked.value = clicked.value === index ? null : index;
112
- currentName.value = language.name;
113
- currentImage.value = language.image;
114
- show.value = false;
115
- buttonShowState.value = false;
116
- };
117
-
118
- return {
119
- show,
120
- buttonShowState,
121
- languages,
122
- currentName,
123
- currentImage,
124
- clicked,
125
- toggleDropdown,
126
- toggleSelected,
127
- };
128
- },
129
- });
92
+ const selectLocale = (code: string) => {
93
+ setLocale(code);
94
+ show.value = false;
95
+ buttonShowState.value = false;
96
+ };
130
97
  </script>
@@ -16,31 +16,28 @@
16
16
  <div class="authentication-form">
17
17
  <ul class="nav nav-tabs login-tabs" id="myTab" role="tablist">
18
18
  <li class="nav-item" role="presentation">
19
- <NuxtLink to="/login" class="nav-link active">Login</NuxtLink>
19
+ <NuxtLink to="/login" class="nav-link active">{{ t('auth.login') }}</NuxtLink>
20
20
  </li>
21
21
  <li class="nav-item" role="presentation">
22
- <NuxtLink to="/register" class="nav-link">Register</NuxtLink>
22
+ <NuxtLink to="/register" class="nav-link">{{ t('auth.register') }}</NuxtLink>
23
23
  </li>
24
24
  </ul>
25
- <p>
26
- If you have an account, sign in with your username or email
27
- address.
28
- </p>
25
+ <p>{{ t('auth.loginDescription') }}</p>
29
26
  <form>
30
27
  <div class="form-group mb-4">
31
- <label class="label">Username or Email Address *</label>
28
+ <label class="label">{{ t('auth.usernameOrEmail') }} *</label>
32
29
  <input
33
30
  type="text"
34
31
  class="form-control"
35
- placeholder="Enter your user name"
32
+ :placeholder="t('auth.usernameOrEmail')"
36
33
  />
37
34
  </div>
38
35
  <div class="form-group mb-4">
39
- <label class="label">Your Password *</label>
36
+ <label class="label">{{ t('auth.yourPassword') }} *</label>
40
37
  <input
41
38
  type="password"
42
39
  class="form-control"
43
- placeholder="Enter your password"
40
+ :placeholder="t('auth.yourPassword')"
44
41
  />
45
42
  </div>
46
43
  <div class="d-flex justify-content-between mb-4">
@@ -52,11 +49,11 @@
52
49
  id="flexCheckDefault"
53
50
  />
54
51
  <label class="form-check-label" for="flexCheckDefault">
55
- Remember
52
+ {{ t('auth.remember') }}
56
53
  </label>
57
54
  </div>
58
55
  <NuxtLink to="/forgot-password" class="text-primary">
59
- Lost your password?
56
+ {{ t('auth.lostPassword') }}
60
57
  </NuxtLink>
61
58
  </div>
62
59
  <div class="form-group mb-4">
@@ -64,17 +61,17 @@
64
61
  type="submit"
65
62
  class="btn btn-warning btn-pill text-white w-100 d-block"
66
63
  >
67
- Login
64
+ {{ t('auth.login') }}
68
65
  </button>
69
66
  </div>
70
67
  <div class="form-group mb-0">
71
68
  <p class="text-secondary ms-1 text-primary">
72
- Dont have an account?
69
+ {{ t(‘auth.noAccount) }}
73
70
  <NuxtLink
74
71
  to="/register"
75
72
  class="text-decoration-none text-primary"
76
73
  >
77
- Register
74
+ {{ t(‘auth.register’) }}
78
75
  </NuxtLink>
79
76
  </p>
80
77
  </div>
@@ -87,8 +84,6 @@
87
84
  </div>
88
85
  </template>
89
86
 
90
- <script>
91
- export default {
92
- name: "Login",
93
- };
87
+ <script setup lang="ts">
88
+ const { t } = useI18n();
94
89
  </script>