Michael Goderbauer
3fa355c97d
Remove dead code in tools tests ( #104567 )
2022-05-25 12:48:17 -07:00
Alex Li
aa39fa5a88
[gen_l10n] Better blank lines in the header of generated files ( #103414 )
2022-05-12 16:04:18 -07:00
Alex Li
dca58a289b
[gen_l10n] Throw a specified exception when the language code is invalid ( #102431 )
2022-04-24 11:04:06 -07:00
Hans Muller
09d08510d0
Revert "allow full locale in .arb files ( #93401 )" ( #93806 )
...
This reverts commit 16f441188c
.
2021-11-17 11:26:16 -08:00
Taha Tesser
16f441188c
allow full locale in .arb files ( #93401 )
2021-11-17 09:35:47 -08:00
Shueh Chou Lu
e8b3fe8aa6
Use num on plural ( #93228 )
2021-11-10 08:47:25 -08:00
J-P Nurmi
550281e581
[gen_l10n] retain full output file suffix ( #88362 )
2021-11-08 13:55:19 -08:00
Ian Hickson
61a0add286
Enable avoid_redundant_argument_values lint ( #91409 ) ( #91462 )
2021-10-08 09:25:14 -07:00
Zachary Anderson
b9d2177da0
Revert "Enable avoid_redundant_argument_values lint ( #91409 )" ( #91461 )
...
This reverts commit 5fd259be24
.
2021-10-07 21:11:07 -07:00
Ian Hickson
5fd259be24
Enable avoid_redundant_argument_values lint ( #91409 )
2021-10-07 20:13:02 -07:00
Ahmed Ashour
eb185d73ce
internationalization: fix select with incorrect message ( #90096 )
2021-09-16 09:23:22 -07:00
Ahmed Ashour
5848a1620d
[gen_l10n] to handle arbitrary DateFormat patterns ( #86844 )
2021-08-12 14:34:52 -07:00
Ahmed Ashour
bf132daef3
[gen_l10n] correct variable name when the placeholder requiresFormatting ( #86842 )
2021-07-22 13:55:18 -07:00
Ahmed Ashour
f568d929db
[gen_l10n] Support plurals and selects inside string ( #86167 )
2021-07-21 12:41:06 -07:00
Shi-Hao Hong
b0bd7cf1d8
make app localizations lookup a public method ( #84732 )
2021-07-01 15:01:03 -07:00
Alexandre Ardhuin
cfc08594d9
enable lint use_test_throws_matchers ( #83943 )
2021-06-03 22:14:03 -07:00
Michael Goderbauer
ee17ebe51f
Use type:int without format in gen_l10n ( #83132 )
2021-05-24 09:54:02 -07:00
Michael Goderbauer
485c409184
import pkg:intl when DateFormat or NumberFormat is used ( #83122 )
2021-05-21 19:04:04 -07:00
Hattomo (TomohiroHattori)
08a70e7ac8
Enable avoid_escaping_inner_quotes lint ( #81153 )
2021-05-19 09:54:02 -07:00
Jenn Magder
25c10d6a1c
Replace testUsingContext with testWithoutContext in a few places ( #82498 )
2021-05-13 23:09:03 -07:00
Shi-Hao Hong
633edb649f
[gen-l10n] Cleans up formatting of the generated file ( #79517 )
2021-05-11 17:19:05 -07:00
Phil Quitslund
61c30c41b2
fix sort_directives violations ( #80817 )
2021-04-21 13:49:03 -07:00
Jenn Magder
728a193383
Migrate gen_l10n to null safety ( #80763 )
2021-04-20 11:09:03 -07:00
Jenn Magder
b4175e9b86
Refactor LocalizationsGenerator initialize instance method into factory ( #80605 )
2021-04-19 20:24:04 -07:00
Shi-Hao Hong
9077a5c69b
[gen-l10n] Remove more ignores, conditionally generate some code ( #78975 )
2021-03-31 19:54:02 -07:00
Shi-Hao Hong
134aa8e9da
[gen-l10n] Add nullable-getter
flag ( #79263 )
2021-03-29 20:59:04 -07:00
Jenn Magder
bd94007356
Migrate localizations_utils to null safety ( #78939 )
2021-03-24 16:35:16 -07:00
Shi-Hao Hong
9f49181f40
[gen-l10n] Remove need for ignoring two lints in generated code ( #78778 )
...
* Remove need for unused import for placeholder braces
* Remove need for unused intl import for when plurals aren't used in the generated code
2021-03-24 15:46:09 +08:00
Ian Hickson
f3c25fa07a
Align more closely with package:test ( #77118 ) ( #78343 )
2021-03-16 13:58:02 -07:00
Zachary Anderson
e7e1a04aa3
Revert "Align more closely with package:test ( #77118 )" ( #78329 )
...
This reverts commit 0cbe597540
.
2021-03-16 09:26:34 -07:00
Ian Hickson
0cbe597540
Align more closely with package:test ( #77118 )
2021-03-15 16:28:02 -07:00
Jonah Williams
74bd7b6f6d
[flutter_tools] opt all flutter tool libraries and tests out of null safety. ( #74832 )
...
* opt out the flutter tool
* oops EOF
* fix import
* Update tool_backend.dart
* Update daemon_client.dart
* fix more
2021-01-27 15:17:53 -08:00
Sigurd Meldgaard
178c87cc27
Avoid relative paths in .dart_tool/package_config.json when generate:true ( #73944 )
...
Instead of using package:package_config to write the .dart_tool/package_config the original json is modified and rewritten.
The .dart_tool/package_config.json file is read twice to simplify control flow.
This also avoids the issue of package:package_config writing directly to local filesystem.
2021-01-20 14:53:49 +01:00
Shi-Hao Hong
a912030982
[gen_l10n] Use l10n.yaml file instead of command line arguments if it exists ( #72950 )
...
* Reorganize files
* Use l10n.yaml instead of command line args
2021-01-05 11:50:32 +08:00
Shi-Hao Hong
4d663472e2
[gen_l10n] Improve status message when untranslated messages are still present ( #72944 )
2021-01-04 01:54:02 -08:00
Shi-Hao Hong
a1a096e35a
[gen-l10n] Fix untranslated messages ( #68553 )
2020-11-05 16:24:02 -08:00
Shi-Hao Hong
0963d72582
Make resource attributes optional for simple cases ( #68774 )
2020-11-05 08:11:53 +08:00
Shi-Hao Hong
4996f60b20
[gen_l10n] Fix unintended use of raw string in generateString ( #69382 )
...
* Fix failing tests from introducing raw string generation in gen_l10n tool
2020-10-31 19:24:53 +08:00
Jonah Williams
ca47b4e12c
[flutter_tools] disable failing gen l10n test ( #69340 )
2020-10-29 15:04:46 -07:00
Shi-Hao Hong
a2b93b86f6
[gen_l10n] Add base method code comments for improved discoverability ( #69016 )
2020-10-29 14:03:05 -07:00
Shi-Hao Hong
38ebc5588b
[gen_l10n] Create pubspec.yaml in ".dart_tool/flutter_gen" if it does not already exist ( #68206 )
...
* Generate pubspec.yaml for synthetic package if it did not exist prior
2020-10-16 11:34:27 +08:00
Herbert Poul
8dfd42f6b7
[gen_l10n] Support string list as preferred-supported-locales ( #63649 )
...
* [gen_l10n] Support string list as preferred-supported-locales, as documented.
* [gen_l10n] Convert preferredSupportedLocale to a list of strings.
* [gen_l10n] Accept a multi option instead of a json string in the command line.
2020-09-10 07:32:40 +08:00
Shi-Hao Hong
b80b432555
Move gen_l10n into flutter_tools ( #65025 )
2020-09-03 09:26:58 -07:00