Skip to content

Commit f8a5011

Browse files
Merge pull request vuejs#1 from boussadjra/feat/trans-config
Translate header and guide sidebar
2 parents cec71f2 + aa84483 commit f8a5011

File tree

10 files changed

+225
-197
lines changed

10 files changed

+225
-197
lines changed

.vitepress/config.ts

Lines changed: 176 additions & 161 deletions
Large diffs are not rendered by default.

.vitepress/theme/components/Home.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ html:not(.dark) .accent,
255255
font-size: 64px;
256256
letter-spacing: -0.5px;
257257
}
258+
258259
.description {
259260
font-size: 18px;
260261
margin-bottom: 48px;
@@ -272,26 +273,33 @@ html:not(.dark) .accent,
272273
#hero {
273274
padding: 64px 32px;
274275
}
276+
275277
.description {
276278
font-size: 16px;
277279
margin: 18px 0 30px;
278280
}
281+
279282
#special-sponsor {
280283
flex-direction: column;
281284
}
285+
282286
#special-sponsor img {
283287
height: 36px;
284288
margin: 8px 0;
285289
}
290+
286291
#special-sponsor span {
287292
text-align: center !important;
288293
}
294+
289295
#highlights h3 {
290296
margin-bottom: 0.6em;
291297
}
298+
292299
#highlights .vt-box {
293300
padding: 20px 36px;
294301
}
302+
295303
.actions a {
296304
margin: 0.5em 0;
297305
}

.vitepress/theme/components/NewsLetter.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { VTLink } from '@vue/theme'
3232
id="member_submit"
3333
name="member[subscribe]"
3434
type="submit"
35-
value="SUBSCRIBE"
35+
value="سجّل"
3636
/>
3737
</div>
3838
</form>
@@ -44,10 +44,10 @@ import { VTLink } from '@vue/theme'
4444
>news.vuejs.org</VTLink
4545
>. تستطيع متابعتنا على
4646
<VTLink class="link" href="https://twitter.com/vuejs" no-icon
47-
>Twitter</VTLink
47+
>تويتر</VTLink
4848
>, أو الانضمام إلينا على
4949
<VTLink class="link" href="https://chat.vuejs.org/" no-icon
50-
>Discord</VTLink
50+
>ديسكورد</VTLink
5151
>.
5252
</p>
5353
</div>

.vitepress/theme/components/ReplLoading.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div></div>
77
<div></div>
88
</div>
9-
<div>Repl is loading...</div>
9+
<div>Repl قيد التحميل</div>
1010
</div>
1111
</template>
1212

.vitepress/theme/components/SponsorsAside.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { frontmatter } = useData()
66

77
<template>
88
<div v-if="frontmatter.sponsors !== false">
9-
<a class="sponsors-aside-text" href="/sponsor/">Sponsors</a>
9+
<a class="sponsors-aside-text" href="/sponsor/">الراعون</a>
1010
<SponsorsGroup tier="special" />
1111
<SponsorsGroup tier="platinum" />
1212
</div>

.vitepress/theme/components/VueJobs.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ onMounted(async () => {
4343
target="_blank"
4444
>
4545
<div class="vj-company-logo">
46-
<img
47-
:src="job.organization.avatar"
46+
<img
47+
:src="job.organization.avatar"
4848
:alt="`Logo for ${job.organization.name}`" />
4949
</div>
5050
<div
@@ -63,7 +63,7 @@ onMounted(async () => {
6363
</a>
6464
</div>
6565
<div class="vj-link">
66-
Jobs by
66+
وظائف من طرف
6767
<a
6868
href="https://vuejobs.com/?utm_source=vuejs&utm_medium=referral&utm_campaign=jobs_widget&utm_content=bottom_link"
6969
target="_blank"

.vitepress/theme/components/VueMasteryModal.vue

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ watch(
2020
class="why-vue"
2121
@click="showWhyVue = true"
2222
href="javascript:;"
23-
dir="rtl"
2423
>
2524
<svg
2625
class="icon-play"
@@ -29,12 +28,12 @@ watch(
2928
viewBox="0 0 100 125"
3029
fill="#FFFFFF"
3130
>
32-
<title id="simpleicons-play-icon" lang="en">Play icon</title>
31+
<title id="simpleicons-play-icon" lang="en">أيقونة التشغيل</title>
3332
<path
3433
d="M50,3.8C24.5,3.8,3.8,24.5,3.8,50S24.5,96.2,50,96.2S96.2,75.5,96.2,50S75.5,3.8,50,3.8z M71.2,53.3l-30.8,18 c-0.6,0.4-1.3,0.5-1.9,0.5c-0.6,0-1.3-0.1-1.9-0.5c-1.2-0.6-1.9-1.9-1.9-3.3V32c0-1.4,0.8-2.7,1.9-3.3c1.2-0.6,2.7-0.6,3.8,0 l30.8,18c1.2,0.6,1.9,1.9,1.9,3.3S72.3,52.7,71.2,53.3z"
3534
></path>
3635
</svg>
37-
لماذا Vue
36+
لماذا Vue؟
3837
</a>
3938
<Teleport v-if="showWhyVue" to="body">
4039
<div @click="showWhyVue = false" class="vuemastery-modal-mask">
@@ -61,9 +60,9 @@ watch(
6160
</div>
6261
</div>
6362

64-
<div class="vuemastery-modal-footer">
63+
<div class="vuemastery-modal-footer" dir="rtl">
6564
<p class="vuemastery-modal-footer-text">
66-
Video by
65+
فيديو من طرف
6766
<a
6867
href="https://www.vuemastery.com"
6968
target="_blank"
@@ -72,14 +71,14 @@ watch(
7271
>
7372
Vue Mastery.</a
7473
>
75-
Watch Vue Mastery’s free
74+
شاهد مجانا
7675
<a
7776
href="https://www.vuemastery.com/courses/intro-to-vue-3/intro-to-vue3"
7877
target="_blank"
7978
rel="sponsored noopener"
80-
title="Vue.js Courses on Vue Mastery"
79+
title="دورات Vue.js على Vue Mastery"
8180
>
82-
Intro to Vue course.</a
81+
مقدمة عن دورة Vue</a
8382
>
8483
</p>
8584
</div>
@@ -99,7 +98,7 @@ watch(
9998
font-weight: 600;
10099
background-color: var(--vt-c-green);
101100
color: #fff;
102-
margin-left: 18px;
101+
margin-right: 18px;
103102
padding: 8px 1em 8px 3em;
104103
}
105104

.vitepress/theme/components/VueSchoolLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
rel="sponsored noopener"
77
:title="title"
88
>
9-
<slot>Watch a free video lesson on Vue School</slot>
9+
<slot> شاهد فيديو تعليمي مجاني على VueSchool</slot>
1010
</a>
1111
</div>
1212
</template>

.vitepress/theme/styles/index.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import "./pages.css";
2-
@import "./badges.css";
3-
@import "./options-boxes.css";
4-
@import "./inline-demo.css";
5-
@import "./utilities.css";
6-
@import "./style-guide.css";
1+
@import './pages.css';
2+
@import './badges.css';
3+
@import './options-boxes.css';
4+
@import './inline-demo.css';
5+
@import './utilities.css';
6+
@import './style-guide.css';

pnpm-lock.yaml

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)