ng-i18next
ng-i18next copied to clipboard
Plurals not working
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