Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve --keep-translations argument issue #31

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

stelabouras
Copy link
Collaborator

Updates Transifex SDK package to v2.0.1


Resolve --keep-translations argument issue

The --keep-translations argument of the push command was a boolean
flag that had a default value of true. This meant that if user did
not supply the --keep-translations argument to their push command
the value would be true and if they did, the value would also be
true, making it impossible for the --keep-translations flag to be
false.

In order to fix the issue, the argument has been replaced with the
inverse flag: --delete-translations. Its default value is false so
it behaves exactly as the --keep-translations before, if the argument
was not supplied (keep_translations is going to be set to true).

The difference is that now if this new argument is supplied, then the
underlying value of the keep_translations metadata will be false.


Bump version to 2.1.4

  • Bumps CLI version to 2.1.4.
  • Updates the CHANGELOG.

Updates Transifex SDK package to v2.0.1
The `--keep-translations` argument of the `push` command was a boolean
flag that had a default value of `true`. This meant that if user did
not supply the `--keep-translations` argument to their `push` command
the value would be `true` and if they did, the value would also be
`true`, making it impossible for the `--keep-translations` flag to be
false.

In order to fix the issue, the argument has been replaced with the
inverse flag: `--delete-translations`. Its default value is `false` so
it behaves exactly as the `--keep-translations` before, if the argument
was not supplied (`keep_translations` is going to be set to `true`).

The difference is that now if this new argument is supplied, then the
underlying value of the `keep_translations` metadata will be `false`.
* Bumps CLI version to 2.1.4.
* Updates the CHANGELOG.
@stelabouras stelabouras requested a review from n1k0sv March 7, 2024 10:42
@stelabouras stelabouras changed the title Fix/keep translations Resolve --keep-translations argument issue Mar 7, 2024
@n1k0sv n1k0sv merged commit 59dc221 into transifex:master Mar 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants