-
Notifications
You must be signed in to change notification settings - Fork 391
Add Russian translation for components-select-page #1017
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
base: main
Are you sure you want to change the base?
Add Russian translation for components-select-page #1017
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dimentoree Спасибо за отличный перевод — в целом всё очень понятно и аккуратно оформлено!
Есть пара ошибок и несколько предложений по формулировкам, чтобы сделать текст ещё более понятным.
Отметил всё в инлайне — надеюсь, будет полезно. Спасибо за вашу работу!
@@ -4,12 +4,12 @@ title: "<select>" | |||
|
|||
<Intro> | |||
|
|||
The [built-in browser `<select>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select) lets you render a select box with options. | |||
[Встроенный в браузер компонент `<select>`](https://developer.mozilla.org/ru/docs/Web/HTML/Element/select) отвечает за рендер поля выбора с пунктами списка. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Предлагаю поменять Встроенный в браузер компонент
на HTML-элемент
.
Это ближе к терминологии MDN и технически точнее.
|
||
If your `<select>` is uncontrolled, you may pass the `defaultValue` prop instead: | ||
Если `<select>` является неуправляемым, то нужно передать проп `defaultValue`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вы хорошо перевели, но можно сделать чуть более доступно.
Предложение по улучшению формулировки:
Если <select> является неуправляемым, то нужно передать проп defaultValue:
-> Если вы не передаёте value, то <select> считается неуправляемым, и нужно использовать defaultValue.
- В отличие от HTML, передача атрибута `selected` в `<option>` не поддерживается. Вместо этого используется [`<select defaultValue>`](#providing-an-initially-selected-option) для неуправляемого поля выбора и [`<select value>`](#controlling-a-select-box-with-a-state-variable) для управляемого. | ||
- Если поле выбора принимает проп `value`, то оно будет [считаться управляемым.](#controlling-a-select-box-with-a-state-variable) | ||
- Поле выбора не может быть одновременно управляемым и неуправляемым. | ||
- Поле выбора не может переключаться между управляемым и неуправляемым состоянием в течении своего жизненного цикла. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут небольшая орфографическая ошибка:
в течении - в течение
|
||
Pass `multiple={true}` to the `<select>` to let the user select multiple options. In that case, if you also specify `defaultValue` to choose the initially selected options, it must be an array. | ||
Чтобы пользователь мог выбрать несоклько вариантов, нужно передать `multiple={true}` в `<select>`. В этом случае, если также указать `defaultValue` для выбора вариантов по умолчанию, то это должен быть массив. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут небольшая орфографическая ошибка:
несоклько - несколько
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Спасибо за перевод! Ещё пара небольших комментариев
|
||
`<select>` supports all [common element props.](/reference/react-dom/components/common#props) | ||
`<select>` поддерживает все [пропсы общих HTML-элементов.](/reference/react-dom/components/common#props) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут common относится к props, так что будет точнее "общие пропсы HTML-элементов" или "стандартные пропсы HTML-элементов"
|
||
Typically, you will place every `<select>` inside a [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label) tag. This tells the browser that this label is associated with that select box. When the user clicks the label, the browser will automatically focus the select box. It's also essential for accessibility: a screen reader will announce the label caption when the user focuses the select box. | ||
Обычно, каждый `<select>` размещают внутри тега [`<label>`](https://developer.mozilla.org/ru/docs/Web/HTML/Element/label). Это сообщает браузеру, что данная метка связана с этим полем выбора. Когда пользователь нажмёт на метку, браузер автоматически установит фокус на поле выбора. Это также важно для доступности: когда пользовательский фокус будет на поле выбора, скринридер озвучит заголовок метки. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Обычно, каждый `<select>` размещают внутри тега [`<label>`](https://developer.mozilla.org/ru/docs/Web/HTML/Element/label). Это сообщает браузеру, что данная метка связана с этим полем выбора. Когда пользователь нажмёт на метку, браузер автоматически установит фокус на поле выбора. Это также важно для доступности: когда пользовательский фокус будет на поле выбора, скринридер озвучит заголовок метки. | |
Обычно каждый `<select>` размещают внутри тега [`<label>`](https://developer.mozilla.org/ru/docs/Web/HTML/Element/label). Это сообщает браузеру, что данная метка связана с этим полем выбора. Когда пользователь нажмёт на метку, браузер автоматически установит фокус на поле выбора. Это также важно для доступности: когда пользовательский фокус будет на поле выбора, скринридер озвучит заголовок метки. |
Обычно - не является вводным словом в русском, соответственно не выделяется запятой
No description provided.