-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
40 lines (40 loc) · 956 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
32
33
34
35
36
37
38
39
40
---
name: translate-shell
description: Translate .po of one repo
inputs:
files:
description: files need to be translated, support glob
default: "**/*.po"
target-lang:
description: target language, po's metadata's Language override it
default: zh_CN
source-lang:
description: source language
default: en
translator:
description: translator
default: google
option:
description: >
the option passed to translator, such as 'temperature=0 max_tokens=256'
wrapwidth:
description: wrap the width by polib
default: "76"
progress:
description: display progress of translation
default: "false"
verbose:
description: display diff of translation
default: "true"
dry-run:
description: do nothing
default: "false"
force:
description: force to retranslate translated po
default: "false"
branding:
icon: check
color: yellow
runs:
using: docker
image: Dockerfile