ng-i18next icon indicating copy to clipboard operation
ng-i18next copied to clipboard

Plurals not working

Open aubrey-fowler opened this issue 6 years ago • 0 comments

In my translation object I have:

            DAY: 'Day',
            DAY_plural: 'Days',
            DAY_WITH_COUNT: '{{count}} day',
            DAY_WITH_COUNT_plural: '{{count}} days'

But when I try to use this in my controller I get this output

                console.log($i18next.t('DAY_WITH_COUNT', { count: 1 })); // 1 day
                console.log($i18next.t('DAY_WITH_COUNT', { count: 2 })); // 2 day

What could be wrong? I am using Angular 1.5.3

aubrey-fowler avatar Apr 16 '18 11:04 aubrey-fowler