Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiline strings #9

Open
relaxolotl opened this issue Jun 12, 2018 · 1 comment
Open

Support for multiline strings #9

relaxolotl opened this issue Jun 12, 2018 · 1 comment

Comments

@relaxolotl
Copy link

It'd be great if we could have support for multiline strings. This should help mitigate validation issues caused by ICU syntax and XML tags.

The strings will also be much more readable especially for pluralized and gendered strings. Something like the below example would be fairly unreadable if it was compressed into a single line.

`{gender_of_host, select, 
   female {
     {num_guests, plural, offset:1 
       =0 {{host} does not give a party.}
       =1 {{host} invites {guest} to her party.}
       =2 {{host} invites {guest} and one other person to her party.}
       other {{host} invites {guest} and # other people to her party.}}}
   male {
     {num_guests, plural, offset:1 
       =0 {{host} does not give a party.}
       =1 {{host} invites {guest} to his party.}
       =2 {{host} invites {guest} and one other person to his party.}
       other {{host} invites {guest} and # other people to his party.}}}
   other {
     {num_guests, plural, offset:1 
       =0 {{host} does not give a party.}
       =1 {{host} invites {guest} to their party.}
       =2 {{host} invites {guest} and one other person to their party.}
       other {{host} invites {guest} and # other people to their party.}}}}
`
@mitchchn
Copy link
Collaborator

@relaxolotl in what sense aren't these supported already?

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

No branches or pull requests

2 participants