crowdin-cli icon indicating copy to clipboard operation
crowdin-cli copied to clipboard

Can't delete or reset a translation string using "crowdin upload translations"

Open leonchabbey opened this issue 3 years ago • 1 comments

Describe the bug

For instance, I have a translations.json file which is translated in English and French with:

// en
{
  "greeting": "Hello"
}

// fr
{
  "greeting": "Bonjour"
}

Update

if i update the french version with:

{
  "greeting": "Salut"
}

and then run the command crowdin upload translations ---> It works. The translation is updated in crowdin.

Delete

if i would like to "delete" or "reset" the translation, I should be able to update it with:

// Replacing by an empty string:
{
  "greeting": ""
}

// or maybe by removing the key:
{
}

and then run the command crowdin upload translations ---> Its not updated even though the cli said it has been uploaded.

Expected behavior

Changing a translation string to "" (or deleting the json key) should remove the translation.

Environment

  • OS: macOS Monterey
  • Version 12.3.1
  • Crowdin version: 3.7.9

leonchabbey avatar Jul 14 '22 09:07 leonchabbey

Hello, It is expected behavior from our side. You can only upload new values as translations via CLI or update existing ones (the same will be via API or via similar actions in UI). Deleting existing translations is only possible from the UI.

VadymSobchuk avatar Aug 08 '22 08:08 VadymSobchuk