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

i18n and l10n Plnkr example not working? #12801

Closed
vinkaga opened this issue Sep 9, 2015 · 3 comments
Closed

i18n and l10n Plnkr example not working? #12801

vinkaga opened this issue Sep 9, 2015 · 3 comments

Comments

@vinkaga
Copy link

vinkaga commented Sep 9, 2015

On developer guide https://docs.angularjs.org/guide/i18n, the Plnkr example at http://plnkr.co/edit/QBVRQ70dvKZDWmHW9RyR?p=preview gives message output as follows

Message
{{recipients.length, plural, offset:1 =0 {You ({{sender.name}}) gave no gifts} =1 { {{ recipients[0].gender, select, male {You ({{sender.name}}) gave him ({{recipients[0].name}}) a gift.} female {You ({{sender.name}}) gave her ({{recipients[0].name}}) a gift.} other {You ({{sender.name}}) gave them ({{recipients[0].name}}) a gift.} }} } one { {{ recipients[0].gender, select, male {You ({{sender.name}}) gave him ({{recipients[0].name}}) and one other person a gift.} female {You ({{sender.name}}) gave her ({{recipients[0].name}}) and one other person a gift.} other {You ({{sender.name}}) gave them ({{recipients[0].name}}) and one other person a gift.} }} } other {You ({{sender.name}}) gave {{recipients.length}} people gifts. } }}

How do I make it work properly?

@Narretz
Copy link
Contributor

Narretz commented Sep 9, 2015

The links to angular are out of date. Try this: http://plnkr.co/edit/mzei8wcaGxVUfXkPkBEG?p=preview

@Narretz Narretz added this to the Backlog milestone Sep 9, 2015
@vinkaga
Copy link
Author

vinkaga commented Sep 9, 2015

Thanks a lot. It works.

@vinkaga vinkaga closed this as completed Sep 9, 2015
@Narretz
Copy link
Contributor

Narretz commented Sep 9, 2015

I'll leave this open until we have fixed it in the repo

@Narretz Narretz reopened this Sep 9, 2015
@Narretz Narretz closed this as completed in 00ee090 Sep 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants