updates to crowdin.yml and the localization workflow

This commit is contained in:
zelophed 2023-06-03 12:45:24 +02:00
parent 9148270784
commit 39ef3da5df
2 changed files with 12 additions and 9 deletions

View File

@ -4,15 +4,17 @@
name: Crowdin Action name: Crowdin Action
# Controls when the action will run. # Controls when the action will run.
on: on: workflow_dispatch
# Only run when started manually # Only run when started manually
workflow_dispatch:
inputs: #:
uploadTranslations: # inputs:
description: "Set to true to upload (changed) translations to Crowdin" # uploadTranslations:
type: boolean # description: "Set to true to upload (changed) translations to Crowdin"
required: true # type: boolean
default: false # required: true
# default: false
#schedule: #schedule:
#- cron: '0 */6 * * *' # Every 6 hours - https://crontab.guru/#0_*/6_*_*_* #- cron: '0 */6 * * *' # Every 6 hours - https://crontab.guru/#0_*/6_*_*_*
@ -30,7 +32,7 @@ jobs:
# Upload sources to Crowdin # Upload sources to Crowdin
upload_sources: true upload_sources: true
# Upload translations to Crowdin, only use true at initial run # Upload translations to Crowdin, only use true at initial run
upload_translations: ${{ github.event.inputs.uploadTranslations }} upload_translations: false
# Make pull request of Crowdin translations # Make pull request of Crowdin translations
download_translations: true download_translations: true
# To download translations to the specified version branch # To download translations to the specified version branch

View File

@ -11,6 +11,7 @@
"languages_mapping": { "languages_mapping": {
"locale_with_underscore": { "locale_with_underscore": {
"cs": "cs_cz", "cs": "cs_cz",
"cy": "cy_gb",
"da": "da_dk", "da": "da_dk",
"de": "de_de", "de": "de_de",
"eo": "eo_uy", "eo": "eo_uy",