Skip to content

Commit

Permalink
Update gpt-translate.yml (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
thias15 authored Jun 1, 2024
1 parent a8568f6 commit d357149
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/gpt-translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
gpt_translate:
if: github.actor == 'thias15'
runs-on: ubuntu-latest

steps:
Expand All @@ -18,3 +19,15 @@ jobs:
uses: 3ru/gpt-translate@master
with:
apikey: ${{ secrets.OPENAI_API_KEY }}
model: gpt-4o
prompt: |
Please translate the source file to {targetLanguage}. \
Make the translation sound as natural as possible. \
Make sure that {targetLanguage} is linked to the corresponding README file using its Language Culture Name. \
Keep the HTML snippet in the same place as in the source file or add it at the top and keep existing languages. \
For example, for English, Chinese and German the top of the README should look like this:
<p align="center">
<a href="README.md">Englisch</a> |
<a href="README.zh-CN.md">简体中文</a> |
<a href="README.de-DE.md">Deutsch</a>
</p>

0 comments on commit d357149

Please sign in to comment.