File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 45
45
pull_request_base_branch_name : ' main'
46
46
base_url : ' https://grafana.api.crowdin.com'
47
47
config : ' crowdin.yml'
48
+ source : ' public/locales/en-US/grafana.json'
49
+ translation : ' public/locales/%locale%/%original_file_name%'
48
50
env :
49
51
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
52
CROWDIN_PROJECT_ID : ${{ secrets.CROWDIN_PROJECT_ID }}
Original file line number Diff line number Diff line change 1
1
name : Crowdin Upload Action
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
paths :
6
7
- ' public/locales/en-US/grafana.json'
@@ -19,11 +20,14 @@ jobs:
19
20
uses : crowdin/github-action@v1
20
21
with :
21
22
upload_sources : true
23
+ upload_sources_args : ' --dest=public/locales/en-US/grafana.json'
22
24
upload_translations : false
23
25
download_translations : false
24
26
create_pull_request : false
25
27
base_url : ' https://grafana.api.crowdin.com'
26
28
config : ' crowdin.yml'
29
+ source : ' public/locales/en-US/grafana.json'
30
+ translation : ' public/locales/%locale%/%original_file_name%'
27
31
env :
28
32
CROWDIN_PROJECT_ID : ${{ secrets.CROWDIN_PROJECT_ID }}
29
33
CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
Original file line number Diff line number Diff line change 1
1
files :
2
- - source : /public/locales/en-US/grafana.json
3
- translation : /public/locales/%locale%/%original_file_name%
4
- type : i18next_json
2
+ - type : i18next_json
5
3
# The following are pulled from env variables
6
4
project_id_env : CROWDIN_PROJECT_ID
7
5
api_token_env : CROWDIN_PERSONAL_TOKEN
You can’t perform that action at this time.
0 commit comments