lokalise / lokalise-cli-2-go

Lokalise CLI v2
Other
108 stars 52 forks source link

API file upload is replacing {{ with [%1$s: #84

Closed ATimshin closed 2 years ago

ATimshin commented 2 years ago

Hello,

We're using Lokalize API to import keys and then export them after translation Recently we've found that the following import command is importing improperly key values that are in {{ value }} brackets - they appear as [%1$s:value] in Web UI. Here's the command we use: lokalise2 -t $(LokaliseToken) --project-id $(ProjectID) file upload --file $file.FullName --lang-iso en;

Even though Web UI shows these keys properly, these keys are breaking up after export via the same API: image lokalise2 -t $(UDTLokaliseToken) --project-id $(ProjectID) file download --format json --original-filenames=false --export-sort=a_z

So we send keys in {{}} and receive them in [%1$s:] brackets instead, please advise

JayAhn2 commented 2 years ago

@ATimshin have you manage to fix this?