~cytrogen/masto-fe

949f1fc343dacf4f1c7088b60a2da75476d30338 — Claire 2 years ago a04a30f
Fix Crowdin Github Action (#2311)

M .github/workflows/crowdin-download.yml => .github/workflows/crowdin-download.yml +1 -0
@@ 27,6 27,7 @@ jobs:
      - name: crowdin action
        uses: crowdin/github-action@v1
        with:
          config: crowdin-glitch.yml
          upload_sources: false
          upload_translations: false
          download_translations: true

M .github/workflows/crowdin-upload.yml => .github/workflows/crowdin-upload.yml +1 -0
@@ 25,6 25,7 @@ jobs:
      - name: crowdin action
        uses: crowdin/github-action@v1
        with:
          config: crowdin-glitch.yml
          upload_sources: true
          upload_translations: false
          download_translations: false

M crowdin-glitch.yml => crowdin-glitch.yml +6 -0
@@ 1,4 1,10 @@
# This is needed for the Github Action
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN

skip_untranslated_strings: 1
commit_message: '[ci skip]'
preserve_hierarchy: true
files:
  - source: /app/javascript/flavours/glitch/locales/en.json
    translation: /app/javascript/flavours/glitch/locales/%two_letters_code%.json