-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
74 lines (74 loc) · 2.58 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: 'ResX Translation and Combination'
description: 'A Github action that searches for default, automatically translated, and manually overriden ResX files, automatically translates missing texts, and combines them to directly usable ResX files.'
branding:
icon: file-plus
color: purple
inputs:
dir:
description: 'The root directory to work from. Example, "path/to/code".'
required: false
default: '.'
auth:
description: 'Auth key for your DeepL API access.'
required: true
source-lang:
description: 'The language used in the original ResX files. Leave empty to auto-detect.'
required: false
default: ''
glossary-name:
description: 'The name of the glossary to use for translation. Only works if source-lang is also set.'
required: false
default: ''
context:
description: 'Free-form text to provide additional context for the contents of the ResX files.'
required: false
default: ''
excludes-regex:
description: 'Regex for names of default ResX files in order to decide whether to exclude file from processing.'
required: false
default: ''
data-copies-regex:
description: 'Regex for names of default ResX files whose data should be copied instead of translated.'
required: false
default: ''
filter-keys-with-overrides:
description: 'If set the default keys are filtered by the super set of override keys per ResX file family.'
required: false
default: 'false'
localization-filter:
description: 'Concat CultureInfo-/language-codes joined with ";" in order to filter supported languages from the translation provider. Not usable in combination with localizations-excludes.'
required: false
default: ''
localization-excludes:
description: 'Concat CultureInfo-/language-codes joined with ";" in order to exclude supported languages from the translation provider. Not usable in combination with localizations-filter.'
required: false
default: ''
outputs:
summary-title:
description: 'The title of the commit for the pull request.'
summary-details:
description: 'The summary details of the commit for the pull request.'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- '-d'
- ${{ inputs.dir }}
- '-a'
- ${{ inputs.auth }}
- '-s'
- ${{ inputs.source-lang }}
- '-g'
- ${{ inputs.glossary-name }}
- '-t'
- ${{ inputs.context }}
- '-e'
- ${{ inputs.excludes-regex }}
- '-c'
- ${{ inputs.data-copies-regex }}
- '-f'
- ${{ inputs.filter-keys-with-overrides }}
- '-l'
- ${{ inputs.localization-filter }}
- '-x'
- ${{ inputs.localization-excludes }}