Closed cochery closed 3 months ago
t('mykey', '{{count}} something', { count: expression() }) used to be extracted as 2 plural keys, but the plural form isn't detected anymore.
t('mykey', '{{count}} something', { count: expression() })
t('mykey', '{{count}} something', { count: value }) is still extracted as 2 plural keys.
t('mykey', '{{count}} something', { count: value })
Worked up to version: 8.13.0
Stopped working in version: 9.0.0
Steps to reproduce the behavior:
function expression() { return 1; } `t('mykey', '{{count}} something', { count: expression() })`
Only one key mykey is extracted.
mykey
2 keys mykey_one and mykey_other should be extracted in English. That was the former behaviour and still works when count is a value and not an expression.
mykey_one
mykey_other
Probably introduced by https://github.com/i18next/i18next-parser/pull/994
Same here after updating to 9.0.0.
Ran into this issue as well. I opened a PR with a patch here -> https://github.com/i18next/i18next-parser/pull/1022
This is now part of 9.0.1.
9.0.1
💥 Regression Report
t('mykey', '{{count}} something', { count: expression() })
used to be extracted as 2 plural keys, but the plural form isn't detected anymore.t('mykey', '{{count}} something', { count: value })
is still extracted as 2 plural keys.Last working version
Worked up to version: 8.13.0
Stopped working in version: 9.0.0
To Reproduce
Steps to reproduce the behavior:
Only one key
mykey
is extracted.Expected behavior
2 keys
mykey_one
andmykey_other
should be extracted in English. That was the former behaviour and still works when count is a value and not an expression.Probably introduced by https://github.com/i18next/i18next-parser/pull/994
Your Environment