Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Status of declarative plurals in 1.4 beta? #11338

Closed
brycecr opened this issue Mar 17, 2015 · 3 comments
Closed

Status of declarative plurals in 1.4 beta? #11338

brycecr opened this issue Mar 17, 2015 · 3 comments

Comments

@brycecr
Copy link

brycecr commented Mar 17, 2015

Does 1.4.0-beta.5 have support for declarative plurals? The talk at ng-conf seemed to suggest that 1.4 might already have support for writing this syntax, but I keep getting lexer errors on the following:

<span>
   <!--i18n: Plural Fun-->
   {{model.numMessages, plural,
         =0 { You have no new messages }
         =1 { You have one new message }
      other { You have # new messages }}}
   <!--/i18n-->
</span>

I was curious if this is because declarative plural support isn't in any angular release yet (including beta), or because I was doing something wrong.

Thanks!

@brycecr
Copy link
Author

brycecr commented Mar 17, 2015

I see #11152 now, which, if I understand correctly, indicates that this support is yet to be merged into beta, but it would be great to get a read on when i can start playing with this.

@chirayuk
Copy link
Contributor

That PR should get merged in sometime soon. Definitely this week. Feel free to patch the PR in—there's not many significant changes that are expected to be made to it.

@brycecr
Copy link
Author

brycecr commented Mar 17, 2015

Thanks, Chirayu!

@brycecr brycecr closed this as completed Mar 17, 2015
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