• Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • Console Plugin
    • 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)

              Unassigned Unassigned
              jtakvori Joel Takvorian
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: