Skip to content
This repository has been archived by the owner on May 5, 2018. It is now read-only.

pluralization support with format filter #388

Closed
lanterndev opened this issue Jan 30, 2013 · 4 comments
Closed

pluralization support with format filter #388

lanterndev opened this issue Jan 30, 2013 · 4 comments

Comments

@lanterndev
Copy link

http://angular-ui.github.com/#filters-format says "Most commonly, this filter is helpful for internationalization", but it doesn't mention how you would use it with different plural forms, which is a basic part of i18n. If format supports pluralization already, could you give an example, and if not, would implementing it be of interest?

@ProLoser
Copy link
Member

So... it wasn't developed as an end-all solution. If you want something heavy-duty there are lots of more focused libraries out there.

My thinking (towards pluralization) would be to use this alongside <ng-pluralize>. The only thing this really focuses on is token replacement, which is a way to assist internationalization, not tackle it completely.

If you look at the ngPluralize demos, you'll see they demo ways of doing internationalization which are essentially just a way to switch what message strings you're using.

Although... after re-reading the docs I was unaware you could use {{}} in ngPluralize so perhaps this filter should be folded.

@lanterndev
Copy link
Author

Thanks for the response, @ProLoser. What do you mean by "folded"?

@ProLoser
Copy link
Member

Removed

@ProLoser
Copy link
Member

@Skivvies I'm closing this but feel free to reopen if it's still relevant to you.

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

No branches or pull requests

2 participants