localizely/intl_utils

[Question] Why char('<') disabled for ICU select or plural formats?

Opened this issue · 2 comments

Hello,
Can you please provide an example of how to use char('<') in ICU select or in plural messages?

Example:
I need ICU select message like this "{selectType, select, bold {This is <bold>just</bold> an example} other {}}" ... but when char('<') exists in message, the message will not be generated correctly

Hi @mdusko,

You are right. The '<' char and tags won't work in ICU select and ICU plural messages at the moment.

Maybe a slightly different message format could help until this issue is resolved.

"This is <{selectType, select, bold {bold} other {}}>just</{selectType, select, bold {bold} other {}}> an example"

Hello @lzoran,
Thank you for the quick answer and for the suggestion.

Unfortunately, I have to wait for the problem to be resolved (... some of my messages are "very complicated" and with this approach, I would make them very difficult for others to read/understand).