diff --git a/ios-strings.rb b/ios-strings.rb index c4c0ea4..784d350 100755 --- a/ios-strings.rb +++ b/ios-strings.rb @@ -313,6 +313,10 @@ def import_ios(import_path) } end +def import_csv_string(str) + return str.gsub(/\\"/, '"') +end + def import_csv(csv_path) is_first = true locales_keys = [] @@ -367,6 +371,8 @@ def import_csv(csv_path) value = row[idx] next if not value + value = import_csv_string(value) + if type == :strings values[key] = value $strings_keys[key] = true