diff --git a/pkgs/intl_translation/CHANGELOG.md b/pkgs/intl_translation/CHANGELOG.md index ff46040c..a03633d1 100644 --- a/pkgs/intl_translation/CHANGELOG.md +++ b/pkgs/intl_translation/CHANGELOG.md @@ -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`. diff --git a/pkgs/intl_translation/lib/src/messages/message.dart b/pkgs/intl_translation/lib/src/messages/message.dart index 71ed2bb6..a4128b5d 100644 --- a/pkgs/intl_translation/lib/src/messages/message.dart +++ b/pkgs/intl_translation/lib/src/messages/message.dart @@ -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 diff --git a/pkgs/intl_translation/pubspec.yaml b/pkgs/intl_translation/pubspec.yaml index 860f68bf..ce977c66 100644 --- a/pkgs/intl_translation/pubspec.yaml +++ b/pkgs/intl_translation/pubspec.yaml @@ -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