Skip to content

Commit 8231bf7

Browse files
committed
[core] GitHub - en/pt by default
1 parent 22d9480 commit 8231bf7

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 'github-translate'
2+
on:
3+
issues:
4+
types: [opened]
5+
issue_comment:
6+
types: [created]
7+
discussion:
8+
types: [created]
9+
discussion_comment:
10+
types: [created]
11+
# pull_request_target:
12+
# types: [opened, edited]
13+
# pull_request_review_comment:
14+
# types: [created, edited]
15+
16+
jobs:
17+
en:
18+
permissions:
19+
issues: write
20+
discussions: write
21+
pull-requests: write
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: devlikeapro/github-translate-action@main
26+
env:
27+
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
with:
30+
IS_MODIFY_TITLE: true
31+
CUSTOM_BOT_NOTE: 'English'
32+
TARGET_LANGUAGE: 'eng'
33+
TRANSLATED_LANGUAGE: 'en'
34+
35+
pt:
36+
permissions:
37+
issues: write
38+
discussions: write
39+
pull-requests: write
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: devlikeapro/github-translate-action@main
44+
env:
45+
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
IS_MODIFY_TITLE: true
49+
CUSTOM_BOT_NOTE: 'Portuguese'
50+
TARGET_LANGUAGE: 'por'
51+
TRANSLATED_LANGUAGE: 'pt'

0 commit comments

Comments
 (0)