Closed felginep closed 3 years ago
In fact this is valid escaping from ruby when parsing csv file. Indeed
> CSV.parse('shared.error.not_found,Resource not found.\n(code 404)')
=> [["shared.error.not_found", "Resource not found.\\n(code 404)"]]
The solution here is to insert a real newline in the spreadsheet
That way the csv escape the newline:
shared.error.not_found,"Resource not found.
(code 404)"
And now:
> CSV.parse('shared.error.not_found,"Resource not found.
(code 404)"')
=> [["shared.error.not_found", "Resource not found.\n(code 404)"]]
For the following key in google doc
the result of
bundle exec ad_localize -k SHEET_ID -o json -t src/assets/localizables
gives me the following output:The newline
\n
is escaped to\\n
but should not be.