Exporting Apple .strings does not encode/escape "newline" as "\n", which breaks Apple .strings format
Describe the bug
When export a text with newline into an Apple .strings file, it will leave the newline as is, which breaks Apple .strings format.
To Reproduce Steps to reproduce the behavior:
- Add a text with
newline - Export the text as Apple
.stringsformat - Check the
Localizable.stringsfile newlineis exported as is.
Text with newline
Hello
World
Expected exported .strings
Hello\nWorld
Screenshots
Versions and environment
- Tolgee Platform version: v3.138.0
- Environment: Docker
- Browser: Edg/142.0.0.0
Additional context Add any other context about the problem here.
Hi! Thanks for the report! ^^ I'll try to reproduce it. If it's true, fixing it should be easy. I'll keep you posted!
Facing the same issue, newlines are not encoded as /n when pulling/importing texts.
Example after import:
Setup and browse Music Services or manage the Settings of your Player.
To exit tap on the right side of the screen.
You’re all set. Enjoy your Music!
Expected:
Setup and browse Music Services or manage the Settings of your Player.\n\nTo exit tap on the right side of the screen.\n\nYou’re all set. Enjoy your Music!