7070 name : DeepL
7171 runs-on : ubuntu-latest
7272 steps :
73- - uses : actions/checkout@v4
74- - uses : fabasoad/translation-action@main
73+ - uses : actions/checkout@v5
74+ - uses : fabasoad/translation-action@v4
7575 id : deepl-step
7676 with :
7777 provider : deepl
@@ -93,10 +93,10 @@ Translation is 'Любов'
9393### Google
9494
9595* Identifier is ` google ` .
96- * See [ supported translation directions] ( https://github.com/AidanWelch/google-translate-api/blob/master /index.d.ts#L67 )
96+ * See [ supported translation directions] ( https://github.com/AidanWelch/google-translate-api/blob/v10.7.2 /index.d.ts#L123 )
9797 for more details.
98- * Be aware that source and target languages should be separated by ` - ` (hyphen )
99- character while using them in ` lang ` input. For example, ` ms- en ` should be used
98+ * Be aware that source and target languages should be separated by ` | ` (pipe )
99+ character while using them in ` lang ` input. For example, ` ms| en ` should be used
100100 in case you want to translate text from Malay into English. See example below
101101 for more details.
102102
@@ -108,12 +108,12 @@ jobs:
108108 name : Google
109109 runs-on : ubuntu-latest
110110 steps :
111- - uses : actions/checkout@v4
112- - uses : fabasoad/translation-action@main
111+ - uses : actions/checkout@v5
112+ - uses : fabasoad/translation-action@v4
113113 id : google-step
114114 with :
115115 provider : google
116- lang : ms- en
116+ lang : ms| en
117117 source : Kemenangan
118118 - name : Print the result
119119 run : echo "Translation is '${{ steps.google-step.outputs.text }}'"
@@ -148,8 +148,8 @@ jobs:
148148 name : LibreTranslate
149149 runs-on : ubuntu-latest
150150 steps :
151- - uses : actions/checkout@v4
152- - uses : fabasoad/translation-action@main
151+ - uses : actions/checkout@v5
152+ - uses : fabasoad/translation-action@v4
153153 id : libretranslate-step
154154 with :
155155 provider : libretranslate
@@ -225,7 +225,7 @@ and generate a new key.
225225Example :
226226
227227` ` ` yaml
228- - uses: fabasoad/translation-action@main
228+ - uses: fabasoad/translation-action@v4
229229 with:
230230 provider: funtranslations
231231 lang: 'klingon'
0 commit comments