Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sometimes you need to force the `i18n` instance used by `<Trans>`. In my case, it is to have a server-side render of a React PDF document, where I do not have a global `i18n` instance but several global ones (one per language). The macro seems to properly handle this, and this patch works fine locally with our app. For example: ``` component Test = () => { const i = useLingui() return <Text><Trans i18n={i.i18n}>Test String</Trans></Text> } ```
- Loading branch information