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 a37bb81 + ad766b5 commit 689a2d6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions pkgs/intl4x/lib/intl4x.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import 'src/plural_rules/plural_rules.dart';
import 'src/plural_rules/plural_rules_impl.dart';
import 'src/plural_rules/plural_rules_options.dart';

export 'src/data.dart';
export 'src/locale/locale.dart';
export 'src/plural_rules/plural_rules.dart';

Expand Down
8 changes: 4 additions & 4 deletions pkgs/intl4x/lib/src/datetime_format/datetime_format.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ import 'datetime_format_impl.dart';
/// .format(date); // Output: '4 mat.'
/// ```
class DateTimeFormat {
final DateTimeFormatImpl impl;
final DateTimeFormatImpl _impl;

DateTimeFormat(this.impl);
DateTimeFormat(this._impl);

String format(DateTime datetime) {
if (isInTest) {
return '$datetime//${impl.locale}';
return '$datetime//${_impl.locale}';
} else {
return impl.formatImpl(datetime);
return _impl.formatImpl(datetime);
}
}
}
8 changes: 4 additions & 4 deletions pkgs/intl4x/lib/src/number_format/number_format.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import '../test_checker.dart';
import 'number_format_impl.dart';

class NumberFormat {
final NumberFormatImpl impl;
final NumberFormatImpl _impl;

NumberFormat(this.impl);
NumberFormat(this._impl);

String format(Object number) {
if (isInTest) {
return '$number//${impl.locale}';
return '$number//${_impl.locale}';
} else {
return impl.formatImpl(number);
return _impl.formatImpl(number);
}
}
}
3 changes: 2 additions & 1 deletion pkgs/intl4x/lib/src/plural_rules/plural_rules_4x.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// 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 '../../intl4x.dart';
import '../bindings/lib.g.dart' as icu;
import '../data.dart';
import '../data_4x.dart';
import '../locale/locale.dart';
import '../locale/locale_4x.dart';
import 'plural_rules.dart';
import 'plural_rules_impl.dart';
import 'plural_rules_options.dart';

Expand Down

0 comments on commit 689a2d6

Please sign in to comment.