Skip to content

Commit 2f3b546

Browse files
authored
Merge pull request #20 from reactjs/components
Перевод надписей в компонентах
2 parents 1e0e9e6 + 4860ae3 commit 2f3b546

File tree

8 files changed

+28
-29
lines changed

8 files changed

+28
-29
lines changed

gatsby-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
module.exports = {
1010
siteMetadata: {
11-
title: 'React: A JavaScript library for building user interfaces',
11+
title: 'React: JavaScript-библиотека для создания пользовательских интерфейсов',
1212
siteUrl: 'https://reactjs.org',
1313
rssFeedTitle: 'React',
14-
rssFeedDescription: 'A JavaScript library for building user interfaces',
14+
rssFeedDescription: 'JavaScript-библиотека для создания пользовательских интерфейсов',
1515
},
1616
mapping: {
1717
'MarkdownRemark.frontmatter.author': 'AuthorYaml',

src/components/CodeEditor/CodeEditor.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@ class CodeEditor extends Component {
5656
if (showBabelErrorMessage) {
5757
errorMessage = (
5858
<span>
59-
Babel could not be loaded.
59+
Не получилось загрузить Babel.
6060
<br />
6161
<br />
62-
This can be caused by an ad blocker. If you're using one, consider
63-
adding reactjs.org to the whitelist so the live code examples will
64-
work.
62+
Это может быть связано с блокировщиком рекламы. Если вы используете один из них,
63+
добавьте адрес reactjs.org в белый список, чтобы примеры кода заработали.
6564
</span>
6665
);
6766
} else if (error != null) {
@@ -99,7 +98,7 @@ class CodeEditor extends Component {
9998
color: colors.white,
10099
}}>
101100
<MetaTitle onDark={true}>
102-
Live JSX Editor
101+
Интерактивный JSX-редактор
103102
<label
104103
css={{
105104
fontSize: 14,
@@ -169,7 +168,7 @@ class CodeEditor extends Component {
169168
cssProps={{
170169
color: colors.white,
171170
}}>
172-
Error
171+
Ошибка
173172
</MetaTitle>
174173
</div>
175174
<pre
@@ -200,7 +199,7 @@ class CodeEditor extends Component {
200199
padding: '0 10px',
201200
backgroundColor: colors.divider,
202201
}}>
203-
<MetaTitle>Result</MetaTitle>
202+
<MetaTitle>Результат</MetaTitle>
204203
</div>
205204
<div
206205
id={containerNodeID}

src/components/CodeExample/CodeExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class CodeExample extends Component {
6161
{loaded ? (
6262
<CodeEditor code={code} containerNodeID={containerNodeID} />
6363
) : (
64-
<h4>Loading code example...</h4>
64+
<h4>Загрузка примера с кодом...</h4>
6565
)}
6666
</div>
6767
);

src/components/ErrorDecoder/ErrorDecoder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
6969
if (!code) {
7070
return (
7171
<p>
72-
When you encounter an error, you'll receive a link to this page for that
73-
specific error and we'll show you the full error text.
72+
Когда происходит ошибка, вы получите ссылку на эту страницу.
73+
На ней вы увидите полный текст конкретной ошибки.
7474
</p>
7575
);
7676
}
7777

7878
return (
7979
<div>
8080
<p>
81-
<b>The full text of the error you just encountered is:</b>
81+
<b>Полный текст обнаруженной ошибки:</b>
8282
</p>
8383
<code>
8484
<b>{urlify(errorMsg)}</b>

src/components/LayoutFooter/Footer.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
9090
href="https://discuss.reactjs.org"
9191
target="_blank"
9292
rel="noopener">
93-
Discussion Forum
93+
Форум
9494
</ExternalFooterLink>
9595
<ExternalFooterLink
9696
href="https://discord.gg/0ZcbPKXt5bZjGY5n"
9797
target="_blank"
9898
rel="noopener">
99-
Reactiflux Chat
99+
Чат Reactiflux
100100
</ExternalFooterLink>
101101
<ExternalFooterLink
102102
href="https://dev.to/t/react"
103103
target="_blank"
104104
rel="noopener">
105-
DEV Community
105+
Сообщество на DEV
106106
</ExternalFooterLink>
107107
<ExternalFooterLink
108108
href="https://www.facebook.com/react"
@@ -128,11 +128,11 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
128128
))}
129129
</FooterNav>
130130
<FooterNav layoutHasSidebar={layoutHasSidebar}>
131-
<MetaTitle onDark={true}>More</MetaTitle>
132-
<FooterLink to="/tutorial/tutorial.html">Tutorial</FooterLink>
133-
<FooterLink to="/blog/">Blog</FooterLink>
131+
<MetaTitle onDark={true}>Дополнительно</MetaTitle>
132+
<FooterLink to="/tutorial/tutorial.html">Учебник</FooterLink>
133+
<FooterLink to="/blog/">Блог</FooterLink>
134134
<FooterLink to="/acknowledgements.html">
135-
Acknowledgements
135+
Благодарности
136136
</FooterLink>
137137
<ExternalFooterLink
138138
href="https://facebook.github.io/react-native/"

src/components/LayoutHeader/DocSearch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ class DocSearch extends Component<{}, State> {
104104
}}
105105
id="algolia-doc-search"
106106
type="search"
107-
placeholder="Search docs"
108-
aria-label="Search docs"
107+
placeholder="Поиск"
108+
aria-label="Поиск"
109109
/>
110110
</form>
111111
) : null;

src/components/TitleAndMetaTags/TitleAndMetaTags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Helmet from 'react-helmet';
99
import React from 'react';
1010

11-
const defaultDescription = 'A JavaScript library for building user interfaces';
11+
const defaultDescription = 'JavaScript-библиотека для создания пользовательских интерфейсов';
1212

1313
type Props = {
1414
title: string,

src/pages/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Home extends Component {
5151
return (
5252
<Layout location={location}>
5353
<TitleAndMetaTags
54-
title="React &ndash; A JavaScript library for building user interfaces"
54+
title="React &ndash; JavaScript-библиотека для создания пользовательских интерфейсов"
5555
ogUrl={createOgUrl('index.html')}
5656
/>
5757
<div css={{width: '100%'}}>
@@ -134,7 +134,7 @@ class Home extends Component {
134134
fontSize: 30,
135135
},
136136
}}>
137-
A JavaScript library for building user interfaces
137+
JavaScript-библиотека для создания пользовательских интерфейсов
138138
</p>
139139
<Flex
140140
valign="center"
@@ -149,12 +149,12 @@ class Home extends Component {
149149
<ButtonLink
150150
to="/docs/getting-started.html"
151151
type="primary">
152-
Get Started
152+
Начать работу
153153
</ButtonLink>
154154
</CtaItem>
155155
<CtaItem>
156156
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
157-
Take the Tutorial
157+
Перейти к учебнику
158158
</ButtonLink>
159159
</CtaItem>
160160
</Flex>
@@ -286,12 +286,12 @@ class Home extends Component {
286286
<Flex valign="center">
287287
<CtaItem>
288288
<ButtonLink to="/docs/getting-started.html" type="primary">
289-
Get Started
289+
Начать работу
290290
</ButtonLink>
291291
</CtaItem>
292292
<CtaItem>
293293
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
294-
Take the Tutorial
294+
Перейти к учебнику
295295
</ButtonLink>
296296
</CtaItem>
297297
</Flex>

0 commit comments

Comments
 (0)