intl_message 0.3.2+5 copy "intl_message: ^0.3.2+5" to clipboard
intl_message: ^0.3.2+5 copied to clipboard

Parses and formats ICU Message strings. Formats strings in multiple languages.

example/main.dart

import 'package:intl/date_symbol_data_local.dart';
import 'package:intl_message/intl_message.dart';

void main() {
  initializeDateFormatting();

  var msg = IntlMessage('It is now {now, date, long}');

  var str = msg.format({'now': DateTime.now()});

  print(str);

  msg = 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': DateTime(2008, 8, 16)});

    print(str);
  });
}
5
likes
135
points
5
downloads

Publisher

verified publisherappsup.be

Weekly Downloads

Parses and formats ICU Message strings. Formats strings in multiple languages.

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

BSD-3-Clause (license)

Dependencies

expressions, intl, petitparser

More

Packages that depend on intl_message