transifex / transifex-client

The Transifex command-line tool.
https://www.transifex.com/
GNU General Public License v2.0
136 stars 76 forks source link

Feature Request: Pull all translations of all languages #338

Closed niccokunzmann closed 2 years ago

niccokunzmann commented 2 years ago

When I run tx pull --translations, I would like it to pull the translations of all languages of all the configured files.

The current behavior is that it asks me for the language.

$ tx pull --translations

# Resource o:mundraub-android:p:learning-memory:r:android-app-strings
 SUCCESS  Organization 'mundraub-android' fetched
 SUCCESS  Project 'learning-memory' fetched
Downloading translation files
 SUCCESS  Resource android-app-strings fetched
  ERROR   No target languages found

My workaround at the moment is:

tx push --source
tx pull --all

tx pull --all seems to fetch all the languages. So, this behavior is implemented.

niccokunzmann commented 2 years ago

Oh, okay, now I read it. The -a/--all flag will attempt to push all local languages to the remote Transifex project, adding them if necessary. Essentially, -a is equivalent to using -l with all the local language codes.