- 29 Jun, 2023 1 commit
-
-
Tae Hyung Kim authored
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.
-
- 05 Nov, 2022 1 commit
-
-
Tae Hyung Kim authored
* init * code generation * improve syntax error, add tests * add tests and fix bugs * code generation fix * fix all tests :) * fix bug * init * fix all code gen issues * FIXED ALL TESTS :D * add license * remove trailing spaces * remove print * tests fix * specify type annotation * fix test * lint * fix todos * fix subclass issues * final fix; flutter gallery runs * escaping for later pr * fix comment * address PR comments * more * more descriptive errors * last fixes
-
- 13 May, 2022 1 commit
-
-
Jonah Williams authored
-
- 23 Nov, 2021 1 commit
-
-
Tarekk Mohamed Abdalla authored
-
- 21 Jul, 2021 1 commit
-
-
Ahmed Ashour authored
-
- 19 May, 2021 1 commit
-
-
Hattomo (TomohiroHattori) authored
-
- 03 Feb, 2021 3 commits
-
-
Shi-Hao Hong authored
Relands "[gen-l10n] Fixes named and positional parameter issue with NumberFormat when type is specified" (#75346) *
Added a new template for [NumberFo rmat] with positional parameter(s) * Renamed [numberFormatTemplate] to [numberFormatNamedTemplate] * [gen-l10n] Fixed generation error for namedParameters and optionalParameters * [gen-l10n] Fixed string value generation for optional parameter * [gen-l10n-test] Added new tests for `decimalPattern`, `percentPattern`, `scientificPattern` and formats with optional parameters. * Removed trailing whitespaces * replaced [_generateStringParameterValue] with [generateString] * Specified variable types in NumberFormat templates. * Added a new template for [NumberFo rmat] with positional parameter(s) * Renamed [numberFormatTemplate] to [numberFormatNamedTemplate] * [gen-l10n] Fixed generation error for namedParameters and optionalParameters * [gen-l10n] Fixed string value generation for optional parameter * [gen-l10n-test] Added new tests for `decimalPattern`, `percentPattern`, `scientificPattern` and formats with optional parameters. * Removed trailing whitespaces * replaced [_generateStringParameterValue] with [generateString] * Specified variable types in NumberFormat templates. * [gen-l10n] added test for parameter having special characters in string value. * Accidental tab added to integration test Co-authored-by: arish <arishsultan104@gmail.com> -
Shi-Hao Hong authored
Revert "[gen-l10n] Fixes named and positional parameter issue with NumberFormat when type is specified (#75209)" (#75306) This reverts commit 917577b8.
-
Shi-Hao Hong authored
[gen-l10n] Fixes named and positional parameter issue with NumberFormat when type is specified (#75209)
-
- 27 Jan, 2021 1 commit
-
-
Jonah Williams authored
* opt out the flutter tool * oops EOF * fix import * Update tool_backend.dart * Update daemon_client.dart * fix more
-
- 31 Oct, 2020 1 commit
-
-
Shi-Hao Hong authored
* Fix failing tests from introducing raw string generation in gen_l10n tool
-
- 29 Oct, 2020 1 commit
-
-
Shi-Hao Hong authored
-
- 08 Sep, 2020 1 commit
-
-
Jonah Williams authored
Integration tests must only go through the real file system/process manager/platform. The global indirection makes this code harder to understand than if it directly referred to the concrete instances that are being used. Update the integration shard to use a const instance of a LocalFIleSystem, LocalProcessManager, and LocalPlatform. Remove global usage and apply testWithoutContext.
-
- 21 Jul, 2020 1 commit
-
-
Jason Simmons authored
-
- 18 May, 2020 1 commit
-
-
Jonah Williams authored
Reland: #56167
-
- 10 May, 2020 1 commit
-
-
Jonah Williams authored
This reverts commit f865ac7e.
-
- 08 May, 2020 1 commit
-
-
Jonah Williams authored
* [flutter_tools] integration l10n tool * add runtime skip to build system * Update build_system.dart * add links to issues, comments * Update packages/flutter_tools/test/general.shard/build_system/build_system_test.dart Co-authored-by: Shi-Hao Hong <shihaohong@google.com> * Update packages/flutter_tools/lib/src/build_system/targets/localizations.dart Co-authored-by: Shi-Hao Hong <shihaohong@google.com> * Update localizations.dart * switch to gen_l10n localizations * fix tests Co-authored-by: Shi-Hao Hong <shihaohong@google.com>
-
- 10 Apr, 2020 1 commit
-
-
Shi-Hao Hong authored
-
- 09 Apr, 2020 2 commits
-
-
Per Classon authored
-
Shi-Hao Hong authored
* Generate methods using template resources if they do not exist in other locales * Added a flag to either output of messages that have not been translated with detail into a file, or display a summary on the terminal. * Add integration test for fallback message usage
-
- 07 Apr, 2020 1 commit
-
-
Per Classon authored
-
- 03 Apr, 2020 2 commits
-
-
Shi-Hao Hong authored
-
Shi-Hao Hong authored
* [gen_l10n] Add scriptCode handling
-
- 01 Apr, 2020 1 commit
-
-
Shi-Hao Hong authored
-
- 12 Mar, 2020 1 commit
-
-
Shi-Hao Hong authored
* Fix suppportedLocales list * Refactor integration tests for gen_l10n tool to catch exceptions
-
- 05 Mar, 2020 1 commit
-
-
Flutter GitHub Bot authored
-
- 25 Feb, 2020 1 commit
-
-
Hans Muller authored
-
- 29 Jan, 2020 1 commit
-
-
Hans Muller authored
-