tolgee-platform icon indicating copy to clipboard operation
tolgee-platform copied to clipboard

Exporting Apple .strings does not encode/escape "newline" as "\n", which breaks Apple .strings format

Open jonirrings opened this issue 1 month ago • 2 comments

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:

  1. Add a text with newline
  2. Export the text as Apple .strings format
  3. Check the Localizable.strings file
  4. newline is exported as is.

Text with newline

Hello
World

Expected exported .strings

Hello\nWorld

Screenshots

Image

Image

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.

jonirrings avatar Nov 27 '25 09:11 jonirrings

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!

Anty0 avatar Nov 28 '25 18:11 Anty0

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!

shemona-dev avatar Dec 04 '25 14:12 shemona-dev