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

Concatenated strings (newlines) #227

Open
strarsis opened this issue Apr 10, 2022 · 0 comments
Open

Concatenated strings (newlines) #227

strarsis opened this issue Apr 10, 2022 · 0 comments

Comments

@strarsis
Copy link

🐛 Bug Report

Concatenated strings are skipped.

<IonLabel>
  {t("Thank you.\nYour inquiry will be answered soon.")}
</IonLabel>

To Reproduce

Use a concatenated string for newlines:

<IonLabel>
  {t("Thank you.' + "\n" + 
'Your inquiry will be answered soon.")}
</IonLabel>

Expected behavior

Those concatenated strings should also be added to the translation file.

{
  "Thank you.\nYour inquiry will be answered soon.": "Thank you.\nYour inquiry will be answered soon.",
}

Your Environment

  • runtime version: v16.14.2
  • i18next version: 21.6.14
  • os: WSL 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant