Skip to content

Commit 13daba6

Browse files
committed
translate reactivity fundamentals
1 parent 5337fa7 commit 13daba6

File tree

4 files changed

+163
-129
lines changed

4 files changed

+163
-129
lines changed

.vitepress/theme/components/PreferenceSwitch.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,38 +61,38 @@ function useToggleFn(
6161
<div v-if="show" class="preference-switch">
6262
<button
6363
class="toggle"
64-
aria-label="preference switches toggle"
64+
aria-label="تفضيلات زر التبديل"
6565
aria-controls="preference-switches"
6666
:aria-expanded="isOpen"
6767
@click="toggleOpen"
6868
@mousedown="removeOutline"
6969
@blur="restoreOutline"
7070
>
71-
<span>API Preference</span>
71+
<span>تفضيلات واجهة البرمجة</span>
7272
<VTIconChevronDown class="vt-link-icon" :class="{ open: isOpen }" />
7373
</button>
7474
<div id="preference-switches" :hidden="!isOpen" :aria-hidden="!isOpen">
7575
<div class="switch-container">
7676
<label class="options-label" @click="toggleCompositionAPI(false)"
77-
>Options</label
77+
>الخيارات</label
7878
>
7979
<VTSwitch
8080
class="api-switch"
81-
aria-label="prefer composition api"
81+
aria-label="تفضيل الواجهة التركيبية"
8282
:aria-checked="preferComposition"
8383
@click="toggleCompositionAPI()"
8484
/>
8585
<label
8686
class="composition-label"
8787
@click="toggleCompositionAPI(true)"
88-
>Composition</label
88+
>التركيبية</label
8989
>
9090
<a
9191
class="switch-link"
92-
title="About API preference"
92+
title="حول تفضيلات الواجهة البرمجية"
9393
href="/guide/introduction.html#api-styles"
9494
@click="closeSideBar"
95-
>?</a
95+
>؟</a
9696
>
9797
</div>
9898
<div class="switch-container" v-if="showSFC">
@@ -169,6 +169,7 @@ function useToggleFn(
169169
.switch-container {
170170
display: flex;
171171
align-items: center;
172+
direction: ltr ;
172173
}
173174
174175
.switch-container:nth-child(2) {

.vitepress/theme/styles/overrides.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,16 @@ pre {
4747
position: absolute;
4848
right: -24px;
4949
}
50+
51+
.vt-doc ol > li:before {
52+
left: auto;
53+
right: 2px;
54+
}
55+
56+
.vt-doc ol > li p {
57+
padding-right: 1.25rem;
58+
}
59+
60+
.vt-badge.experimental:before {
61+
content: 'تجريبي';
62+
}

glossary.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@
5858
| CSS selector | مُحدِّد CSS |
5959
| assets | ملحقات |
6060
| modifier | مُعدِّل |
61+
| tick | نبضة |
62+
| unwrap | / فك |

0 commit comments

Comments
 (0)