Skip to content

Commit

Permalink
Add README automatic translation github action
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Sep 25, 2023
1 parent 3f961c6 commit ddc5a43
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
File renamed without changes.
22 changes: 22 additions & 0 deletions .github/workflows/translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .github/workflows/translate.yml
name: Translate Readme

on:
push:
branches: ['**']

jobs:
translate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 3

- name: Auto Translate
uses: Lin-jun-xiang/action-translate-readme@v2 # Based on the tag
with:
token: ${{ secrets.Action_Bot }} # Based on step2 name
g4f_provider: g4f.Provider.DeepAi # You can change this provider
langs: "en,zh-TW,French,Arabic" # You can define any langs

0 comments on commit ddc5a43

Please sign in to comment.