Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow new lines in translation #1664

Open
3 tasks done
IndexOutOfMJ opened this issue Dec 30, 2023 · 2 comments
Open
3 tasks done

Allow new lines in translation #1664

IndexOutOfMJ opened this issue Dec 30, 2023 · 2 comments
Labels
Status: Proposal Request for comments

Comments

@IndexOutOfMJ
Copy link

IndexOutOfMJ commented Dec 30, 2023

Clear and concise description of the problem

If you have a message that is quite long and you want to add linebreaks in that message there is no option to do that.

Suggested solution

Add support for \n in translations

Alternative

Something like %newline% maybe

Additional context

No response

Validations

@IndexOutOfMJ IndexOutOfMJ added the Status: Proposal Request for comments label Dec 30, 2023
@higeaaa
Copy link

higeaaa commented Feb 1, 2024

@IndexOutOfMJ
I feel the same way. Now it is surpassed by the following

 "message": "Hello, \nworld"
<p style="white-space: pre-wrap;">{{ $t("message") }}</p>

@IndexOutOfMJ
Copy link
Author

@IndexOutOfMJ

I feel the same way. Now it is surpassed by the following


 "message": "Hello, \nworld"

<p style="white-space: pre-wrap;">{{ $t("message") }}</p>

Yeah that's the only way to do it currently but I. Think that could be more beautiful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Proposal Request for comments
Projects
None yet
Development

No branches or pull requests

2 participants