Skip to content

Commit d5eeb5a

Browse files
authored
Merge pull request #610 from reactjs/sync-65d297e9
Sync with react.dev @ 65d297e Add translations for the 500 page Add versions and blog intro translations, add related changes
2 parents de12f13 + 7e6a769 commit d5eeb5a

28 files changed

+438
-264
lines changed

TRANSLATION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,13 @@
180180
| package registry | реєстр пакетів |
181181
| paint | фарбування, перефарбування |
182182
| performance | продуктивність (TODO: розглянути "швидкодію") |
183+
| (blog) post | допис (у блозі) |
183184
| prop | проп |
184185
| props | пропси |
185186
| production | публічне середовище; впровадження |
186187
| production mode | (у режимі) публічного середовища; режим публічного впровадження |
187188
| reducer | редюсер |
189+
| release | реліз |
188190
| reuse | повторне використання, перевикористання |
189191
| React | React |
190192
| React element | React-елемент, елемент React |
75.6 KB
Binary file not shown.
64.9 KB
Binary file not shown.
-168 KB
Binary file not shown.

src/components/Layout/HomeContent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,8 @@ function ExampleLayout({
864864
</div>
865865
<div
866866
ref={contentRef}
867-
className="relative mt-0 lg:-my-20 w-full p-2.5 xs:p-5 lg:p-10 flex grow justify-center">
867+
className="relative mt-0 lg:-my-20 w-full p-2.5 xs:p-5 lg:p-10 flex grow justify-center"
868+
dir="ltr">
868869
{right}
869870
<div
870871
className={cn(

src/components/MDX/MDXComponents.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,12 @@ function LearnMore({
203203

204204
function ReadBlogPost({path}: {path: string}) {
205205
return (
206-
<ButtonLink className="mt-1" label="Read Post" href={path} type="primary">
207-
Переглянути публікацію
206+
<ButtonLink
207+
className="mt-1"
208+
label="Читати допис"
209+
href={path}
210+
type="primary">
211+
Переглянути допис
208212
<IconNavArrow displayDirection="end" className="inline ms-1" />
209213
</ButtonLink>
210214
);

src/components/MDX/Sandpack/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const template = {
22
'/src/index.js': {
33
hidden: true,
4-
code: `import React, { StrictMode } from "react";
4+
code: `import { StrictMode } from "react";
55
import { createRoot } from "react-dom/client";
66
import "./styles.css";
77

src/components/PageHeading.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function PageHeading({
2727
tags = [],
2828
breadcrumbs,
2929
}: PageHeadingProps) {
30-
console.log('version', version);
3130
return (
3231
<div className="px-5 sm:px-12 pt-3.5">
3332
<div className="max-w-4xl ms-0 2xl:mx-auto">

src/components/Seo.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,14 @@ export const Seo = withRouter(
124124
)}
125125
<link
126126
rel="preload"
127-
href="/fonts/Source-Code-Pro-Regular.woff2"
127+
href="https://react.dev/fonts/Source-Code-Pro-Regular.woff2"
128+
as="font"
129+
type="font/woff2"
130+
crossOrigin="anonymous"
131+
/>
132+
<link
133+
rel="preload"
134+
href="https://react.dev/fonts/Source-Code-Pro-Bold.woff2"
128135
as="font"
129136
type="font/woff2"
130137
crossOrigin="anonymous"

src/content/blog/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ title: Блог React
44

55
<Intro>
66

7-
This blog is the official source for the updates from the React team. Anything important, including release notes or deprecation notices, will be posted here first.
7+
Цей блог є офіційним джерелом оновлень від команди React. Все важливе, включно з нотатками релізу або повідомленнями про застарілі функції, буде опубліковано спершу тут.
88

9-
You can also follow the [@react.dev](https://bsky.app/profile/react.dev) account on Bluesky, or [@reactjs](https://twitter.com/reactjs) account on Twitter, but you won’t miss anything essential if you only read this blog.
9+
Ви також можете слідкувати за [@react.dev](https://bsky.app/profile/react.dev) на платформі Bluesky або за [@reactjs](https://twitter.com/reactjs) у Twitter, але ви не пропустите нічого суттєвого, якщо читатимете лише цей блог.
1010

1111
</Intro>
1212

@@ -112,14 +112,14 @@ The React team is excited to share a few updates:
112112

113113
---
114114

115-
### All release notes {/*all-release-notes*/}
115+
### Усі нотатки до релізів {/*all-release-notes*/}
116116

117-
Not every React release deserves its own blog post, but you can find a detailed changelog for every release in the [`CHANGELOG.md`](https://github.com/facebook/react/blob/main/CHANGELOG.md) file in the React repository, as well as on the [Releases](https://github.com/facebook/react/releases) page.
117+
Не кожен реліз React заслуговує на окремий допис у блозі, проте ви можете знайти детальний список змін для кожного релізу у файлі [`CHANGELOG.md`](https://github.com/facebook/react/blob/main/CHANGELOG.md) у репозиторії React, а також на сторінці ["Релізи"](https://github.com/facebook/react/releases).
118118

119119
---
120120

121-
### Старіші публікації {/*older-posts*/}
121+
### Старіші дописи {/*older-posts*/}
122122

123-
Перегляньте [старіші публікації.](https://reactjs.org/blog/all.html)
123+
Перегляньте [старіші дописи.](https://reactjs.org/blog/all.html)
124124

125125
<div className="h-12"></div>

0 commit comments

Comments
 (0)