internationalization - Can a ternary be used with i18n in an AngularJS template? -


normal ternary use in angular template:

{{ ison ? 'meow' : 'woof' }} 

simple question, work i18n?

{{ ison ? 'meow' : 'woof' | i18n }} 

the string data type not affected, result same normal. i18n spec converts following types:

  • number object
  • date/time data
  • empty date/time object

references


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -