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

Translate Add React to a Website #96

Merged
merged 5 commits into from
Feb 22, 2019

Conversation

shvedovskiy
Copy link
Contributor

No description provided.

@shvedovskiy shvedovskiy mentioned this pull request Feb 12, 2019
88 tasks
@another-guy another-guy added the needs review A pull request ready to be reviewed label Feb 12, 2019
Copy link
Member

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

Спасибо! Нужно больше поработать над упрощением предложений. Избегайте нагромождения существительных и неестественного языка.

content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved
@another-guy another-guy added the work in progress Author opened the pull-request but it's still being worked on label Feb 12, 2019
@another-guy another-guy self-assigned this Feb 16, 2019
@lex111 lex111 removed the work in progress Author opened the pull-request but it's still being worked on label Feb 19, 2019

The majority of websites aren't, and don't need to be, single-page apps. With **a few lines of code and no build tooling**, try React in a small part of your website. You can then either gradually expand its presence, or keep it contained to a few dynamic widgets.
Большинство сайтов в Интернете является обычными HTML-страницами. Даже если ваш сайт не относится к одностраничным приложениям, вы можете добавить на него React, написав **всего несколько строк кода без каких-либо инструментов сборки**. В зависимости от целей, вы можете постепенно переносить на React весь сайт, а можете переписать всего несколько виджетов.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Большинство сайтов в Интернете является обычными HTML-страницами. Даже если ваш сайт не относится к одностраничным приложениям, вы можете добавить на него React, написав **всего несколько строк кода без каких-либо инструментов сборки**. В зависимости от целей, вы можете постепенно переносить на React весь сайт, а можете переписать всего несколько виджетов.
Большинство сайтов в Интернете является обычными HTML-страницами. Даже если ваш сайт не относится к одностраничным приложениям, вы можете добавить в него React, написав **всего несколько строк кода без каких-либо инструментов сборки**. В зависимости от целей, вы можете постепенно переносить на React весь сайт, а можете переписать всего несколько виджетов.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Вот тут резануло на слух. Добавить в или на сайт?

@shvedovskiy @lex111

Copy link
Member

Choose a reason for hiding this comment

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

Согласен с твоим вариантом.

content/docs/add-react-to-a-website.md Outdated Show resolved Hide resolved

Commonly, you might want to display React components in multiple places on the HTML page. Here is an example that displays the "Like" button three times and passes some data to it:
Зачастую, вам может понадобиться отобразить React-компонент в нескольких местах одной и той же HTML-страницы. Вот как можно показать сразу три кнопок «Like» с разными данными:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Зачастую, вам может понадобиться отобразить React-компонент в нескольких местах одной и той же HTML-страницы. Вот как можно показать сразу три кнопок «Like» с разными данными:
Зачастую, вам может понадобиться отобразить React-компонент в нескольких местах одной и той же HTML-страницы. Вот как можно показать сразу три кнопки «Like» с разными данными:


Adding JSX to a project doesn't require complicated tools like a bundler or a development server. Essentially, adding JSX **is a lot like adding a CSS preprocessor.** The only requirement is to have [Node.js](https://nodejs.org/) installed on your computer.
JSX можно добавить в существующий проект и без всяких сложных инструментов вроде сборщика или сервера для разработки. По сути, **добавление JSX напоминает добавление препроцессора CSS**. Необходимо лишь убедиться, что на вашем компьютере установлен [Node.js](https://nodejs.org/).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
JSX можно добавить в существующий проект и без всяких сложных инструментов вроде сборщика или сервера для разработки. По сути, **добавление JSX напоминает добавление препроцессора CSS**. Необходимо лишь убедиться, что на вашем компьютере установлен [Node.js](https://nodejs.org/).
JSX можно добавить в существующий проект и без разных сложных инструментов вроде сборщика или сервера для разработки. По сути, **добавление JSX напоминает добавление препроцессора CSS**. Необходимо лишь убедиться, что на вашем компьютере установлен [Node.js](https://nodejs.org/).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Мне кажется, тут всяких звучит совсем уж как просторечие.

Copy link
Collaborator

Choose a reason for hiding this comment

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

И, кстати, снова сборщик/бандлер...

Copy link
Member

Choose a reason for hiding this comment

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

👍

@another-guy
Copy link
Collaborator

Почти аппрув. Одна опечатка и парочка вопросов.

Очень хорошо! Спасибо, @shvedovskiy !

@another-guy another-guy removed their assignment Feb 20, 2019
@another-guy another-guy added work in progress Author opened the pull-request but it's still being worked on and removed needs review A pull request ready to be reviewed labels Feb 20, 2019
@shvedovskiy
Copy link
Contributor Author

@another-guy, поправил замечания


---

- [Добавляем React за одну минуту](#add-react-in-one-minute)
- [Необязательно: Используем React с JSX](#optional-try-react-with-jsx) (без каких-либо сборщиков!)
- [Необязательно: Используем React с JSX](#optional-try-react-with-jsx) (без каких-либо бандлеров!)
Copy link
Member

Choose a reason for hiding this comment

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

Что-то у нас путаница: сборщики или бандлеры?

cc @another-guy

Copy link
Collaborator

@another-guy another-guy Feb 22, 2019

Choose a reason for hiding this comment

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

В глоссарии "бандлер" давно, вообще-то. Я не знаю, откуда "сборщик" в половине текстов. 🤷‍♂️

Предложение: эту ветку смёржить "as is". Завести issue про то, чтобы договориться уже и сделать вычитку на предмет сборщик/бандлер. Не хочется блокировать этот PR.

image

Copy link
Member

Choose a reason for hiding this comment

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

Согласен

@netlify
Copy link

netlify bot commented Feb 22, 2019

Deploy preview for ru-reactjs ready!

Built with commit 3fc7afd

https://deploy-preview-96--ru-reactjs.netlify.com

@another-guy another-guy added needs proofread A read-through is still needed to release the document and removed work in progress Author opened the pull-request but it's still being worked on labels Feb 22, 2019
@another-guy another-guy merged commit feec4c9 into reactjs:master Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs proofread A read-through is still needed to release the document
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants