onesky / plugin-ios-ota

Over the air plugin
50 stars 8 forks source link

Double quote with OTA translation #31

Open jdatour opened 5 years ago

jdatour commented 5 years ago

Hi,

I have this string -> Hello "World" in OneSky dashboard. When I download myFile.strings, I have the key / value pair I expect -> "myKey" = "Hello \"World\""

But when I use OneSkyOTAPlugin.localizedString(forKey: "myKey", value: "", table: nil), it returns Hello \\\"World\\\" which displays Hello \"World\" (No surprise for the display but this not what I want)

I can use myString.replacingOccurrences(of: "\\\\", with: "") to fix the problem but that looks like an issue to me.

Am I missing something ?

I use v0.10.2

Thank you for your answer