Skip to content

Commit 6d3c5cd

Browse files
authored
Merge pull request #597 from reactjs/sync-f6d762cb
Sync with react.dev @ f6d762c
2 parents d25f622 + b557332 commit 6d3c5cd

File tree

6 files changed

+41
-20
lines changed

6 files changed

+41
-20
lines changed

.github/workflows/analyze.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- main # change this if your default branch is named differently
88
workflow_dispatch:
99

10+
permissions: {}
11+
1012
jobs:
1113
analyze:
1214
runs-on: ubuntu-latest
@@ -23,7 +25,7 @@ jobs:
2325
- name: Restore cached node_modules
2426
uses: actions/cache@v4
2527
with:
26-
path: "**/node_modules"
28+
path: '**/node_modules'
2729
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
2830

2931
- name: Install deps
@@ -55,7 +57,7 @@ jobs:
5557
name: bundle_analysis.json
5658

5759
- name: Download base branch bundle stats
58-
uses: dawidd6/action-download-artifact@v2
60+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
5961
if: success() && github.event.number
6062
with:
6163
workflow: analyze.yml

.github/workflows/analyze_comment.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: Analyze Bundle (Comment)
22

33
on:
44
workflow_run:
5-
workflows: ["Analyze Bundle"]
5+
workflows: ['Analyze Bundle']
66
types:
77
- completed
88

9+
permissions: {}
10+
911
jobs:
1012
comment:
1113
runs-on: ubuntu-latest
@@ -14,15 +16,15 @@ jobs:
1416
github.event.workflow_run.conclusion == 'success' }}
1517
steps:
1618
- name: Download base branch bundle stats
17-
uses: dawidd6/action-download-artifact@v2
19+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
1820
with:
1921
workflow: analyze.yml
2022
run_id: ${{ github.event.workflow_run.id }}
2123
name: analysis_comment.txt
2224
path: analysis_comment.txt
2325

2426
- name: Download PR number
25-
uses: dawidd6/action-download-artifact@v2
27+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
2628
with:
2729
workflow: analyze.yml
2830
run_id: ${{ github.event.workflow_run.id }}
@@ -48,7 +50,7 @@ jobs:
4850
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT
4951

5052
- name: Comment
51-
uses: marocchino/sticky-pull-request-comment@v2
53+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
5254
with:
5355
header: next-bundle-analysis
5456
number: ${{ steps.get-comment-body.outputs.pr-number }}

.github/workflows/discord_notify.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
name: Discord Notify
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types: [opened, ready_for_review]
66

7+
permissions: {}
8+
79
jobs:
810
check_maintainer:
911
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
12+
permissions:
13+
# Used by check_maintainer
14+
contents: read
1015
with:
1116
actor: ${{ github.event.pull_request.user.login }}
1217
is_remote: true

.github/workflows/label_core_team_prs.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Label Core Team PRs
22

33
on:
4-
pull_request_target:
4+
pull_request:
5+
6+
permissions: {}
57

68
env:
79
TZ: /usr/share/zoneinfo/America/Los_Angeles
@@ -11,6 +13,9 @@ env:
1113
jobs:
1214
check_maintainer:
1315
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
16+
permissions:
17+
# Used by check_maintainer
18+
contents: read
1419
with:
1520
actor: ${{ github.event.pull_request.user.login }}
1621
is_remote: true
@@ -19,6 +24,11 @@ jobs:
1924
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
2025
runs-on: ubuntu-latest
2126
needs: check_maintainer
27+
permissions:
28+
# Used to add labels on issues
29+
issues: write
30+
# Used to add labels on PRs
31+
pull-requests: write
2232
steps:
2333
- name: Label PR as React Core Team
2434
uses: actions/github-script@v7

.github/workflows/site_lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
types: [opened, synchronize, reopened]
99

10+
permissions: {}
11+
1012
jobs:
1113
lint:
1214
runs-on: ubuntu-latest
@@ -25,7 +27,7 @@ jobs:
2527
- name: Restore cached node_modules
2628
uses: actions/cache@v4
2729
with:
28-
path: "**/node_modules"
30+
path: '**/node_modules'
2931
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
3032

3133
- name: Install deps

src/content/community/translations.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ title: Переклади
44

55
<Intro>
66

7-
React docs are translated by the global community into many languages all over the world.
7+
Документація React перекладається багатьма мовами глобальною спільнотою зі всього світу.
88

99
</Intro>
1010

11-
## Source site {/*main-site*/}
11+
## Джерело {/*main-site*/}
1212

13-
All translations are provided from the canonical source docs:
13+
Усі переклади походять від канонічного джерела документації й оновлюються з нього:
1414

15-
- [English](https://react.dev/) &mdash; [Contribute](https://github.com/reactjs/react.dev/)
15+
- [English](https://react.dev/) &mdash; [Долучитися](https://github.com/reactjs/react.dev/)
1616

17-
## Full translations {/*full-translations*/}
17+
## Завершені переклади {/*full-translations*/}
1818

1919
{/* If you are a language maintainer and want to add your language here, finish the "Core" translations and edit `deployedTranslations` under `src/utils`. */}
2020

2121
<LanguageList progress="complete" />
2222

23-
## In-progress translations {/*in-progress-translations*/}
23+
## Незавершені переклади {/*in-progress-translations*/}
2424

25-
For the progress of each translation, see: [Is React Translated Yet?](https://translations.react.dev/)
25+
Щоб відстежити прогрес кожного перекладу, перегляньте сторінку ["Чи React вже перекладено?"](https://translations.react.dev/).
2626

2727
<LanguageList progress="in-progress" />
2828

29-
## How to contribute {/*how-to-contribute*/}
29+
## Як долучитися {/*how-to-contribute*/}
3030

31-
You can contribute to the translation efforts!
31+
Ви можете долучитися до перекладу!
3232

33-
The community conducts the translation work for the React docs on each language-specific fork of react.dev. Typical translation work involves directly translating a Markdown file and creating a pull request. Click the "contribute" link above to the GitHub repository for your language, and follow the instructions there to help with the translation effort.
33+
Спільнота виконує роботу з перекладу документації React у відповідному мовному відгалуженні (fork) react.dev. Типовий процес — це прямий переклад Markdown-файлу і створення PR із ним. Клацніть посилання "Долучитися" до GitHub-репозиторію для вашої мови та дотримуйтеся інструкцій, щоб допомогти з перекладом.
3434

35-
If you want to start a new translation for your language, visit: [translations.react.dev](https://github.com/reactjs/translations.react.dev)
35+
Якщо ви хочете розпочати новий переклад вашою мовою, відвідайте [translations.react.dev](https://github.com/reactjs/translations.react.dev).

0 commit comments

Comments
 (0)