[gen_l10n] Fix suppportedLocales list (#52448)

* Fix suppportedLocales list

* Refactor integration tests for gen_l10n tool to catch exceptions
This commit is contained in:
Shi-Hao Hong
2020-03-12 12:58:13 -07:00
committed by GitHub
parent d98213c46f
commit 183da8f837
3 changed files with 113 additions and 64 deletions

View File

@@ -532,7 +532,7 @@ class LocalizationsGenerator {
final Iterable<String> supportedLocalesCode = supportedLocales.map((LocaleInfo locale) {
final String country = locale.countryCode;
final String countryArg = country == null ? '' : ', $country';
final String countryArg = country == null ? '' : "', '$country";
return 'Locale(\'${locale.languageCode}$countryArg\')';
});