Move localization executables to bin folder (#46251)
This commit is contained in:
@@ -519,7 +519,7 @@ Future<void> verifyInternationalizations() async {
|
||||
final EvalResult materialGenResult = await _evalCommand(
|
||||
dart,
|
||||
<String>[
|
||||
path.join('dev', 'tools', 'localization', 'gen_localizations.dart'),
|
||||
path.join('dev', 'tools', 'localization', 'bin', 'gen_localizations.dart'),
|
||||
'--material',
|
||||
],
|
||||
workingDirectory: flutterRoot,
|
||||
@@ -527,7 +527,7 @@ Future<void> verifyInternationalizations() async {
|
||||
final EvalResult cupertinoGenResult = await _evalCommand(
|
||||
dart,
|
||||
<String>[
|
||||
path.join('dev', 'tools', 'localization', 'gen_localizations.dart'),
|
||||
path.join('dev', 'tools', 'localization', 'bin', 'gen_localizations.dart'),
|
||||
'--cupertino',
|
||||
],
|
||||
workingDirectory: flutterRoot,
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
// Run this program from the root of the git repository.
|
||||
//
|
||||
// ```
|
||||
// dart dev/tools/localization/encode_kn_arb_files.dart
|
||||
// dart dev/tools/localization/bin/encode_kn_arb_files.dart
|
||||
// ```
|
||||
|
||||
import 'dart:async';
|
||||
@@ -27,7 +27,7 @@ import 'dart:io';
|
||||
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
import 'localizations_utils.dart';
|
||||
import '../localizations_utils.dart';
|
||||
|
||||
Map<String, dynamic> loadBundle(File file) {
|
||||
if (!FileSystemEntity.isFileSync(file.path))
|
||||
@@ -16,14 +16,14 @@
|
||||
/// The following outputs the generated Dart code to the console as a dry run:
|
||||
///
|
||||
/// ```
|
||||
/// dart dev/tools/localization/gen_date_localizations.dart
|
||||
/// dart dev/tools/localization/bin/gen_date_localizations.dart
|
||||
/// ```
|
||||
///
|
||||
/// If the data looks good, use the `--overwrite` option to overwrite the
|
||||
/// lib/src/l10n/date_localizations.dart file:
|
||||
///
|
||||
/// ```
|
||||
/// dart dev/tools/localization/gen_date_localizations.dart --overwrite
|
||||
/// dart dev/tools/localization/bin/gen_date_localizations.dart --overwrite
|
||||
/// ```
|
||||
|
||||
import 'dart:async';
|
||||
@@ -32,7 +32,7 @@ import 'dart:io';
|
||||
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
import 'localizations_utils.dart';
|
||||
import '../localizations_utils.dart';
|
||||
|
||||
const String _kCommandName = 'gen_date_localizations.dart';
|
||||
|
||||
@@ -84,7 +84,7 @@ Future<void> main(List<String> rawArgs) async {
|
||||
|
||||
// This file has been automatically generated. Please do not edit it manually.
|
||||
// To regenerate run (omit --overwrite to print to console instead of the file):
|
||||
// dart --enable-asserts dev/tools/localization/gen_date_localizations.dart --overwrite
|
||||
// dart --enable-asserts dev/tools/localization/bin/gen_date_localizations.dart --overwrite
|
||||
|
||||
'''
|
||||
);
|
||||
@@ -29,7 +29,7 @@
|
||||
// The following outputs the generated Dart code to the console as a dry run:
|
||||
//
|
||||
// ```
|
||||
// dart dev/tools/localization/gen_localizations.dart
|
||||
// dart dev/tools/localization/bin/gen_localizations.dart
|
||||
// ```
|
||||
//
|
||||
// If the data looks good, use the `-w` or `--overwrite` option to overwrite the
|
||||
@@ -37,7 +37,7 @@
|
||||
// and packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart file:
|
||||
//
|
||||
// ```
|
||||
// dart dev/tools/localization/gen_localizations.dart --overwrite
|
||||
// dart dev/tools/localization/bin/gen_localizations.dart --overwrite
|
||||
// ```
|
||||
|
||||
import 'dart:async';
|
||||
@@ -46,10 +46,10 @@ import 'dart:io';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
import 'gen_cupertino_localizations.dart';
|
||||
import 'gen_material_localizations.dart';
|
||||
import 'localizations_utils.dart';
|
||||
import 'localizations_validator.dart';
|
||||
import '../gen_cupertino_localizations.dart';
|
||||
import '../gen_material_localizations.dart';
|
||||
import '../localizations_utils.dart';
|
||||
import '../localizations_validator.dart';
|
||||
|
||||
/// This is the core of this script; it generates the code used for translations.
|
||||
String generateArbBasedLocalizationSubclasses({
|
||||
@@ -78,7 +78,7 @@ String generateArbBasedLocalizationSubclasses({
|
||||
assert(supportedLanguagesDocMacro.isNotEmpty);
|
||||
|
||||
final StringBuffer output = StringBuffer();
|
||||
output.writeln(generateHeader('dart dev/tools/localization/gen_localizations.dart --overwrite'));
|
||||
output.writeln(generateHeader('dart dev/tools/localization/bin/gen_localizations.dart --overwrite'));
|
||||
|
||||
final StringBuffer supportedLocales = StringBuffer();
|
||||
|
||||
Reference in New Issue
Block a user