V
V
Valeriu2017-11-17 16:15:02
JavaScript
Valeriu, 2017-11-17 16:15:02

Pluralization + i18n + Angular, how?

Hello, I am using ngx-translate in Angular.
I pass the parameters in the string (numbers):
5a0ee015570a1953437661.jpeg{{minLength}} can be any number, you need the word "character" to adapt to the number,
for example:
1 --> character
2 --> characters
5 --> characters
Someone knows how implement?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-11-17
@vodniciarv

Directly in the readme there are links to plugins, including those with pluralization
https://github.com/lephyrus/ngx-translate-messagef...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question