Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
bec1b734
Unverified
Commit
bec1b734
authored
Apr 10, 2020
by
Shi-Hao Hong
Committed by
GitHub
Apr 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup in gen_l10n files (#54401)
parent
16761c75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
gen_l10n.dart
dev/tools/localization/gen_l10n.dart
+1
-1
gen_l10n_templates.dart
dev/tools/localization/gen_l10n_templates.dart
+1
-5
No files found.
dev/tools/localization/gen_l10n.dart
View file @
bec1b734
...
@@ -875,7 +875,7 @@ class LocalizationsGenerator {
...
@@ -875,7 +875,7 @@ class LocalizationsGenerator {
stdout
.
writeln
(
'"
$locale
":
${messages.length}
untranslated message(s).'
);
stdout
.
writeln
(
'"
$locale
":
${messages.length}
untranslated message(s).'
);
});
});
stdout
.
writeln
(
stdout
.
writeln
(
'To see a detailed report, use the --un
implemen
ted-messages-file
\n
'
'To see a detailed report, use the --un
transla
ted-messages-file
\n
'
'option in the tool to generate a JSON format file containing
\n
'
'option in the tool to generate a JSON format file containing
\n
'
'all messages that need to be translated.'
'all messages that need to be translated.'
);
);
...
...
dev/tools/localization/gen_l10n_templates.dart
View file @
bec1b734
...
@@ -10,13 +10,10 @@ import 'dart:async';
...
@@ -10,13 +10,10 @@ import 'dart:async';
import '
package:
flutter
/
foundation
.
dart
';
import '
package:
flutter
/
foundation
.
dart
';
import '
package:
flutter
/
widgets
.
dart
';
import '
package:
flutter
/
widgets
.
dart
';
import '
package:
flutter_localizations
/
flutter_localizations
.
dart
';
import '
package:
flutter_localizations
/
flutter_localizations
.
dart
';
// ignore: unused_import
import '
package:
intl
/
intl
.
dart
' as intl;
import '
package:
intl
/
intl
.
dart
' as intl;
@(messageClassImports)
@(messageClassImports)
// ignore_for_file: unnecessary_brace_in_string_interps
/// Callers can lookup localized strings with an instance of @(class) returned
/// Callers can lookup localized strings with an instance of @(class) returned
/// by `@(class).of(context)`.
/// by `@(class).of(context)`.
///
///
...
@@ -44,8 +41,7 @@ import 'package:intl/intl.dart' as intl;
...
@@ -44,8 +41,7 @@ import 'package:intl/intl.dart' as intl;
/// # Internationalization support.
/// # Internationalization support.
/// flutter_localizations:
/// flutter_localizations:
/// sdk: flutter
/// sdk: flutter
/// intl: 0.16.0
/// intl: 0.16.1
/// intl_translation: 0.17.7
///
///
/// # rest of dependencies
/// # rest of dependencies
/// ```
/// ```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment