Closed M4yd3 closed 1 year ago
I have the following select key
"appBarTitle": "{page, select, 0{Home} 1{Order} 2{Chats} 3{Account} other{Error}}", "@appBarTitle": { "placeholders": { "page": { "type": "int" } } }
It should be generating this
String appBarTitle(int page) { return Intl.select( page, { 0: 'Home', 1: 'Order', 2: 'Chats', 3: 'Account', 'other': 'Error', }, name: 'appBarTitle', desc: '', args: [page], ); }
But I'm getting this instead
String appBarTitle(int page, Object Home, Object Order, Object Chats, Object Account, Object Error) { return Intl.message( '{page, select, 0$Home 1$Order 2$Chats 3$Account other$Error}', name: 'appBarTitle', desc: '', args: [page, Home, Order, Chats, Account, Error], ); }
I figured this is a valid ICU syntax since DevPal understands it perfectly.
Linking the similar issue.
Well, it's unfortunate that ICU has such definition. Guess I'll just prepend a character to the placeholder.
I have the following select key
It should be generating this
But I'm getting this instead
I figured this is a valid ICU syntax since DevPal understands it perfectly.