We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://lingui.js.org/ref/macro.html#plural
Documentation on this page shows how to use t`msg` with custom i18n instance. But lacking an example how to use plural() with it.
t`msg`
There is a note:
Use plural inside t macro if you want to add custom id or comment for translators.
But still not clear how to use it, and this note is quite hard to spot when you're reading docs roughly.
Which one would work:
import { plural } from "@lingui/macro" const message = t(i18n)(plural(count, { one: `${name} has # friend`, other: `${name} has # friends` }))
or
import { plural } from "@lingui/macro" const message = t(i18n)({ message: plural(count, { one: `${name} has # friend`, other: `${name} has # friends` }) })
import { plural } from "@lingui/macro" const message = t(i18n)`${plural(count, { one: `${name} has # friend`, other: `${name} has # friends` })}`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://lingui.js.org/ref/macro.html#plural
Documentation on this page shows how to use
t`msg`
with custom i18n instance. But lacking an example how to use plural() with it.There is a note:
But still not clear how to use it, and this note is quite hard to spot when you're reading docs roughly.
Which one would work:
or
or
The text was updated successfully, but these errors were encountered: