-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
-
None
-
False
-
None
-
False
-
NetObserv - Sprint 218, NetObserv - Sprint 219
There's some known issue with the i18n lib / parser that we're using, breaking the automatic use of plurals in texts.
In our console plugin, it generates wrong texts, e.g. "Last 5 minute" without "s", or in the stats bar "1 flows" with a "s". Also in the stats panel we have this workaround of writing things like "1 protocol(s)", but that's not very pretty.
The bug is probably fixed in newer i18next / parser versions (we use an old one), however we're stuck with what the console itself is using.
In the console , it seems they're using some custom script to pluralize: see file "frontend/i18n-scripts/set-english-defaults.js". Maybe we can copy that behaviour.
An alternative could be to write or own word-pluralize function, however it would work for english only (we only support english at the moment anyway)
- relates to
-
CONSOLE-3246 Update i18next to version 21.x.x
- Closed
-
CONSOLE-3175 SPIKE: i18n breaking changes
- Closed
- links to