lingui / js-lingui

šŸŒ šŸ“– A readable, automated, and optimized (3 kb) internationalization for JavaScript
https://lingui.dev
MIT License
4.64k stars 383 forks source link

Github Action - config not found #2068

Closed trevcodesjs closed 1 month ago

trevcodesjs commented 1 month ago

Describe the bug I am getting

āŒ Configuration file doesn't exist. Run the 'crowdin init' to generate configuration skeleton

when trying to run the pre-translation command with the Github Action.

See below I have two actions, the upload_sources action works just fine, and it fails on the pre-translation one.

To Reproduce

      - name: Crowdin push source strings
        uses: crowdin/github-action@v2
        with:
          upload_sources: true
          upload_translations: false
          download_translations: false
          config: './crowdin.yml'
        env:
          CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
          CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}

      - name: Trigger Crowdin pre-translation
        uses: crowdin/github-action@v2
        with:
          command: 'pre-translate'
          command_args: '--method ai --ai-prompt 47703'
          config: './crowdin.yml'
        env:
          CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
          CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
trevcodesjs commented 1 month ago

Sorry wrong project