From b68fb4c1597e3f68cacfb48cea71521f0fc94392 Mon Sep 17 00:00:00 2001 From: Alireza Hamid Date: Sat, 23 Sep 2023 18:58:49 +0100 Subject: [PATCH] translate: introduction and side bar menu --- .vitepress/config.ts | 74 +++++++-------- .vscode/settings.json | 3 + src/examples/src/grid/App/template.html | 7 +- src/guide/introduction.md | 115 ++++++++++++------------ src/index.md | 2 +- 5 files changed, 103 insertions(+), 98 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vitepress/config.ts b/.vitepress/config.ts index bde68164..b6cca2f3 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -134,48 +134,48 @@ const nav: ThemeConfig['nav'] = [ export const sidebar: ThemeConfig['sidebar'] = { '/guide/': [ { - text: 'Getting Started', + text: 'شروع به کار', items: [ - { text: 'Introduction', link: '/guide/introduction' }, + { text: 'مقدمه', link: '/guide/introduction' }, { - text: 'Quick Start', + text: 'راه‌اندازی سریع', link: '/guide/quick-start' } ] }, { - text: 'Essentials', + text: 'اصول', items: [ { - text: 'Creating an Application', + text: 'ایجاد یک برنامه', link: '/guide/essentials/application' }, { - text: 'Template Syntax', + text: 'سینتکس Template', link: '/guide/essentials/template-syntax' }, { - text: 'Reactivity Fundamentals', + text: 'اصول پایه‌ای واکنش‌پذیری', link: '/guide/essentials/reactivity-fundamentals' }, { - text: 'Computed Properties', + text: 'Computed', link: '/guide/essentials/computed' }, { - text: 'Class and Style Bindings', + text: 'استایل', link: '/guide/essentials/class-and-style' }, { - text: 'Conditional Rendering', + text: 'رندر کردن شرطی', link: '/guide/essentials/conditional' }, - { text: 'List Rendering', link: '/guide/essentials/list' }, + { text: 'رندر کردن لیست', link: '/guide/essentials/list' }, { - text: 'Event Handling', + text: 'Event', link: '/guide/essentials/event-handling' }, - { text: 'Form Input Bindings', link: '/guide/essentials/forms' }, + { text: 'فرم ها', link: '/guide/essentials/forms' }, { text: 'Lifecycle Hooks', link: '/guide/essentials/lifecycle' @@ -183,13 +183,13 @@ export const sidebar: ThemeConfig['sidebar'] = { { text: 'Watchers', link: '/guide/essentials/watchers' }, { text: 'Template Refs', link: '/guide/essentials/template-refs' }, { - text: 'Components Basics', + text: 'مبانی کامپوننت‌ها', link: '/guide/essentials/component-basics' } ] }, { - text: 'Components In-Depth', + text: 'کامپوننت‌ها به‌طور عمیق', items: [ { text: 'Registration', @@ -197,12 +197,12 @@ export const sidebar: ThemeConfig['sidebar'] = { }, { text: 'Props', link: '/guide/components/props' }, { text: 'Events', link: '/guide/components/events' }, - { text: 'Component v-model', link: '/guide/components/v-model' }, + { text: 'v-model', link: '/guide/components/v-model' }, { text: 'Fallthrough Attributes', link: '/guide/components/attrs' }, - { text: 'Slots', link: '/guide/components/slots' }, + { text: 'اسلات‌ها', link: '/guide/components/slots' }, { text: 'Provide / inject', link: '/guide/components/provide-inject' @@ -214,7 +214,7 @@ export const sidebar: ThemeConfig['sidebar'] = { ] }, { - text: 'Reusability', + text: 'قابلیت استفاده مجدد', items: [ { text: 'Composables', @@ -224,11 +224,11 @@ export const sidebar: ThemeConfig['sidebar'] = { text: 'Custom Directives', link: '/guide/reusability/custom-directives' }, - { text: 'Plugins', link: '/guide/reusability/plugins' } + { text: 'افزونه‌ها', link: '/guide/reusability/plugins' } ] }, { - text: 'Built-in Components', + text: 'کامپوننت‌های داخلی', items: [ { text: 'Transition', link: '/guide/built-ins/transition' }, { @@ -241,7 +241,7 @@ export const sidebar: ThemeConfig['sidebar'] = { ] }, { - text: 'Scaling Up', + text: 'مقیاس‌بندی به بالا', items: [ { text: 'Single-File Components', link: '/guide/scaling-up/sfc' }, { text: 'Tooling', link: '/guide/scaling-up/tooling' }, @@ -258,69 +258,69 @@ export const sidebar: ThemeConfig['sidebar'] = { ] }, { - text: 'Best Practices', + text: 'بهترین روش‌ها', items: [ { text: 'Production Deployment', link: '/guide/best-practices/production-deployment' }, { - text: 'Performance', + text: 'کارایی', link: '/guide/best-practices/performance' }, { - text: 'Accessibility', + text: 'دسترسی‌پذیری', link: '/guide/best-practices/accessibility' }, { - text: 'Security', + text: 'امنیت', link: '/guide/best-practices/security' } ] }, { - text: 'TypeScript', + text: 'تایپ‌اسکریپت', items: [ - { text: 'Overview', link: '/guide/typescript/overview' }, + { text: 'بررسی کلی', link: '/guide/typescript/overview' }, { - text: 'TS with Composition API', + text: 'تایپ‌اسکریپت با API Composition', link: '/guide/typescript/composition-api' }, { - text: 'TS with Options API', + text: 'تایپ‌اسکریپت با API Options', link: '/guide/typescript/options-api' } ] }, { - text: 'Extra Topics', + text: 'موضوعات اضافی', items: [ { - text: 'Ways of Using Vue', + text: 'روش‌های استفاده از Vue', link: '/guide/extras/ways-of-using-vue' }, { - text: 'Composition API FAQ', + text: 'Composition API پرسش و پاسخ ', link: '/guide/extras/composition-api-faq' }, { - text: 'Reactivity in Depth', + text: 'واکنش‌پذیری به تفصیل', link: '/guide/extras/reactivity-in-depth' }, { - text: 'Rendering Mechanism', + text: 'مکانیزم رندر', link: '/guide/extras/rendering-mechanism' }, { - text: 'Render Functions & JSX', + text: 'توابع رندر و JSX', link: '/guide/extras/render-function' }, { - text: 'Vue and Web Components', + text: 'Vue و کامپوننت‌های وب', link: '/guide/extras/web-components' }, { - text: 'Animation Techniques', + text: 'تکنیک‌های انیمیشن', link: '/guide/extras/animation' } // { diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..1f2b05ce --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "nuxt.isNuxtApp": false +} \ No newline at end of file diff --git a/src/examples/src/grid/App/template.html b/src/examples/src/grid/App/template.html index c1909fb6..64337b65 100644 --- a/src/examples/src/grid/App/template.html +++ b/src/examples/src/grid/App/template.html @@ -1,8 +1,9 @@ - \ No newline at end of file + :filter-key="searchQuery" +> + diff --git a/src/guide/introduction.md b/src/guide/introduction.md index df293563..dd76dc5c 100644 --- a/src/guide/introduction.md +++ b/src/guide/introduction.md @@ -2,13 +2,13 @@ footer: false --- -# Introduction {#introduction} +# مقدمه {#introduction} -:::info You are reading the documentation for Vue 3! +:::info شما در حال مطالعه مستندات Vue 3 هستید! -- Vue 2 support will end on Dec 31, 2023. Learn more about [Vue 2 Extended LTS](https://v2.vuejs.org/lts/). -- Vue 2 documentation has been moved to [v2.vuejs.org](https://v2.vuejs.org/). -- Upgrading from Vue 2? Check out the [Migration Guide](https://v3-migration.vuejs.org/). +- پشتیبانی از Vue 2 در تاریخ Dec 31, 2023 پایان می یابد. اطلاعات بیشتر [Vue 2 Extended LTS](https://v2.vuejs.org/lts/). +- مستندات Vue 2 منتقل شده به [v2.vuejs.org](https://v2.vuejs.org/). +- اطلاعات بیشتر جهت ارتقا از Vue 2 [Migration Guide](https://v3-migration.vuejs.org/). ::: @@ -17,18 +17,18 @@ footer: false -

Learn Vue with video tutorials on VueMastery.com

+

یادگیری Vue در VueMastery.com

Vue Mastery Logo
-## What is Vue? {#what-is-vue} +## چیست Vue؟ {#what-is-vue} -Vue (pronounced /vjuː/, like **view**) is a JavaScript framework for building user interfaces. It builds on top of standard HTML, CSS, and JavaScript and provides a declarative and component-based programming model that helps you efficiently develop user interfaces, be they simple or complex. +Vue (که مانند واژه "view" خوانده می‌شود) یک فریمورک جاوا اسکریپت برای ساخت رابط کاربری است. این فریمورک بر بالای استانداردهای HTML، CSS و جاوا اسکریپت ساخته شده و یک مدل برنامه‌نویسی اعلامی و مبتنی بر کامپوننت را فراهم می‌کند که به شما کمک می‌کند به طور کارآمد رابط کاربری را توسعه دهید، چه ساده باشد یا پیچیده. -Here is a minimal example: +در اینجا یک نمونه ساده آورده شده است:
@@ -69,7 +69,7 @@ createApp({
``` -**Result** +**نتیجه**