Skip to content

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
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

Successfully merging this pull request may close these issues.

1 participant