Skip to content

Commit 26d9736

Browse files
Merge pull request #30 from E3saR33/master
Translating to Arabic
2 parents 1296fba + 97f4373 commit 26d9736

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

src/v2/guide/class-and-style.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ order: 6
1717
<div v-bind:class="{ active: isActive }"></div>
1818
```
1919

20-
الصيغة بالأعلى تعني ان الفئة `active` سوف يتم تحديدها طبقاً لحقيقة القيمة [truthiness](https://developer.mozilla.org/en-US/docs/Glossary/Truthy) الموجودة في خاصية البينات `isActive`.
20+
الصيغة بالأعلى تعني ان الفئة `active` سوف يتم تحديدها طبقاً لحقيقة القيمة [truthiness](https://developer.mozilla.org/en-US/docs/Glossary/Truthy) الموجودة في خاصية البيانات `isActive`.
2121

2222
يمكنك استخدام وتبديل العديد من الفئات عن طريق استخدام العديد من الحقول الاخرى. بالاضافة الى ذلك، الموجه `v-bind:class` يمكن ان يستخدم مع خاصية العنصر `class`. كما في المثال التالي:
2323

@@ -111,7 +111,7 @@ data: {
111111
<div v-bind:class="[{ active: isActive }, errorClass]"></div>
112112
```
113113

114-
### الاستخدام مع الموكنات
114+
### الاستخدام مع المكونات
115115

116116
> هذا القسم يفترض ان لديك معرفة بـ[مكونات Vue](components.html). لك مطلق الحرية في تخطي هذا الجزء والعودة إليه لاحقاً.
117117
@@ -197,11 +197,11 @@ data: {
197197

198198
> 2.3.0+
199199
200-
بدئاً من الاصدار 2.3.0 يمكنك توفير مصفوفة مكونة من مجموعة من القيم (التي لها باطئة) لأنماط الخاصية، على سبيل المثال:
200+
بدئاً من الاصدار 2.3.0 يمكنك توفير مصفوفة مكونة من مجموعة من القيم (التي لها بادئة) لأنماط الخاصية، على سبيل المثال:
201201

202202
``` html
203203
<div v-bind:style="{ display: ['-webkit-box', '-ms-flexbox', 'flex'] }"></div>
204204
```
205205
هذا سوف قوم بمعالجة القيمة الاخيرة فقط في المصفوفة والتي يدعمها المستعرض. في هذا المثال، سوف يقوم بمعالجة `display: flex` للمستعرضات التي لا تدعم اصدار flexbox ذو البادئات
206206

207-
This will only render the last value in the array which the browser supports. In this example, it will render `display: flex` for browsers that support the unprefixed version of flexbox.
207+
سيؤدي هذا فقط إلى عرض القيمة الأخيرة في المصفوفة التي يدعمها المتصفح. في هذا المثال ،سيتم عرض `display: flex` للمتصفحات التي تدعم الإصدار غير المثبت من flexbox.

src/v2/guide/installation.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Vue أيضاً متوفرة على [unpkg](https://unpkg.com/vue@{{vue_version}}
6161

6262
## NPM ( مدير حزم Node.js )
6363

64-
NPM هي الأداة الموصى بإصتخدامها عند بناء تطبيقات كبيرة الحجم بإستخدام Vue. فهي تعمل جيداً مع أدوات التجميع مثل [Webpack](https://webpack.js.org/) و [Browserify](http://browserify.org/). Vue أيضاً توفر أدوات خاصة بالإصدار مثل [Single File Components](single-file-components.html).
64+
NPM هي الأداة الموصى بإستخدامها عند بناء تطبيقات كبيرة الحجم بإستخدام Vue. فهي تعمل جيداً مع أدوات التجميع مثل [Webpack](https://webpack.js.org/) و [Browserify](http://browserify.org/). Vue أيضاً توفر أدوات خاصة بالإصدار مثل [Single File Components](single-file-components.html).
6565

6666
``` bash
6767
# latest stable
@@ -89,11 +89,11 @@ Vue توفر [أدوات سطر الأوامر الرسمية](https://github.co
8989

9090
### مصطلحات
9191

92-
- **الكامل**: الإصدارات التي تحتوي على كلِ من المترجم وبيئة العمل.
92+
- **الكامل**: الإصدارات التي تحتوي على كلِ من المفسر وبيئة العمل.
9393

94-
- **المترجم**: الكود المسئول عن ترجمة قوالب الكلمات لدوال Javascript الخاصة الخاصة بالتصدير.
94+
- **المفسر**: الكود المسئول عن ترجمة قوالب الكلمات لدوال Javascript الخاصة الخاصة بالتصدير.
9595

96-
- **Runtime**: code that is responsible for creating Vue instances, rendering and patching virtual DOM, etc. Basically everything minus the compiler.
96+
- **وقت التشغيل**: الشيفرة المسؤولة عن إنشاء نماذج Vue, قراءة و تصحيح و نموذج كائن المستند الإفتراضي, الخ. ببساطة كل شيء ماعدا المفسر.
9797

9898
- **[UMD](https://github.com/umdjs/umd)**: UMD builds can be used directly in the browser via a `<script>` tag. The default file from jsDelivr CDN at [https://cdn.jsdelivr.net/npm/vue](https://cdn.jsdelivr.net/npm/vue) is the Runtime + Compiler UMD build (`vue.js`).
9999

@@ -103,29 +103,29 @@ Vue توفر [أدوات سطر الأوامر الرسمية](https://github.co
103103

104104
- ESM for bundlers: intended for use with modern bundlers like [webpack 2](https://webpack.js.org) or [Rollup](https://rollupjs.org/). ESM format is designed to be statically analyzable so the bundlers can take advantage of that to perform "tree-shaking" and eliminate unused code from your final bundle. The default file for these bundlers (`pkg.module`) is the Runtime only ES Module build (`vue.runtime.esm.js`).
105105

106-
- ESM for browsers (2.6+ only): intended for direct imports in modern browsers via `<script type="module">`.
106+
- ESM للمتصفحات (2.6 فقط و أعلى): معده للإدراجات المباشره في المتصفحات الحديثة عبر `<script type="module">`
107107

108-
### Runtime + Compiler vs. Runtime-only
108+
### وقت التشغيل + المفسر vs. وقت التشغيل فقط
109109

110-
If you need to compile templates on the client (e.g. passing a string to the `template` option, or mounting to an element using its in-DOM HTML as the template), you will need the compiler and thus the full build:
110+
إذا أحتجت ترجمة القوالب في جهة العميل، سوف تحتاج المفسر و البناء الكامل.
111111

112112
``` js
113-
// this requires the compiler
113+
// هذا يتطلب المفسر
114114
new Vue({
115115
template: '<div>{{ hi }}</div>'
116116
})
117117

118-
// this does not
118+
// هذا لا يتطلب المفسر
119119
new Vue({
120120
render (h) {
121121
return h('div', this.hi)
122122
}
123123
})
124124
```
125125

126-
When using `vue-loader` or `vueify`, templates inside `*.vue` files are pre-compiled into JavaScript at build time. You don't really need the compiler in the final bundle, and can therefore use the runtime-only build.
126+
عند إستخدام `vue-loader` أو `vueify`, القوالب بداخل ملفات `*.vue` تكون مترجمة من قبل داخل JavaScript في وقت البناء. أنت لا تحتاج المفسر في الحزمة النهائية,و ,و بالتالي يمكنك إستخدام بناء وقت-التشغيل فقط.
127127

128-
Since the runtime-only builds are roughly 30% lighter-weight than their full-build counterparts, you should use it whenever you can. If you still wish to use the full build instead, you need to configure an alias in your bundler:
128+
نظرًا لأن إصدارات وقت التشغيل فقط أقل مساحة بنسبة 30 ٪ تقريبًا من نظيراتها كاملة الإنشاء ، فيجب عليك استخدامها كلما استطعت. إذا كنت لا تزال ترغب في استخدام الإصدار الكامل بدلاً من ذلك ، فأنت بحاجة إلى تكوين اسم مستعار في الحزمة الخاصة بك:
129129

130130
#### Webpack
131131

@@ -157,7 +157,7 @@ rollup({
157157

158158
#### Browserify
159159

160-
Add to your project's `package.json`:
160+
أضف إلى ملف `package.json` الخاص بمشروعك :
161161

162162
``` js
163163
{
@@ -170,7 +170,7 @@ Add to your project's `package.json`:
170170

171171
#### Parcel
172172

173-
Add to your project's `package.json`:
173+
أضف إلى ملف `package.json` الخاص بمشروعك :
174174

175175
``` js
176176
{
@@ -181,25 +181,25 @@ Add to your project's `package.json`:
181181
}
182182
```
183183

184-
### Development vs. Production Mode
184+
### وضع التطوير / وضع الإنتاج
185185

186-
Development/production modes are hard-coded for the UMD builds: the un-minified files are for development, and the minified files are for production.
186+
أوضاع التطوير/الإنتاج ثابتة في إنشاءات UMD: الملفات غير المصغرة للتطوير ، والملفات المصغرة للإنتاج.
187187

188-
CommonJS and ES Module builds are intended for bundlers, therefore we don't provide minified versions for them. You will be responsible for minifying the final bundle yourself.
188+
وحدات CommonJS و ES Module مخصصة للحزم ، لذلك لا نقدم إصدارات مصغرة لها. ستكون مسؤولاً عن تصغير الحزمة النهائية بنفسك.
189189

190-
CommonJS and ES Module builds also preserve raw checks for `process.env.NODE_ENV` to determine the mode they should run in. You should use appropriate bundler configurations to replace these environment variables in order to control which mode Vue will run in. Replacing `process.env.NODE_ENV` with string literals also allows minifiers like UglifyJS to completely drop the development-only code blocks, reducing final file size.
190+
تحافظ إصدارات CommonJS و ES Module أيضًا على عمليات التحقق الأولية لـ `process.env.NODE_ENV` لتحديد الوضع الذي يجب أن تعمل فيه. يجب استخدام حزم المفسر المناسبة لاستبدال متغيرات البيئة هذه للتحكم في الوضع الذي سيتم تشغيل Vue فيه. تسمح عملية process.env.NODE_ENV` التي تحتوي على نصوص حرفية أيضًا للمُصغرات مثل UglifyJS بإسقاط كتل التعليمات البرمجية للتطوير فقط ، مما يقلل من حجم الملف النهائي.
191191

192192
#### Webpack
193193

194-
In Webpack 4+, you can use the `mode` option:
194+
في حزمة الويب 4+, يمكنك إستخدام إختيار ال `mode`:
195195

196196
``` js
197197
module.exports = {
198198
mode: 'production'
199199
}
200200
```
201201

202-
But in Webpack 3 and earlier, you'll need to use [DefinePlugin](https://webpack.js.org/plugins/define-plugin/):
202+
و لكن في "Webpack 3" أو أقل, ستحتاج إلى استخدام [DefinePlugin](https://webpack.js.org/plugins/define-plugin/):
203203

204204
``` js
205205
var webpack = require('webpack')
@@ -219,7 +219,7 @@ module.exports = {
219219

220220
#### Rollup
221221

222-
Use [rollup-plugin-replace](https://github.com/rollup/rollup-plugin-replace):
222+
إستخدم [rollup-plugin-replace](https://github.com/rollup/rollup-plugin-replace):
223223

224224
``` js
225225
const replace = require('rollup-plugin-replace')
@@ -236,19 +236,19 @@ rollup({
236236

237237
#### Browserify
238238

239-
Apply a global [envify](https://github.com/hughsk/envify) transform to your bundle.
239+
قم بتقديم تحويل [envify](https://github.com/hughsk/envify) عام إلى حزمتك.
240240

241241
``` bash
242242
NODE_ENV=production browserify -g envify -e main.js | uglifyjs -c -m > build.js
243243
```
244244

245-
Also see [Production Deployment Tips](deployment.html).
245+
إطلع أيضاً على [Production Deployment Tips](deployment.html).
246246

247247
### CSP environments
248248

249-
Some environments, such as Google Chrome Apps, enforce Content Security Policy (CSP), which prohibits the use of `new Function()` for evaluating expressions. The full build depends on this feature to compile templates, so is unusable in these environments.
249+
تفرض بعض البيئات ، مثل Google Chrome تطبيقات ، سياسة أمان المحتوى (CSP) ، والتي تحظر استخدام `` الوظيفة الجديدة () '' لتقييم التعبيرات. يعتمد البناء الكامل على هذه الميزة لتجميع القوالب ، لذا فهو غير قابل للاستخدام في هذه البيئات.
250250

251-
On the other hand, the runtime-only build is fully CSP-compliant. When using the runtime-only build with [Webpack + vue-loader](https://github.com/vuejs-templates/webpack-simple) or [Browserify + vueify](https://github.com/vuejs-templates/browserify-simple), your templates will be precompiled into `render` functions which work perfectly in CSP environments.
251+
من ناحية أخرى ، فإن بناء وقت التشغيل فقط متوافق تمامًا مع CSP. عند استخدام إصدار وقت التشغيل فقط مع [Webpack + vue-loader] (https://github.com/vuejs-templates/webpack-simple) أو [Browserify + vueify] (https://github.com/vuejs-templates / browserify-simple) ، سيتم تجميع القوالب الخاصة بك مسبقًا في وظائف "تقديم" التي تعمل بشكل مثالي في بيئات CSP.
252252

253253
## إصدار التطوير
254254

0 commit comments

Comments
 (0)