translate-readme.yml 701 B

1234567891011121314151617181920212223242526
  1. # Ultralytics YOLO 🚀, AGPL-3.0 license
  2. # README translation action to translate README.md to Chinese as README.zh-CN.md on any change to README.md
  3. name: Translate README
  4. on:
  5. push:
  6. branches:
  7. - translate_readme # replace with 'main' to enable action
  8. paths:
  9. - README.md
  10. jobs:
  11. Translate:
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v3
  15. - name: Setup Node.js
  16. uses: actions/setup-node@v3
  17. with:
  18. node-version: 16
  19. # ISO Language Codes: https://cloud.google.com/translate/docs/languages
  20. - name: Adding README - Chinese Simplified
  21. uses: dephraiim/translate-readme@main
  22. with:
  23. LANG: zh-CN