Exclamation marks are double escaped in upload-custom-translations #259
Labels
Priority: 1 - High
Blocks release eg supports new webapp feature
Type: Bug
Fix something that isn't working as intended
Projects
The translation files we export from POE and ship as default contain escaped exclamation marks, for example:
On first run these are inserted into the database with _id
messages-en
and correctly unescaped, for example:If the files are uploaded through the admin UI the files are unescaped correctly.
However when I use
upload-custom-translations
the exclamation marks are double escaped and the backslash is rendered in the UI, for example:Reproduction
cht-core/ddocs/medic/_attachments
medic-conf --local upload-custom-translations
replacing--local
with the test instance as required.Expected
The message should be "This action cannot be undone, make sure your data has been backed up!"
Original noticed in medic/cht-core#5392
The text was updated successfully, but these errors were encountered: