Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plurals not working #139

Open
aubrey-fowler opened this issue Apr 16, 2018 · 0 comments
Open

Plurals not working #139

aubrey-fowler opened this issue Apr 16, 2018 · 0 comments

Comments

@aubrey-fowler
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant