Skip to content

Using Plurals in t Macro #1508

Answered by timofei-iatsenko
crazyyi asked this question in Q&A
Discussion options

You must be logged in to vote

t({id: planname${index} , message: plural(num, {one: "day", other: "days"})})

That is not going to work. All values, such as id, should be statically analyzable. planname${index} is not statically analyzable.

But it works for another language (e.g. fr) which doesn't even have a given translation. Is there any solution to make both of them work?

Look for the issue in your app code. It's misusage somewhere.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@crazyyi
Comment options

@timofei-iatsenko
Comment options

Answer selected by crazyyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants