Can you use angular-translate with ngPluralize?
See original GitHub issueHello,
Is it possible to do something like this:
<div ng-pluralize count="count" when="{
'1':'1 {{'SINGULAR' | translate}}',
'other':'{{count | number}} {{'PLURAL' | translate}}'
}"></div>
The issue is probably single quotes inside single quotes. I could use the messageFormat plugin, but I’m trying to avoid adding extra code.
Issue Analytics
- State:
- Created 10 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
AngularJS translation with pluralization using angular-translate
3 Answers 3 · 1. Still wondering if there is a way of making this with more options with some kind of statements...
Read more >Support of translation inside ng-pluralize directive #15 - GitHub
To bring pluralization to angular-translate, we want to use MessageFormat.js. MessageFormat uses a different syntax. So you have to decide to either use...
Read more >How to translate your Angular app with ngx-translate
1. Add ngx-translate to your Angular application 2. Set up the TranslateService in your app.module.ts 3. Create your main language translation file (in...
Read more >Plural - Angular
Plurality cases used for translating plurals to different languages. See alsolink · NgPlural · NgPluralCase · Internationalization (i18n) Guide.
Read more >Doc: Guide - Angular Translate
The easiest way to bring i18n and l10n to your Angular apps! ... When you read this doc, you'll learn how to use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found an awful solution…
Another solution, but not much better: