Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix trans parsing of spaces #478

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattiaslundberg
Copy link

@mattiaslundberg mattiaslundberg commented Nov 17, 2021

Why am I submitting this PR

Adding a {" "} is a common pattern when a string is broken into multiple lines in a react component (for example by prettier). But having that extra string in the component caused the lexer to return the wrong identifier for following tags leading to i18next (20.6.1) not displaying the string correctly.

There are other ways of solving this and I'm not sure if this way is the best, happy to change to another fix if requested!

Does it fix an existing ticket?

No

Checklist

  • only relevant code is changed (make a diff before you submit the PR)
  • tests are included and pass: yarn test (see details here)
  • documentation is changed or added

Adding a `{" "}` is a common pattern when a string is broken into
multiple lines (for example by prettier). But having that extra string
in the component caused the lexer to return the wrong identifier for
following tags leading to i18next not displaying the string correctly.
@karellm karellm force-pushed the master branch 2 times, most recently from d72e758 to 10f3d69 Compare May 8, 2023 03:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant