fkirc / attranslate

A command line tool for translating JSON, YAML, CSV, ARB, XML (via a CLI)
https://www.npmjs.com/package/attranslate
Other
336 stars 27 forks source link

Double quotes in Localizable.strings #241

Closed yoman07 closed 1 year ago

yoman07 commented 2 years ago

Describe the bug If I run script to convert android xml to iOS Localizable.strings I have double quotes:

Android source:

"Incorrect id"

Actual results: "incorrect_id" = ""Incorrect id.";

Expect results: "incorrect_id" = "Incorrect id. ";

To Reproduce

ANDROID_EN="app/src/main/res/external/strings/values/strings.xml"
iOS_EN="/Base.lproj/Localizable.strings"

ANDROID_TO_iOS=( "--srcFormat=xml" "--targetFormat=ios-strings" "--service=sync-without-translate" "--cacheDir=android")

attranslate "${ANDROID_TO_iOS[@]}" --srcFile=$ANDROID_EN --targetFile=$iOS_EN --srcLng="en" --targetLng="en"

Expected behavior Expect results: "incorrect_id" = "Incorrect id. ";

fkirc commented 1 year ago

Hi, I apologize for the late answer. There was a period of underfunding for attranslate, but now attranslate is live again! I am closing this issue for now, but please feel free to re-open it if the issue is still relevant!