intl4x 0.16.0 copy "intl4x: ^0.16.0" to clipboard
intl4x: ^0.16.0 copied to clipboard

A lightweight modular library for internationalization (i18n) functionality.

example/example.dart

// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:intl4x/datetime_format.dart';
import 'package:intl4x/number_format.dart';

void main(List<String> arguments) {
  final timeZone = 'Europe/Paris';
  final dateTime = DateTime.parse('2024-07-01T08:50:07');

  print(Locale.system);

  print(NumberFormat.compact().format(3.14));

  final formatter = DateTimeFormat.yearMonthDayTime(
    locale: Locale.parse('en'),
    length: DateTimeLength.long,
  ).withTimeZoneLong();
  print(formatter.format(dateTime, timeZone));
}
19
likes
150
points
294
downloads

Publisher

verified publisherlabs.dart.dev

Weekly Downloads

A lightweight modular library for internationalization (i18n) functionality.

Repository (GitHub)
View/report issues
Contributing

Topics

#i18n

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, hooks, icu4x, meta, record_use, timezone

More

Packages that depend on intl4x