icu4x 2.1.0-dev.0 copy "icu4x: ^2.1.0-dev.0" to clipboard
icu4x: ^2.1.0-dev.0 copied to clipboard

Dart bindings for the Rust `icu` internationalization crate.

example/main.dart

// This file is part of ICU4X. For terms of use, please see the file
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

import 'package:icu4x/icu4x.dart'
    show DateFormatter, DateTimeLength, IsoDate, Locale;

void main(List<String> arguments) {
  final locale = Locale.fromString('de-CH');

  final date = IsoDate(2025, 1, 2);

  final formatter = DateFormatter.ymde(locale, length: DateTimeLength.medium);

  print(formatter.formatIso(date));
}
0
likes
135
points
155
downloads

Publisher

verified publisherunicode.org

Weekly Downloads

Dart bindings for the Rust `icu` internationalization crate.

Repository (GitHub)
View/report issues
Contributing

Topics

#i18n

Documentation

API reference

License

Unicode-3.0 (license)

Dependencies

args, code_assets, collection, crypto, ffi, hooks, logging, meta, native_toolchain_c, path, record_use

More

Packages that depend on icu4x