Skip to content

Commit

Permalink
Merge branch 'updateIntl4x' into adaptMessagesExample
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem authored May 27, 2024
2 parents 43d6257 + fe4d471 commit a37bb81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pkgs/intl4x/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.3

- Update for `icu4x` and `build.dart` changes.

## 0.8.2

- Add ICU4X support for number formatting.
Expand Down
4 changes: 2 additions & 2 deletions pkgs/intl4x/example/web/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import 'package:intl4x/number_format.dart';

void main() {
num number = 300000;
var intl = Intl(ecmaPolicy: AlwaysEcma());
var intl = Intl(ecmaPolicy: const AlwaysEcma());
String nf(num number) => intl
.numberFormat(NumberFormatOptions.custom(
style: CurrencyStyle(currency: 'USD'),
digits: Digits.withFractionDigits(minimum: 0, maximum: 2),
digits: const Digits.withFractionDigits(minimum: 0, maximum: 2),
roundingMode: RoundingMode.halfCeil,
))
.format(number);
Expand Down
2 changes: 1 addition & 1 deletion pkgs/intl4x/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: intl4x
description: >-
A lightweight modular library for internationalization (i18n) functionality.
version: 0.8.2
version: 0.8.3
repository: https://github.com/dart-lang/i18n/tree/main/pkgs/intl4x
platforms:
web:
Expand Down

0 comments on commit a37bb81

Please sign in to comment.