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
5456cad3
Unverified
Commit
5456cad3
authored
Jul 08, 2021
by
Christopher Fujino
Committed by
GitHub
Jul 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate gen_localizations to null-safety (#86051)
parent
a666925a
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
56 deletions
+53
-56
gen_localizations.dart
dev/tools/localization/bin/gen_localizations.dart
+51
-54
localizations_validator.dart
dev/tools/localization/localizations_validator.dart
+2
-2
No files found.
dev/tools/localization/bin/gen_localizations.dart
View file @
5456cad3
This diff is collapsed.
Click to expand it.
dev/tools/localization/localizations_validator.dart
View file @
5456cad3
...
...
@@ -68,11 +68,11 @@ void validateEnglishLocalizations(File file) {
}
final
bool
optional
=
atResource
.
containsKey
(
'optional'
);
final
String
description
=
atResource
[
'description'
]
as
String
;
final
String
?
description
=
atResource
[
'description'
]
as
String
?
;
if
(
description
==
null
&&
!
optional
)
errorMessages
.
writeln
(
'No description specified for
$atResourceId
'
);
final
String
plural
=
atResource
[
'plural'
]
as
String
;
final
String
?
plural
=
atResource
[
'plural'
]
as
String
?
;
final
String
resourceId
=
atResourceId
.
substring
(
1
);
if
(
plural
!=
null
)
{
final
String
resourceIdOther
=
'
${resourceId}
Other'
;
...
...
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