i18next / ng-i18next

translation for AngularJS using i18next
https://github.com/i18next/ng-i18next
MIT License
161 stars 54 forks source link

Plurals not working #139

Open aubrey-fowler opened 6 years ago

aubrey-fowler commented 6 years ago

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