Skip to content

Commit

Permalink
fix localization typo for expansionTileExpandedHint (#125212)
Browse files Browse the repository at this point in the history
as title
  • Loading branch information
chunhtai authored Apr 20, 2023
1 parent 13f4fe4 commit 5764404
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7327,7 +7327,7 @@ class MaterialLocalizationEn extends GlobalMaterialLocalizations {
String get expansionTileCollapsedTapHint => 'Expand for more details';

@override
String get expansionTileExpandedHint => "double tap to collapse'";
String get expansionTileExpandedHint => 'double tap to collapse';

@override
String get expansionTileExpandedTapHint => 'Collapse';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"description": "The verb which describes what happens when a collapsed ExpandIcon toggle button is pressed. This is used by TalkBack on Android to replace the default hint on the accessibility action. The verb will be concatenated with a prefix string which describes how to perform the action, which by default is 'double tap to activate'. In the case of US english, this would be 'double tap to expand.' The exact phrasing of the hint will vary based on locale"
},

"expansionTileExpandedHint": "double tap to collapse'",
"expansionTileExpandedHint": "double tap to collapse",
"@expansionTileExpandedHint": {
"description": "The verb which describes the tap action on an expanded ExpansionTile. This is used by VoiceOver on iOS and macOS. This string will be appended to the collapsedHint string which describes the action to be performed on an expanded ExpansionTile. In the case of US english, this would be 'Expanded\n double tap to collapse.' The exact phrasing of the hint will vary based on locale"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ void main() {
expect(localizations.lastPageTooltip, 'Ikhasi lokugcina');
});

testWidgets('translations spot check expansionTileExpandedHint', (WidgetTester tester) async {
const Locale locale = Locale.fromSubtags(languageCode: 'en');
expect(GlobalMaterialLocalizations.delegate.isSupported(locale), isTrue);
final MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale);
expect(localizations, isA<MaterialLocalizationEn>());
expect(localizations.expansionTileExpandedHint, 'double tap to collapse');
});

testWidgets('spot check selectedRowCount translations', (WidgetTester tester) async {
MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('en'));
expect(localizations.selectedRowCountTitle(0), 'No items selected');
Expand Down

0 comments on commit 5764404

Please sign in to comment.