forked from fabasoad/translation-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
31 lines (31 loc) · 867 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
name: 'Translation Action'
author: Yevhen Fabizhevskyi
description: 'This action translates any text to any language supported by chosen provider.'
branding:
icon: users
color: green
inputs:
source:
description: 'Text or path to the file for translation.'
required: true
provider:
description: 'Provider identifier.'
required: true
api_key:
description: 'API key that should be used for chosen provider.'
required: false
default: ''
api_additional_parameter:
description: 'Additional parameter for the API. eg the region for Microsoft: canadacentral.'
required: false
default: ''
lang:
description: 'The translation direction. Should be one of the option proposed by chosen provider.'
required: true
outputs:
text:
description: 'Translated text.'
runs:
using: 'node16'
main: 'dist/index.js'