Skip to content

Carriage return or new line not possible in "InContext" translations or web app #3450

@hofrob

Description

@hofrob

We (Prighter) want to apply some basic formatting to our translations. In our react app we're wrapping tolgee output in a markdown element. That means if the raw translation looks like this:

# This is an _example_

The quick brown **fox** jumps over the lazy ~~cat~~dog.

In our react app it will look like this:

This is an example

The quick brown fox jumps over the lazy catdog.


One feature of markdown are paragraphs. Two new lines in markdown will convert into a new paragraph in html.

Our team mostly uses the FF/Chrome extensions but they block any usage of new lines. Meaning, pressing enter inside the translation either doesn't do anything, or in some cases allows one new line. Pressing enter in the web app itself, is the same as pressing "Save".

According to a quick inquiry in your slack channel, this could be a bug. If not, and there's another way to do what we want to do, please tell us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthotHigh priority issues, scheduled for the next cycle.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions