flutter/packages
Tae Hyung Kim ff838bca89
Add locale-specific DateTime formatting syntax (#129573)
Based on the [message format
syntax](https://unicode-org.github.io/icu/userguide/format_parse/messages/#examples)
for
[ICU4J](https://unicode-org.github.io/icu-docs/apidoc/released/icu4j/com/ibm/icu/text/MessageFormat.html).
This adds new syntax to the current Flutter messageFormat parser which
should allow developers to add locale-specific date formatting.

## Usage example
```
  "datetimeTest": "Today is {today, date, ::yMd}",
  "@datetimeTest": {
    "placeholders": {
      "today": {
        "description": "The date placeholder",
        "type": "DateTime"
      }
    }
  }
```
compiles to
```
  String datetimeTest(DateTime today) {
    String _temp0 = intl.DateFormat.yMd(localeName).format(today);
    return 'Today is $_temp0';
  }
```

Fixes https://github.com/flutter/flutter/issues/127304.
2023-06-29 09:23:34 -07:00
..
flutter Update RadioListTile tests to M3 (#129718) 2023-06-29 15:55:15 +00:00
flutter_driver Remove AbstractNode from RenderObject and deprecate it (#128973) 2023-06-16 16:16:36 +00:00
flutter_goldens flutter update-packages --force-upgrade (#128908) 2023-06-15 18:17:09 +00:00
flutter_goldens_client Upgrade leak_tracker to 5.0.0 (#126367) 2023-05-16 04:39:26 +00:00
flutter_localizations flutter update-packages --force-upgrade (#128908) 2023-06-15 18:17:09 +00:00
flutter_test Removes deprecated APIs from AnimationBuilder (#129657) 2023-06-28 20:12:19 +00:00
flutter_tools Add locale-specific DateTime formatting syntax (#129573) 2023-06-29 09:23:34 -07:00
flutter_web_plugins flutter update-packages --force-upgrade (#128908) 2023-06-15 18:17:09 +00:00
fuchsia_remote_debug_protocol flutter update-packages --force-upgrade (#128908) 2023-06-15 18:17:09 +00:00
integration_test Adds dart_fix support to integration_test (#129579) 2023-06-27 18:01:06 +00:00
analysis_options.yaml Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00