Add README automatic translation github action #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 |