Skip to content

[DONE] translate <progress> page #491

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

Merged
merged 3 commits into from
Jun 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/content/reference/react-dom/components/progress.md
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please review my commits

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @A7med3bdulBaset
Thank you for your commit, I appreciate it
I'm curios why you went for عرض instead of تصيير although in the glossary the translation for rendering is تصيير, is there any rule or special cases when I should use the first and when I should go for the second?

Copy link
Collaborator

Choose a reason for hiding this comment

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

على حسب السياق

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: "<progress>"

<Intro>

The [built-in browser `<progress>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) lets you render a progress indicator.
يتيح لك [مكون `<progress>` المدمَج في المتصفح](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) عرض مؤشر التقدم

```js
<progress value={0.5} />
Expand All @@ -16,36 +16,36 @@ The [built-in browser `<progress>` component](https://developer.mozilla.org/en-U

---

## Reference {/*reference*/}
## المرجع {/*reference*/}

### `<progress>` {/*progress*/}

To display a progress indicator, render the [built-in browser `<progress>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) component.
لعرض مؤشر التقدم، استخدم عنصر [`<progress>` المدمج في المتصفح](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress)

```js
<progress value={0.5} />
```

[See more examples below.](#usage)
[اطّلع على المزيد من الأمثلة في الأسفل.](#usage)

#### Props {/*props*/}
### الخصائص {/*props*/}

`<progress>` supports all [common element props.](/reference/react-dom/components/common#props)
يدعم `<progress>` جميع [خصائص العناصر الشائعة](/reference/react-dom/components/common#props)

Additionally, `<progress>` supports these props:
بالإضافة إلى ذالك، يدعم `<progress>` هذه الخصائص:

* [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-max): A number. Specifies the maximum `value`. Defaults to `1`.
* [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-value): A number between `0` and `max`, or `null` for indeterminate progress. Specifies how much was done.
* [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-max): رقم. يحدد القيمة `value` القصوى. القيمة الافتراضية هي `1`.
* [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-value): رقم بين `0` و `max`، أو `null` للتقدم غير المحدد. يحدد مدى الانجاز.

---

## Usage {/*usage*/}
## الاستخدام {/*usage*/}

### Controlling a progress indicator {/*controlling-a-progress-indicator*/}
### التحكم في مؤشر التقدم {/*controlling-a-progress-indicator*/}

To display a progress indicator, render a `<progress>` component. You can pass a number `value` between `0` and the `max` value you specify. If you don't pass a `max` value, it will assumed to be `1` by default.
لعرض مؤشر التقدم قم بتصيير مكون `<progress>`، يمكنك تمرير قيمة رقمية `value` بين `0` و القيمة القصوى `max` التي تحددها. إذا لم تمرر قيمة قصوى `max`، فبشكل افتراضي ستكون `1`.

If the operation is not ongoing, pass `value={null}` to put the progress indicator into an indeterminate state.
إذا لم تكن العملية جارية، قم بتمرير `value={null}` لوضع مؤشر التقدم في حالة غير محددة.

<Sandpack>

Expand Down