angular-gettext icon indicating copy to clipboard operation
angular-gettext copied to clipboard

plurals with offsets or multi-rules?

Open brycecr opened this issue 10 years ago • 1 comments

Does angular-gettext have support for offset as seen in ngMessageFormat or ng-pluralize? Or matching rules beyond singular and plural?

Thanks!

brycecr avatar Aug 19 '15 20:08 brycecr

I'm trying to figure out a similar problem.

I'm using ng-pluralize with the 0 option as seen in this code sample

<ng-pluralize
      count="vm.records.length"
      when="{ '0': 'Add inspections',
          'one': 'Add 1 inspection',
          'other': 'Add {} inspections'
      }">
</ng-pluralize>

It would be great if that case was handled, otherwise I'm going to have to setup an ng-switch to handle cases where count = 0.

robwalkerco avatar Mar 16 '16 22:03 robwalkerco