Started caching results from iana. (#53286)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:args/args.dart' as argslib;
|
||||
@@ -13,7 +12,7 @@ import '../gen_l10n.dart';
|
||||
import '../gen_l10n_types.dart';
|
||||
import '../localizations_utils.dart';
|
||||
|
||||
Future<void> main(List<String> arguments) async {
|
||||
void main(List<String> arguments) {
|
||||
final argslib.ArgParser parser = argslib.ArgParser();
|
||||
parser.addFlag(
|
||||
'help',
|
||||
@@ -80,7 +79,7 @@ Future<void> main(List<String> arguments) async {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
await precacheLanguageAndRegionTags();
|
||||
precacheLanguageAndRegionTags();
|
||||
|
||||
final String arbPathString = results['arb-dir'] as String;
|
||||
final String outputFileString = results['output-localization-file'] as String;
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
// dart dev/tools/localization/bin/gen_localizations.dart --overwrite
|
||||
// ```
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:path/path.dart' as path;
|
||||
@@ -480,7 +479,7 @@ String generateGetter(String key, String value, Map<String, dynamic> attributes,
|
||||
$type get $key => $value;''';
|
||||
}
|
||||
|
||||
Future<void> main(List<String> rawArgs) async {
|
||||
void main(List<String> rawArgs) {
|
||||
checkCwdIsRepoRoot('gen_localizations');
|
||||
final GeneratorOptions options = parseArgs(rawArgs);
|
||||
|
||||
@@ -499,7 +498,7 @@ Future<void> main(List<String> rawArgs) async {
|
||||
exitWithError('$exception');
|
||||
}
|
||||
|
||||
await precacheLanguageAndRegionTags();
|
||||
precacheLanguageAndRegionTags();
|
||||
|
||||
// Maps of locales to resource key/value pairs for Material ARBs.
|
||||
final Map<LocaleInfo, Map<String, String>> materialLocaleToResources = <LocaleInfo, Map<String, String>>{};
|
||||
|
||||
Reference in New Issue
Block a user