Quantcast
Channel: Localazy - Latest posts
Viewing all articles
Browse latest Browse all 436

New line feed in localazy string

$
0
0

Hi @vaclav ,

I have the same issue. I would need to use \n for a new line on Android platform.
Localazy version: Localazy CLI, v1.7.8
localazy.json file:

{
  "conversion": {
    "actions": [
      {
        "conditions": [
          "!~equals: ${lang}, en"
        ],
        "type": "android",
        "output": "presentation/src/main/res/values-${lang}/strings.xml",
        "excludeKeys": [
          "SUFFIX-CI:_ios"
        ],
        "replacements": {
          "<": "&lt;",
          ">": "&gt;"
        }
      },
      {
        "conditions": [
          "equals: ${lang}, en"
        ],
        "type": "android",
        "output": "presentation/src/main/res/values/strings.xml",
        "excludeKeys": [
          "SUFFIX-CI:_ios"
        ],
        "replacements": {
          "<": "&lt;",
          ">": "&gt;"
        }
      }
    ]
  }
}

Enter is not encoded as \n, when I used "type": "android",. Do you have any suggestion how to use \n on Android?
Thanks in advance for trying to help me solve this problem.


Viewing all articles
Browse latest Browse all 436

Trending Articles