Skip to content

Commit

Permalink
Finish download action
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelbrode committed Nov 28, 2023
1 parent 84572e1 commit c83b4d3
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 859 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Crowdin Download Action

on:
workflow_dispatch:


jobs:
crowdin-download:
Expand All @@ -27,3 +26,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
# - name: Remove faulty languages # ToDo: Clearify how to handle nb (Norsk vs Bokmal), sr (Cyrillic vs Latin) and de (imported with wrong name)
# run: |
# rm -rf ./translations/nb
# rm -rf ./translations/sr
# rm -rf ./translations/de-DE
# mv ./translations/de ./translations/de-DE
#
101 changes: 91 additions & 10 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,95 @@
"preserve_hierarchy": true

files: [{
# "source": "/sources/en-GB/**/*.json",
# "translation": "/translations/%locale%/**/%original_file_name%",
# "type": "json",
# "escape_quotes": 2,
# "escape_special_characters": 0
#}, {
## Single File Test ##
"source": "/en-GB/Platform/Administration/administration.json",
"translation": "/%locale%/Platform/Administration/%original_file_name%",
"type": "json"
"source": "/en-GB/**/*.json",
"translation": "/%two_letters_code%/**/%original_file_name%",
"type": "json",
"excluded_target_languages": [
"nb",
"sr"
],
"languages_mapping": {
"two_letters_code": {
"ar": "ar-SA",
"bg": "bg-BG",
"bs": "bs-BA",
"ca": "ca-ES",
"cs": "cs-CZ",
"da": "da-DK",
"de": "de-DE",
"el": "el-GR",
"fi": "fi-FI",
"fr": "fr-FR",
"he": "he-IL",
"hi": "hi-IN",
"hr": "hr-HR",
"hu": "hu-HU",
"id": "id-ID",
"it": "it-IT",
"ja": "ja-JP",
"ko": "ko-KR",
"lt": "lt-LT",
"lv": "lv-LV",
# "nb": "nb-NO", # ToDo: Re-enable; Needs clarification, since we have "nb" (Bokmal) and "no" (Norwegian), which seems to be the same
"nl": "nl-NL",
"no": "nb-NO",
"pl": "pl-PL",
"pt": "pt-PT",
"ro": "ro-RO",
"ru": "ru-RU",
"sk": "sk-SK",
"sl": "sl-SI",
# "sr": "sr-RS", # ToDo: Re-enable; sr-RS (Serbian in Serbia) will be used for the cyrillic version, while sr-CS (Serbian in Serbia and Montenegro) will be used for the latin version
"th": "th-TH",
"tr": "tr-TR",
"uk": "uk-UA",
"vi": "vi-VN",
}
}
}, {
"source": "/en-GB/**/*.json",
"translation": "/%locale%/**/%original_file_name%",
"type": "json",
"excluded_target_languages": [
"nb",
"sr"
],
"languages_mapping": {
"two_letters_code": {
"ar": "ar-SA",
"bg": "bg-BG",
"bs": "bs-BA",
"ca": "ca-ES",
"cs": "cs-CZ",
"da": "da-DK",
"de": "de-DE",
"el": "el-GR",
"fi": "fi-FI",
"fr": "fr-FR",
"he": "he-IL",
"hi": "hi-IN",
"hr": "hr-HR",
"hu": "hu-HU",
"id": "id-ID",
"it": "it-IT",
"ja": "ja-JP",
"ko": "ko-KR",
"lt": "lt-LT",
"lv": "lv-LV",
# "nb": "nb-NO", # ToDo: Re-enable; Needs clarification, since we have "nb" (Bokmal) and "no" (Norwegian), which seems to be the same
"nl": "nl-NL",
"no": "nb-NO",
"pl": "pl-PL",
"pt": "pt-PT",
"ro": "ro-RO",
"ru": "ru-RU",
"sk": "sk-SK",
"sl": "sl-SI",
# "sr": "sr-RS", # ToDo: Re-enable; sr-RS (Serbian in Serbia) will be used for the cyrillic version, while sr-CS (Serbian in Serbia and Montenegro) will be used for the latin version
"th": "th-TH",
"tr": "tr-TR",
"uk": "uk-UA",
"vi": "vi-VN",
}
}
}]
Loading

0 comments on commit c83b4d3

Please sign in to comment.