-
Notifications
You must be signed in to change notification settings - Fork 385
Translation codebase overview #427
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
Conversation
Deploy preview for ru-reactjs ready! Built with commit d9358d9 |
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.
Привет, исправление опечаток
Co-Authored-By: Leonid Fedorov <lfedorov@live.com>
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.
Спасибо большое за перевод. 👍
Предлагаю такие улучшения:
content/docs/codebase-overview.md
Outdated
|
||
We don't necessarily recommend any of these conventions in React apps. Many of them exist for historical reasons and might change with time. | ||
Мы считаем, что вам не обязательно следовать этим соглашениям в ваших React приложениях. Многие из этих соглашений существуют по историческим причинам и могут быть изменены со временем. |
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.
Мы считаем, что вам не обязательно следовать этим соглашениям в ваших React приложениях. Многие из этих соглашений существуют по историческим причинам и могут быть изменены со временем. | |
Мы не обязательно рекомендуем какие-либо из этих соглашений в приложениях React. Многие из этих соглашений существуют по историческим причинам и могут измениться со временем. |
Возможно Reconsiler можно перевести как согласователь. раз reconciliation мы утвердили, как согласование |
Co-Authored-By: Anton Ahatov <anton@gcor.ru>
@BogdanDor давайте закончим перевод, осталось решить как перевести reconciler, @gcor верно указал на вариант "согласователь", как вам? |
Термина reconciler нет в соглашении по переводу (файл TRANSLATION.md). Я предлагаю пока оставить reconciler, а в последующих коммитах уже добавить в глоссарий терминов перевод и сделать изменения в нужных местах. |
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.
@BogdanDor давайте тогда переведем его как "согласователь", потому что "reconciliation" есть в соглашении, логично перевести это производное слово соответствующим образом.
content/docs/codebase-overview.md
Outdated
|
||
We don't necessarily recommend any of these conventions in React apps. Many of them exist for historical reasons and might change with time. | ||
Мы считаем, что вам не обязательно следовать этим соглашениям в ваших React приложениях. Многие из этих соглашений существуют по историческим причинам и могут быть изменены со временем. |
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.
Мы считаем, что вам не обязательно следовать этим соглашениям в ваших React приложениях. Многие из этих соглашений существуют по историческим причинам и могут быть изменены со временем. | |
Мы считаем, что вам не обязательно следовать этим соглашениям в ваших React-приложениях. Многие из этих соглашений существуют по историческим причинам и могут быть изменены со временем. |
content/docs/codebase-overview.md
Outdated
|
||
React has almost no external dependencies. Usually, a `require()` points to a file in React's own codebase. However, there are a few relatively rare exceptions. | ||
React, в основном, не имеет внеших зависимостей. Обычно `require()` указывает на файл, который находится в репозитории React. Однако существует несколько исключений. |
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.
React, в основном, не имеет внеших зависимостей. Обычно `require()` указывает на файл, который находится в репозитории React. Однако существует несколько исключений. | |
React, в основном, не имеет внешних зависимостей. Обычно `require()` указывает на файл, который находится в репозитории React. Однако существует несколько исключений. |
content/docs/codebase-overview.md
Outdated
|
||
The [fbjs repository](https://github.com/facebook/fbjs) exists because React shares some small utilities with libraries like [Relay](https://github.com/facebook/relay), and we keep them in sync. We don't depend on equivalent small modules in the Node ecosystem because we want Facebook engineers to be able to make changes to them whenever necessary. None of the utilities inside fbjs are considered to be public API, and they are only intended for use by Facebook projects such as React. | ||
Существует [репозиторий fbjs](https://github.com/facebook/fbjs), для того, чтобы React мог использовать общий код с библиотеками наподобии [Relay](https://github.com/facebook/relay). React не имеет зависимостей от модулей из экосистемы Node, для того, чтобы разработчики Facebook могли вносить изменения тогда, когда они им необходимы. fbjs не имеет внешнего API, а все его внутренние модули используются только проектами Facebook, например React. |
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.
Сменил фокус и уточнил.
Существует [репозиторий fbjs](https://github.com/facebook/fbjs), для того, чтобы React мог использовать общий код с библиотеками наподобии [Relay](https://github.com/facebook/relay). React не имеет зависимостей от модулей из экосистемы Node, для того, чтобы разработчики Facebook могли вносить изменения тогда, когда они им необходимы. fbjs не имеет внешнего API, а все его внутренние модули используются только проектами Facebook, например React. | |
Существует [репозиторий fbjs](https://github.com/facebook/fbjs) потому что React совместно использует небольшие вспомогательные функции и код с такими библиотеками как [Relay](https://github.com/facebook/relay). React не имеет зависимостей от модулей из экосистемы Node, чтобы разработчики Facebook могли вносить изменения тогда, когда они им необходимы. Никакая часть внутри fbjs не должна считаться за общедоступный API, поскольку он предназначен только для использования проектами Facebook, например React. |
content/docs/codebase-overview.md
Outdated
|
||
After cloning the [React repository](https://github.com/facebook/react), you will see a few top-level folders in it: | ||
После копировния [репозитория React](https://github.com/facebook/react), вы увидите следующие верхнеуровневые каталоги: |
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.
После копировния [репозитория React](https://github.com/facebook/react), вы увидите следующие верхнеуровневые каталоги: | |
После клонирования [репозитория React](https://github.com/facebook/react), на верхнем уровне вы увидите следующие каталоги: |
content/docs/codebase-overview.md
Outdated
* [`fixtures`](https://github.com/facebook/react/tree/master/fixtures) contains a few small React test applications for contributors. | ||
* `build` is the build output of React. It is not in the repository but it will appear in your React clone after you [build it](/docs/how-to-contribute.html#development-workflow) for the first time. | ||
* [`packages`](https://github.com/facebook/react/tree/master/packages) содержит метаданные (такие как `package.json`) и исходный код (подкаталог `src`) для каждого пакета из репозитория React. **Если ваши изменения связаны с кодом, то подкаталог `src` внутри каждого пакета, это то место, где вы будете проводить большую часть времени.** | ||
* [`fixtures`](https://github.com/facebook/react/tree/master/fixtures) содержит несколько небольших React приложений для контрибьютеров. |
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.
* [`fixtures`](https://github.com/facebook/react/tree/master/fixtures) содержит несколько небольших React приложений для контрибьютеров. | |
* [`fixtures`](https://github.com/facebook/react/tree/master/fixtures) содержит несколько небольших React-приложений для контрибьюторов. |
content/docs/codebase-overview.md
Outdated
|
||
We don't have a top-level directory for unit tests. Instead, we put them into a directory called `__tests__` relative to the files that they test. | ||
У нас нет отдельной верхнеуровневой директории для юнит тестов. Вместо этого, мы помещаем их в директорию `__tests__`, расположенную рядом с файлами, которые необходимо протестировать. |
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.
У нас нет отдельной верхнеуровневой директории для юнит тестов. Вместо этого, мы помещаем их в директорию `__tests__`, расположенную рядом с файлами, которые необходимо протестировать. | |
У нас нет отдельной верхнеуровневой директории для модульных тестов. Вместо этого мы помещаем их в директорию `__tests__`, расположенную рядом с файлами, которые необходимо протестировать. |
|
||
For example, a test for [`setInnerHTML.js`](https://github.com/facebook/react/blob/87724bd87506325fcaf2648c70fc1f43411a87be/src/renderers/dom/client/utils/setInnerHTML.js) is located in [`__tests__/setInnerHTML-test.js`](https://github.com/facebook/react/blob/87724bd87506325fcaf2648c70fc1f43411a87be/src/renderers/dom/client/utils/__tests__/setInnerHTML-test.js) right next to it. | ||
Например, тесты для [`setInnerHTML.js`](https://github.com/facebook/react/blob/87724bd87506325fcaf2648c70fc1f43411a87be/src/renderers/dom/client/utils/setInnerHTML.js) расположены в [`__tests__/setInnerHTML-test.js`](https://github.com/facebook/react/blob/87724bd87506325fcaf2648c70fc1f43411a87be/src/renderers/dom/client/utils/__tests__/setInnerHTML-test.js). |
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.
Например, тесты для [`setInnerHTML.js`](https://github.com/facebook/react/blob/87724bd87506325fcaf2648c70fc1f43411a87be/src/renderers/dom/client/utils/setInnerHTML.js) расположены в [`__tests__/setInnerHTML-test.js`](https://github.com/facebook/react/blob/87724bd87506325fcaf2648c70fc1f43411a87be/src/renderers/dom/client/utils/__tests__/setInnerHTML-test.js). | |
Например, тесты для [`setInnerHTML.js`](https://github.com/facebook/react/blob/87724bd87506325fcaf2648c70fc1f43411a87be/src/renderers/dom/client/utils/setInnerHTML.js) находятся в [`__tests__/setInnerHTML-test.js`](https://github.com/facebook/react/blob/87724bd87506325fcaf2648c70fc1f43411a87be/src/renderers/dom/client/utils/__tests__/setInnerHTML-test.js). |
content/docs/codebase-overview.md
Outdated
); | ||
didWarnAboutMath = true; | ||
} | ||
``` | ||
|
||
Warnings are only enabled in development. In production, they are completely stripped out. If you need to forbid some code path from executing, use `invariant` module instead: | ||
Предупреждения вкючены только в режиме разработки и полностью вырезаны из продакшена. Если вам необходимо запретить выполнение какого-либо кода, тогда используйте модуль `invariant`: |
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.
Предупреждения вкючены только в режиме разработки и полностью вырезаны из продакшена. Если вам необходимо запретить выполнение какого-либо кода, тогда используйте модуль `invariant`: | |
Предупреждения отображаются только при разработке и полностью удалены из продакшен-сборки. Если вам необходимо запретить выполнение какого-либо кода, тогда используйте модуль `invariant`: |
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.
Few changes
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.
@gcor посмотри ещё раз, пожалуйста, и если всё ок, то сливай этот пулреквест.
No description provided.