Prevent source fill for unapproved "(Automatic Copy)" strings

I’m using the Crowdin GitHub Action to create pull requests with new translations. This is the configuration I’m currently using for downloading translations:

                    download_translations: true
                    download_translations_args: >
                        --branch=master-test
                        --export-only-approved
                        --language=eu
                        --preserve-hierarchy
                        --verbose

According to the CLI documentation, when --export-only-approved is used without the --skip-untranslated-strings option, any unapproved strings are filled with the source language content.

However, I would like to ignore specific strings during export based on certain criteria. Specifically, I do not want strings that contain “(Automatic Copy)” and are not approved to be filled with the source language — I just want them to remain as they are.

Is there a way to achieve this?

I don’t want the following to happen:

Hi @davi.santos!

You can use Target File Bundles and the Exclude by labels option. You can create a bundle and configure it to exclude strings with specific labels. Also, in the Crowdin GitHub Action, there’s an option for download_bundle which lets you pull translations specifically from that filtered bundle.

So the plan would be:

  1. Label the strings you want to ignore (e.g. label them auto-copy).

  2. Create a bundle in Crowdin with Exclude by labels = auto-copy.

  3. Change your GitHub Action to use download_bundle: <bundle_id> instead of the generic download_translations config, so it pulls only from that bundle.

Hope this helps!

Hi @Sofiia!

After changing download_translations to download_bundle, will I still be able to use the download command arguments?

Hi @davi.santos !
Once you switch from download_translations to download_bundle, the download_translations_args options will no longer apply. Bundles handle all filtering and configuration directly in Crowdin.

@Sofiia Got it. I’ll test it out and get back to you if I have any questions.

Thank you!