Skip to content

Commit

Permalink
Merge pull request #19 from shopware/upload-workflow
Browse files Browse the repository at this point in the history
NEXT-31363 - Implement upload workflow
  • Loading branch information
marcelbrode authored Dec 5, 2023
2 parents 9f703eb + 506f35c commit 7bde471
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Crowdin Download Action
name: "Crowdin Download Action"

on:
workflow_dispatch:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/crowdin-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Crowdin Upload Action"

on:
workflow_dispatch:

jobs:
crowdin-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Synchronize with Crowdin
uses: crowdin/github-action@v1
with:
upload_sources: true
upload_translations: true
download_translations: false
preserve_hierarchy: false
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
3 changes: 0 additions & 3 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
"api_token_env": "CROWDIN_PERSONAL_TOKEN"
"base_path": "./translations/"
"base_url": "https://api.crowdin.com"
"preserve_hierarchy": true

files: [{
"source": "/en-GB/**/*.json",
"translation": "/%locale%/**/%original_file_name%",
"type": "json",
"excluded_target_languages": [],
"languages_mapping": {
"locale": {
"sr-CS": "sr-RS"
Expand All @@ -21,7 +19,6 @@ files: [{
"de": "de-DE"
},
"type": "json",
"excluded_target_languages": [],
"languages_mapping": {
"two_letters_code": {
"ar": "ar-SA",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sw-settings": {
"general": {
"mainMenuItemGeneral": "Settings"
"mainMenuItemGeneral": "MOCKMOCKMOCK-Settings"
},
"index": {
"title": "Settings",
Expand Down Expand Up @@ -9547,4 +9547,4 @@
"learnMoreUrl": "https:\/\/shopware.com\/en\/privacy\/"
}
}
}
}

0 comments on commit 7bde471

Please sign in to comment.