0

My messageFormat string looks like this: {foo, select, one/two{1-2} other{3}}, but messageFormat parser throws error because of / usage in it.

I have tried, but not working:

{foo, select, one'/'two{1-2} other{3}}
{foo, select, 'one/two'{1-2} other{3}}

Any ideas?

References:
https://messageformat.github.io/messageformat/ https://messageformat.github.io/messageformat/page-guide#toc3__anchor

Toms Tumshais
  • 333
  • 1
  • 5
  • 15

1 Answers1

0

Asked same question to library's maintainers and got an answer for it. It's not possible right now. Need to find different solution, for example, one_two.

Reference

Toms Tumshais
  • 333
  • 1
  • 5
  • 15