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

Trans inside Plural has surrounding whitespace #1292

Closed
yozi-developer opened this issue Oct 19, 2022 · 1 comment · Fixed by #1437 or lingui/swc-plugin#17
Closed

Trans inside Plural has surrounding whitespace #1292

yozi-developer opened this issue Oct 19, 2022 · 1 comment · Fixed by #1437 or lingui/swc-plugin#17

Comments

@yozi-developer
Copy link

I have the latest lingui and faced the same issue

<Plural
      one={
        <Trans>
          Care Navigator{" "}
          <Badge
            aria-label={t`You have unread message`}
          >
            #
          </Badge>
        </Trans>
      }
      other={
        <Trans>
          Care Navigator{" "}
          <Badge
            aria-label={t`You have unread message`}
          >
            #
          </Badge>
        </Trans>
      }
      value={unreadSendBird}
/>

becomes

msgid " Care Navigator <0>#</0>"
msgid_plural " Care Navigator <1>#</1>"
msgstr[0] " Care Navigator <0>#</0>"
msgstr[1] " Care Navigator <1>#</1>"

Version:

"@lingui/cli": "^3.14.0",
"@lingui/loader": "^3.14.0",
"@lingui/macro": "^3.14.0",
"@lingui/react": "^3.14.0",
@Martin005
Copy link
Contributor

Fixed by #1437 and lingui/swc-plugin#17. This will be released in v4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants