Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sfc-syntax-specification #145

Merged
merged 5 commits into from
Jan 8, 2024

Conversation

imblackline
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Jan 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-fa ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2024 0:14am

Copy link
Member

@mostafa-nematpour mostafa-nematpour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution.
Review the changes and accept them.

You can use this to fix *.vue direction:
Screenshot_2023-12-10_15_06_48


- Contents will be extracted and passed on to `@vue/compiler-dom`, pre-compiled into JavaScript render functions, and attached to the exported component as its `render` option.
- محتویات این بلوک استخراج و به `vue/compiler-dom@` منتقل می‌شوند، از قبل در توابع رندر جاوا اسکریپت کامپایل می‌شوند و به‌عنوان گزینه `render` به کامپوننت صادر شده پیوست می‌شوند.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- محتویات این بلوک استخراج و به `vue/compiler-dom@` منتقل می‌شوند، از قبل در توابع رندر جاوا اسکریپت کامپایل می‌شوند و به‌عنوان گزینه `render` به کامپوننت صادر شده پیوست می‌شوند.
- محتویات این بلوک استخراج و به `vue/compiler-dom@` منتقل می‌شوند، از قبل در توابع رندر جاوا اسکریپت کامپایل می‌شوند و به‌عنوان آپشن `render` به کامپوننت صادر شده پیوست می‌شوند.


Handling of Custom Blocks will depend on tooling - if you want to build your own custom block integrations, see the [SFC custom block integrations tooling section](/guide/scaling-up/tooling#sfc-custom-block-integrations) for more details.
## استنتاج خودکار نام {#automatic-name-inference}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## استنتاج خودکار نام {#automatic-name-inference}
## پیش‌بینی خودکار نام {#automatic-name-inference}

An SFC automatically infers the component's name from its **filename** in the following cases:
- قالب بندی هشدار توسعه (Dev warning formatting)
- بازرسی DevTools یا (DevTools inspection)
- ارجاع بازگشتی به خود، به عنوان مثال فایلی به نام `FooBar.vue` می‌تواند در قالب خود به `<FooBar/>` اشاره کند. این اولویت کمتری نسبت به کامپوننت های صریحا ثبت‌شده/ایمپورت شده دارد.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- ارجاع بازگشتی به خود، به عنوان مثال فایلی به نام `FooBar.vue` می‌تواند در قالب خود به `<FooBar/>` اشاره کند. این اولویت کمتری نسبت به کامپوننت های صریحا ثبت‌شده/ایمپورت شده دارد.
- ارجاع بازگشتی به خود، به عنوان مثال فایلی به نام `FooBar.vue` می‌تواند در تمپلیت خود به `<FooBar/>` اشاره کند. این اولویت کمتری نسبت به کامپوننت های صریحا ثبت‌شده/ایمپورت شده دارد.

An SFC automatically infers the component's name from its **filename** in the following cases:
- قالب بندی هشدار توسعه (Dev warning formatting)
- بازرسی DevTools یا (DevTools inspection)
- ارجاع بازگشتی به خود، به عنوان مثال فایلی به نام `FooBar.vue` می‌تواند در قالب خود به `<FooBar/>` اشاره کند. این اولویت کمتری نسبت به کامپوننت های صریحا ثبت‌شده/ایمپورت شده دارد.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- ارجاع بازگشتی به خود، به عنوان مثال فایلی به نام `FooBar.vue` می‌تواند در قالب خود به `<FooBar/>` اشاره کند. این اولویت کمتری نسبت به کامپوننت های صریحا ثبت‌شده/ایمپورت شده دارد.
- ارجاع بازگشتی به خود، به عنوان مثال فایلی به نام `FooBar.vue` می‌تواند در تمپلیت خود به `<FooBar/>` اشاره کند. این اولویت کمتری نسبت به کامپوننت های صریحا ثبت‌شده/ایمپورت شده دارد.

@imblackline
Copy link
Contributor Author

Thank you for your corrections 🙏🏻
I fixed them in a new commit
@mostafa-nematpour

@mostafa-nematpour mostafa-nematpour merged commit 3e8fdea into vuejs-translations:main Jan 8, 2024
1 check passed
@mostafa-nematpour mostafa-nematpour changed the title Page api/sfc-spec sfc-syntax-specification Jan 8, 2024
@mostafa-nematpour
Copy link
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants