QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.2k stars 54 forks source link

Plural translation with #two doesn't work #282

Open gabooh opened 8 months ago

gabooh commented 8 months ago

Describe the bug Using a translation with plural form translation_key#two does not work, the #other translation is used instead.

To Reproduce Steps to reproduce the behavior:

  1. clone https://github.com/gabooh/next-international-plural-two-bug
  2. npm run dev
  3. the translation with a count of 2 is wrong, uses #other translation instead of #two

Expected behavior The translation with the count : 2 parameter should be translated "trad #two 2"

About:

QuiiBz commented 8 months ago

The repository you linked seems to be private - switching to "needs repro" until it's resolved. You can also create a CodeSandbox if you don't want to share the repo!

gabooh commented 8 months ago

Oh sorry. It's public now.