Skip to content

Commit 36e5eec

Browse files
committed
feat: translate themes
1 parent fe0d772 commit 36e5eec

File tree

5 files changed

+35
-16
lines changed

5 files changed

+35
-16
lines changed

src/ecosystem/themes/ThemeHero.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="ThemeHero">
3-
<div class="container">
3+
<div class="container" dir="rtl">
44
<h1 class="title">
55
<slot name="title" />
66
</h1>

src/ecosystem/themes/ThemeListItem.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,26 @@ const description = computed(() => {
1919

2020
<template>
2121
<section class="ThemeListItem">
22-
<h2 class="title">{{ provider.name }}</h2>
23-
<p class="description" v-html="description" />
22+
<div dir="rtl">
23+
<h2 class="title">{{ provider.name }}</h2>
24+
<p class="description" v-html="description" />
25+
</div>
2426

2527
<div class="container">
2628
<div class="products">
27-
<div v-for="product in provider.products" :key="product.name" class="product">
29+
<div
30+
v-for="product in provider.products"
31+
:key="product.name"
32+
class="product"
33+
>
2834
<ThemeProduct :product="product" />
2935
</div>
3036
</div>
3137
</div>
3238

3339
<div class="action">
3440
<VTLink class="action-link" :href="provider.seeMoreUrl" no-icon>
35-
See More Themes from {{ provider.name }}
41+
{{ provider.name }} نمایش تم‌های بیشتر از
3642
</VTLink>
3743
</div>
3844
</section>

src/ecosystem/themes/ThemePage.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,23 @@ import ThemeContact from './ThemeContact.vue'
77
<template>
88
<div class="ThemePage">
99
<ThemeHero>
10-
<template #title>Themes</template>
11-
<template #lead>Check out the themes, UI Kits, and plugins. You can see how a real-world application is built with Vue by our partners.</template>
10+
<template #title>تم‌ها</template>
11+
<template #lead
12+
>می‌توانید با بررسی تم‌ها، کیت‌های رابط کاربری و افزونه‌های ساخته
13+
شده توسط شرکای ما، نحوه ساخت یک اپلیکیشن واقعی با Vue را مشاهده
14+
کنید.</template
15+
>
1216
</ThemeHero>
1317

1418
<ThemeList />
1519

1620
<ThemeContact>
17-
Want to feature your themes here? <a class="link" href="mailto:[email protected]?subject=Theme+affiliation">Contact us!</a>
21+
آیا می‌خواهید تم‌های خود را در اینجا نمایش دهید؟
22+
<a
23+
class="link"
24+
href="mailto:[email protected]?subject=Theme+affiliation"
25+
>با ما ارتباط بگیرید!</a
26+
>
1827
</ThemeContact>
1928
</div>
2029
</template>

src/ecosystem/themes/ThemeProduct.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ const props = defineProps<{
1010
<VTLink class="ThemeProduct" :href="product.url" no-icon>
1111
<article class="container">
1212
<figure class="figure">
13-
<img class="image" :src="product.image" :alt="product.name">
13+
<img class="image" :src="product.image" :alt="product.name" />
1414
</figure>
1515

1616
<div class="data">
1717
<div class="title">
18-
<h1 class="name">{{ product.name }}</h1>
18+
<h1 class="name" dir="ltr">{{ product.name }}</h1>
1919
<p class="description">{{ product.description }}</p>
2020
</div>
2121

2222
<div class="price">
23-
<p v-if="product.price > 0" class="value">${{ product.price }}</p>
24-
<p v-else class="free">FREE</p>
23+
<p v-if="product.price > 0" class="value">
24+
${{ product.price }}
25+
</p>
26+
<p v-else class="free">رایگان</p>
2527
</div>
2628
</div>
2729
</article>
@@ -62,6 +64,7 @@ const props = defineProps<{
6264
font-size: 16px;
6365
font-weight: 500;
6466
transition: color 0.25s;
67+
direction: ltr;
6568
}
6669
6770
.description {
@@ -71,6 +74,7 @@ const props = defineProps<{
7174
font-weight: 500;
7275
color: var(--vt-c-text-2);
7376
transition: color 0.25s;
77+
direction: ltr;
7478
}
7579
7680
.price {

src/ecosystem/themes/themes.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"name": "Creative Tim",
4-
"description": "With the examples below built by our partners from [Creative Tim](https://creative-tim.com?affiliate_id=116187) you can see how a real-world application is built, the technology stack behind it and how most of the concepts you've learned so far apply in a real-world application.",
4+
"description": "با نمونه‌های ساخته شده توسط شرکای ما از [Creative Tim](https://creative-tim.com?affiliate_id=116187)، می‌توانید نحوه ساخت یک اپلیکیشن واقعی، فناوری‌های پشت سر آن و چگونگی اعمال بسیاری از مفاهیمی که تاکنون آموخته‌اید را در یک اپلیکیشن واقعی مشاهده کنید.",
55
"seeMoreUrl": "https://www.creative-tim.com/bootstrap-themes/vuejs-themes?affiliate_id=116187",
66
"products": [
77
{
@@ -92,7 +92,7 @@
9292
},
9393
{
9494
"name": "MDBootstrap",
95-
"description": "Check out the themes, UI Kits and plugins below built by our partners from [MDBootstrap](https://mdbootstrap.com/?utm_ref_id=82665). Learn how to use Vue in professional projects along such technologies as Bootstrap. Templates & ready components make your development faster and more efficient.",
95+
"description": "تم‌ها، کیت‌های رابط کاربری و پلاگین‌های ساخته شده توسط شرکای ما از [MDBootstrap](https://mdbootstrap.com/?utm_ref_id=82665) را بررسی کنید. بیاموزید که چگونه از Vue در پروژه‌های حرفه‌ای همراه با فناوری‌هایی مثل Bootstrap استفاده کنید. قالب‌ها و کامپوننت‌های آماده، توسعه شما را سریع‌تر و موثرتر می‌کنند.",
9696
"seeMoreUrl": "https://mdbootstrap.com/docs/vue/?utm_ref_id=82665",
9797
"products": [
9898
{
@@ -274,7 +274,7 @@
274274
},
275275
{
276276
"name": "PrimeVue",
277-
"description": "The open-source UI component library [PrimeVue](https://www.primefaces.org/primevue/?af_id=4218) offers over 90 flexible components to build your apps with! They have a ton of different component themes and application templates available to get the look & feel that suits you best.",
277+
"description": "کتابخانه رابط کاربری متن‌باز [PrimeVue](https://www.primefaces.org/primevue/?af_id=4218) بیش از 90 کامپوننت انعطاف‌پذیر برای ساخت برنامه‌های شما ارائه می‌دهد! آنها مجموعه‌ای عظیم از تم‌های کامپوننت و قالب‌های اپلیکیشن برای ایجاد ظاهر و احساس مناسب شما دارند.",
278278
"seeMoreUrl": "https://www.primefaces.org/primevue/?af_id=4218",
279279
"products": [
280280
{
@@ -379,7 +379,7 @@
379379
},
380380
{
381381
"name": "Flatlogic",
382-
"description": "Check out the admin dashboard templates built by our partners from [Flatlogic](https://flatlogic.com/templates?ref=x-fdkuTAVW). With these themes you can see how real applications are built. Additionally, these templates will help you to start a new application and save you time and money.",
382+
"description": "قالب‌های داشبورد مدیریت ساخته شده توسط شرکای ما از [Flatlogic](https://flatlogic.com/templates?ref=x-fdkuTAVW) را بررسی کنید. با استفاده از این تم‌ها می‌توانید ببینید که اپلیکیشن‌های واقعی چگونه ساخته می‌شوند. علاوه بر این، این قالب‌ها به شما کمک می‌کنند تا یک اپلیکیشن جدید را شروع کرده و در زمان و هزینه خود صرفه‌جویی کنید.",
383383
"seeMoreUrl": "https://flatlogic.com/templates?ref=x-fdkuTAVW",
384384
"products": [
385385
{

0 commit comments

Comments
 (0)