https://github.com/appsup-dart/intl_message
Parses and formats ICU Message strings.
https://github.com/appsup-dart/intl_message
Last synced: 7 months ago
JSON representation
Parses and formats ICU Message strings.
- Host: GitHub
- URL: https://github.com/appsup-dart/intl_message
- Owner: appsup-dart
- License: other
- Created: 2018-03-31T21:46:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T15:55:57.000Z (10 months ago)
- Last Synced: 2024-09-10T17:43:03.790Z (10 months ago)
- Language: Dart
- Size: 68.4 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[:heart: sponsor](https://github.com/sponsors/rbellens)
# intl_message
[](https://travis-ci.org/appsup-dart/expressions)
Parses and formats [ICU Message strings](http://userguide.icu-project.org/formatparse/messages).
## 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 {birthday, date, long}",
"en": "Toon was born on {birthday, date, long}",
});
IntlMessage.withLocale("nl", () {
var str = msg.format({
"birthday": new DateTime(2008,8,16)
});
print(str);
});
## Features and bugsPlease file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/appsup-dart/intl_message/issues
## Sponsor
Creating and maintaining this package takes a lot of time. If you like the result, please consider to [:heart: sponsor](https://github.com/sponsors/rbellens).
With your support, I will be able to further improve and support this project.
Also, check out my other dart packages at [pub.dev](https://pub.dev/packages?q=publisher%3Aappsup.be).