Skip to content

Commit

Permalink
Merge pull request #767 from dart-lang:fixTransformError
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 597194571
  • Loading branch information
copybara-github committed Jan 10, 2024
2 parents 8cde33a + d966e1c commit 510077b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkgs/intl_translation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## 0.19.0-wip
## 0.19.0
* Always generate null safe code, remove `null-safe` flag.
* Add example for `he` locale.
* MessageExtraction: add set of error codes to be ignored in analysis.
* Upgrade dependencies on `analyzer` and `lints`.
* Fix pubspec `repository` url.
* Fix error in `toString` of `Message`s.

## 0.18.1
* Update analyzer dependency to `5.2.0`.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/intl_translation/lib/src/messages/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import 'variable_substitution_message.dart';
const jsonEncoder = JsonCodec();

/// A default function for the [Message.expanded] method.
String nullTransform(dynamic msg, dynamic chunk) => chunk as String;
String nullTransform(dynamic msg, dynamic chunk) => chunk.toString();

/// An abstract superclass for Intl.message/plural/gender calls in the
/// program's source text. We
Expand Down
2 changes: 1 addition & 1 deletion pkgs/intl_translation/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: intl_translation
version: 0.19.0-wip
version: 0.19.0
description: >-
Contains code to deal with internationalized/localized messages,
date and number formatting and parsing, bi-directional text, and
Expand Down

0 comments on commit 510077b

Please sign in to comment.