lokalise/node-lokalise-api

\n is escaped (\\n) in translations when downloading translation files

Closed this issue · 1 comments

Hello there,
After downloading the translation files from our project, we have some translations containing \\n while \n is displayed on the web application.

I verified and we are using option replace_break to false as you can see here:

const { bundle_url: bundleUrl } = await lokaliseApi
.files()
.download(PROJECT_ID, {
replace_breaks: false,
format: 'json',
});

We are using version 7.3.1 I upgraded to 8.2.0 in case but issue is still happening.

Any idea how to solve this issue?

Regards

Good day! I don't think this issue is related to this API client, to be honest. This is because the client itself does not modify the downloaded data anyhow: it simply returns a link to the bundle which is generated by Lokalise itself. A similar thing has been reported here #28 I would recommend contacting Lokalise support team directly to get additional insights on this topic. To contact the support, please use the chat widget at lokalise.com at the bottom right corner of the screen. If it does not help, please feel free to reopen this issue!