intl_message 0.1.1 intl_message: ^0.1.1 copied to clipboard
Parses and formats ICU Message strings.
intl_message #
Parses and formats ICU Message strings.
Usage #
var msg = new IntlMessage("It is now {now, date, long}");
var str = msg.format({
"now": new DateTime.now()
});
print(str);
msg = new IntlMessage({
"nl": "Toon is geboren op {now, date, long}",
"en": "Toon was born on {now, date, long}",
});
IntlMessage.withLocale("nl", () {
var str = msg.format({
"birthday": new DateTime(2008,8,16)
});
print(str);
});
Features and bugs #
Please file feature requests and bugs at the issue tracker.