-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershacktoberfest
Description
Related PR in upstream repo: lingui/js-lingui#1436
To Reproduce
import { Trans } from '@lingui/macro'
export default function Component(props) {
return <Trans>Hello, {props.world ? <Trans>world</Trans> : <Trans>guys</Trans>}</Trans>
}Expected behaviour
import { Trans } from '@lingui/react'
export default function Component(props) {
return (
<Trans
id='Hello, {0}'
values={{
0: props.world ? <Trans id='world' /> : <Trans id='guys' />
}}
/>
)
}Actual behaviour
import { Trans } from '@lingui/react'
export default function Component(props) {
return (
<Trans
id='Hello, {0}'
values={{
0: props.world ? <Trans>world</Trans> : <Trans>guys</Trans>
}}
/>
)
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershacktoberfest