Allow new lines in translation
IndexOutOfMJ opened this issue · 2 comments
IndexOutOfMJ commented
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
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
higeaaa commented
@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 commented
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