flutter/packages/flutter_tools/test
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
..
commands.shard Fix an ordering dependency in the flutter_tools upgrade test (#129131) 2023-06-19 11:18:16 -07:00
data Bump lower Dart SDK constraints to 3.0 & add class modifiers (#122546) 2023-03-21 20:21:58 +00:00
general.shard Add locale-specific DateTime formatting syntax (#129573) 2023-06-29 09:23:34 -07:00
host_cross_arch.shard [flutter_tools] Use process matcher for multidex test (#127996) 2023-06-01 22:24:08 +00:00
integration.shard Add locale-specific DateTime formatting syntax (#129573) 2023-06-29 09:23:34 -07:00
src [flutter_tools] cache flutter sdk version to disk (#124558) 2023-06-15 00:20:30 +00:00
web.shard Add vmservice for android build options (#123034) 2023-04-18 18:16:09 +00:00