Skip to content

Commit 179afa2

Browse files
committed
Upd
1 parent a65f121 commit 179afa2

File tree

12 files changed

+12
-71
lines changed

12 files changed

+12
-71
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,11 @@
4949

5050
### Отправка изменений
5151

52-
<<<<<<< HEAD
52+
1. `git add -A && git commit -m "Сообщение"` (вместо `Сообщение` напишите осмысленное название изменения, например `Исправление логотипа на Android`), чтобы добавить и зафиксировать изменение
53+
1. `git push my-fork-name the-name-of-my-branch`
5354
1. Перейдите на [страницу репозитория ru.reactjs.org](https://github.com/reactjs/ru.reactjs.org) и вы увидите уведомление с вашей веткой.
5455
1. Следуйте инструкциям на GitHub.
5556
1. По возможности добавьте скриншот с сделанными изменениями. Как только вы сделаете PR, автоматически будет создана версия сайта с вашими изменениями на [Netlify](https://www.netlify.com/).
56-
=======
57-
1. `git add -A && git commit -m "My message"` (replacing `My message` with a commit message, such as `Fix header logo on Android`) to stage and commit your changes
58-
1. `git push my-fork-name the-name-of-my-branch`
59-
1. Go to the [reactjs.org repo](https://github.com/reactjs/reactjs.org) and you should see recently pushed branches.
60-
1. Follow GitHub's instructions.
61-
1. If possible, include screenshots of visual changes. A preview build is triggered after your changes are pushed to GitHub.
62-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
6357

6458
## Перевод
6559

beta/src/components/SocialBanner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {ExternalLink} from './ExternalLink';
88

99
// TODO: Unify with the old site settings.
1010
// Turning this off also requires changing the Page top value to pull up the sidebar.
11-
const bannerText = 'Support Ukraine 🇺🇦';
11+
const bannerText = 'Поддержите Украину 🇺🇦';
1212
const bannerLink = 'https://opensource.fb.com/support-ukraine';
13-
const bannerLinkText = 'Help Provide Humanitarian Aid to Ukraine.';
13+
const bannerLinkText = 'Помогите с гуманитарной помощью Украине. Россияне, не молчите! Нет войне!';
1414

1515
export default function SocialBanner() {
1616
return (

content/blog/2019-02-23-is-react-translated-yet.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ author: [tesseralis]
4141

4242
Мы начали с пробного периода для трех языков: испанского, японского и с упрощенного китайского. Таким образом мы выработали методику и приняли меры, чтобы с будущими переводами не возникало проблем. Я хотела, чтобы команды по переводам имели свободу выбора удобных им инструментов. Единственным требованием был [чек-лист](https://github.com/reactjs/reactjs.org-translation/blob/master/PROGRESS.template.md), описывающий порядок перевода страниц.
4343

44-
<<<<<<< HEAD
45-
После пробного периода мы были готовы принимать другие переводы. Я создала [скрипт](https://github.com/reactjs/reactjs.org-translation/blob/master/scripts/create.js), чтобы автоматизировать создание репозиториев для новых языков, а также сайт [Is React Translated Yet?](https://isreacttranslatedyet.com) (А React уже переведён?), чтобы отслеживать прогресс тех или иных переводов. Уже в первый день мы начали целых *10* переводов!
46-
=======
47-
After the trial period, we were ready to accept more languages. I created [a script](https://github.com/reactjs/reactjs.org-translation/blob/master/scripts/create.js) to automate the creation of the new language repo, and a site, [Is React Translated Yet?](https://translations.reactjs.org), to track progress on the different translations. We started *10* new translations on our first day alone!
48-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
44+
After the trial period, we were ready to accept more languages. I created [a script](https://github.com/reactjs/reactjs.org-translation/blob/master/scripts/create.js) to automate the creation of the new language repo, and a site, [Is React Translated Yet?](https://isreacttranslatedyet.com), to track progress on the different translations. We started *10* new translations on our first day alone!
4945

5046
Благодаря этой автоматизации, последующая поддержка проекта по большей части шла гладко. Позже мы создали [Slack-канал](https://rt-slack-invite.herokuapp.com), чтобы переводчики могли удобно общаться между собой; также я выпустила руководство, которое закрепило [обязанности мейнтейнеров сообщества](https://github.com/reactjs/reactjs.org-translation/blob/master/maintainer-guide.md). Платформа для общения между переводчиками себя показала отлично -- к примеру, переводчики арабского, персидского и иврита смогли вместе добиться отображения [текста справа налево](https://en.wikipedia.org/wiki/Right-to-left)!
5147

content/docs/code-splitting.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,7 @@ const MyComponent = () => (
178178

179179
Часто таким удобным местом оказываются маршруты. Большинство интернет-пользователей привыкли к задержкам во время переходов между страницами. Поэтому и вам может быть выгодно повторно отрендерить всю страницу целиком. Это не позволит пользователям взаимодействовать с другими элементами на странице, пока происходит обновление.
180180

181-
<<<<<<< HEAD
182-
Вот пример того, как организовать разделение кода на основе маршрутов с помощью `React.lazy` и таких библиотек как [React Router](https://reacttraining.com/react-router/).
183-
=======
184-
Here's an example of how to setup route-based code splitting into your app using libraries like [React Router](https://reactrouter.com/) with `React.lazy`.
185-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
181+
Вот пример того, как организовать разделение кода на основе маршрутов с помощью `React.lazy` и таких библиотек как [React Router](https://reactrouter.com/).
186182

187183
```js
188184
import React, { Suspense, lazy } from 'react';
@@ -193,19 +189,11 @@ const About = lazy(() => import('./routes/About'));
193189

194190
const App = () => (
195191
<Router>
196-
<<<<<<< HEAD
197-
<Suspense fallback={<div>Загрузка...</div>}>
198-
<Switch>
199-
<Route exact path="/" component={Home}/>
200-
<Route path="/about" component={About}/>
201-
</Switch>
202-
=======
203192
<Suspense fallback={<div>Loading...</div>}>
204193
<Routes>
205194
<Route path="/" element={<Home />} />
206195
<Route path="/about" element={<About />} />
207196
</Routes>
208-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
209197
</Suspense>
210198
</Router>
211199
);

content/docs/create-a-new-react-app.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,7 @@ Create React App не обрабатывает бэкенд логику или
7777

7878
- **[Nx](https://nx.dev/react)** – набор инструментов для ведения фулстэк разработки в монорепозиториях, который обладает встроенной поддержкой React, Next.js, [Express](https://expressjs.com/) и так далее.
7979

80-
<<<<<<< HEAD
81-
- **[Parcel](https://parceljs.org/)** – быстрый упаковщик веб-приложений с нулевой конфигурацией, [который работает с React](https://parceljs.org/recipes.html#react).
82-
=======
83-
- **[Parcel](https://parceljs.org/)** is a fast, zero configuration web application bundler that [works with React](https://parceljs.org/recipes/react/).
84-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
80+
- **[Parcel](https://parceljs.org/)** – быстрый упаковщик веб-приложений с нулевой конфигурацией, [который работает с React](https://parceljs.org/recipes/react/).
8581

8682
- **[Razzle](https://github.com/jaredpalmer/razzle)** – это фреймворк для серверного рендеринга, более гибкий чем Next.js, но не требующий обязательной настройки.
8783

content/docs/faq-styling.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,4 @@ _Обратите внимание, что данная функциональн
4848

4949
### Можно создавать анимации в React? {#can-i-do-animations-in-react}
5050

51-
<<<<<<< HEAD
52-
React может использоваться для создания крутых анимаций! В качестве примера посмотрите библиотеки [React Transition Group](https://reactcommunity.org/react-transition-group/), [React Motion](https://github.com/chenglou/react-motion) или [React Spring](https://github.com/react-spring/react-spring).
53-
=======
54-
React can be used to power animations. See [React Transition Group](https://reactcommunity.org/react-transition-group/), [React Motion](https://github.com/chenglou/react-motion), [React Spring](https://github.com/react-spring/react-spring), or [Framer Motion](https://framer.com/motion), for example.
55-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
51+
React может использоваться для создания крутых анимаций! В качестве примера посмотрите библиотеки [React Transition Group](https://reactcommunity.org/react-transition-group/), [React Motion](https://github.com/chenglou/react-motion), [React Spring](https://github.com/react-spring/react-spring) или [Framer Motion](https://framer.com/motion).

content/docs/hooks-faq.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,7 @@ prev: hooks-reference.html
9797

9898
Наша главная задача, чтобы хуки покрывали всю функциональность классов в ближайшем будущем. Пока не существует хуков, реализующих методы жизненного цикла `getSnapshotBeforeUpdate`, `getDerivedStateFromError` и `componentDidCatch`, но мы планируем скоро их добавить.
9999

100-
<<<<<<< HEAD
101-
Хуки появились совсем недавно, и некоторые сторонние библиотеки могут быть ещё не совместимы с ними.
102-
103100
### Являются ли хуки заменой рендер-пропсам и компонентам высшего порядка? {#do-hooks-replace-render-props-and-higher-order-components}
104-
=======
105-
### Do Hooks replace render props and higher-order components? {#do-hooks-replace-render-props-and-higher-order-components}
106-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
107101

108102
Как правило, рендер-пропсы и компоненты высшего порядка рендерят только один дочерний компонент, увеличивая вложенность в дереве, но добавляя потомку новую функциональность. Мы думаем, что хуки — более простой способ сделать это. Оба подхода всё ещё имеют право на жизнь (например, компонент, следящий за скроллом, может иметь проп `renderItem` или компонент-контейнер может иметь разные рендер-пропсы для различных слотов). Но в большинстве случаев хуки должны помочь уменьшить вложенность компонентов в вашем дереве.
109103

content/docs/jsx-in-depth.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,7 @@ function NumberDescriber(props) {
233233

234234
### Атрибуты расширения {#spread-attributes}
235235

236-
<<<<<<< HEAD
237-
Если у вас уже есть пропсы внутри объекта `props` и вы хотите передать их в JSX, вы можете использовать оператор расширения `...`. Эти два компонента эквивалентны:
238-
=======
239-
If you already have `props` as an object, and you want to pass it in JSX, you can use `...` as a "spread" syntax to pass the whole props object. These two components are equivalent:
240-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
236+
Если у вас уже есть пропсы внутри объекта `props` и вы хотите передать их в JSX, вы можете использовать оператор расширения `...`, чтобы передать весь объект с пропсами. Эти два компонента эквивалентны:
241237

242238
```js{7}
243239
function App1() {
@@ -250,11 +246,7 @@ function App2() {
250246
}
251247
```
252248

253-
<<<<<<< HEAD
254249
Вы также можете выбрать конкретные пропсы, которые ваш компонент будет использовать, передавая все остальные пропсы с помощью оператора расширения.
255-
=======
256-
You can also pick specific props that your component will consume while passing all other props using the spread syntax.
257-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
258250

259251
```js{2}
260252
const Button = props => {

content/docs/rendering-elements.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@ const element = <h1>Hello, world</h1>;
6666

6767
React DOM сравнивает элемент и его дочернее дерево с предыдущей версией и вносит в DOM только минимально необходимые изменения.
6868

69-
<<<<<<< HEAD
70-
Вы можете убедиться в этом на [последнем примере](codepen://rendering-elements/update-rendered-element) с помощью инструментов разработки в браузере:
71-
=======
72-
You can verify by inspecting the [last example](https://codepen.io/gaearon/pen/gwoJZk?editors=1010) with the browser tools:
73-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
69+
Вы можете убедиться в этом на [последнем примере](https://codepen.io/gaearon/pen/gwoJZk?editors=1010) с помощью инструментов разработки в браузере:
7470

7571
![В DOM видно частичное обновление](../images/docs/granular-dom-updates.gif)
7672

content/tutorial/tutorial.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,11 +1054,7 @@ const doubled = numbers.map(x => x * 2); // [2, 4, 6]
10541054

10551055
**[Посмотреть полный код этого шага](https://codepen.io/gaearon/pen/EmmGEa?editors=0010)**
10561056

1057-
<<<<<<< HEAD
10581057
При итерации по массиву `history`, переменная `step` содержит текущее значение элемента `history`, а `move` — текущий индекс элемента `history`. Поскольку нам нужен только `move`, то `step` не используется.
1059-
=======
1060-
As we iterate through `history` array, `step` variable refers to the current `history` element value, and `move` refers to the current `history` element index. We are only interested in `move` here, hence `step` is not getting assigned to anything.
1061-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
10621058

10631059
Для каждого хода в истории игры мы создаём элемент списка `<li>`, который содержит кнопку `<button>`. У кнопки есть обработчик `onClick`, который вызывает метод `this.jumpTo()`. Мы ещё не реализовали этот `jumpTo()` метод. Пока что мы должны видеть только список ходов, которые были сделаны в игре и вот такое предупреждение в инструментах разработчика:
10641060

@@ -1165,11 +1161,8 @@ class Game extends React.Component {
11651161
// Этот метод не изменялся
11661162
}
11671163
```
1168-
<<<<<<< HEAD
1169-
=======
11701164

11711165
Notice in `jumpTo` method, we haven't updated `history` property of the state. That is because state updates are merged or in more simple words React will update only the properties mentioned in `setState` method leaving the remaining state as that is. For more info **[see the documentation](/docs/state-and-lifecycle.html#state-updates-are-merged)**.
1172-
>>>>>>> a08e1fd4b574a4d2d55e292af9eb01d55a526303
11731166

11741167
Обратите внимание, что в методе `jumpTo` мы не обновили свойство `history` состояния. Это потому, что обновления состояния объединяются или, проще говоря, React обновит только те свойства, которые были указаны в методе `setState` без изменения остальных свойств. Подробнее об этом читайте в **[документации](/docs/state-and-lifecycle.html#state-updates-are-merged)**.
11751168

0 commit comments

Comments
 (0)