I am translating my app using i18n angular 7, and I'm having problems with a ICU expression select. The issue is that I want the condition to recognize and empty value like this: animal: string
<div i18n="@@example>
{ animal, select, EMPTY { Cat } dog { Dog } other { Pig } }
</div>
I have tried using
{ animal, select, undefined { Cat } dog { Dog } other { Pig } }
but it didn't work
when animal is:
(empty string, null or undefined) -> translate Cat
dog -> translate Dog
other -> translate Pig