Skip to content

Commit 5764404

Browse files
authored
fix localization typo for expansionTileExpandedHint (#125212)
as title
1 parent 13f4fe4 commit 5764404

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

packages/flutter_localizations/lib/src/l10n/generated_material_localizations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7327,7 +7327,7 @@ class MaterialLocalizationEn extends GlobalMaterialLocalizations {
73277327
String get expansionTileCollapsedTapHint => 'Expand for more details';
73287328

73297329
@override
7330-
String get expansionTileExpandedHint => "double tap to collapse'";
7330+
String get expansionTileExpandedHint => 'double tap to collapse';
73317331

73327332
@override
73337333
String get expansionTileExpandedTapHint => 'Collapse';

packages/flutter_localizations/lib/src/l10n/material_en.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@
454454
"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"
455455
},
456456

457-
"expansionTileExpandedHint": "double tap to collapse'",
457+
"expansionTileExpandedHint": "double tap to collapse",
458458
"@expansionTileExpandedHint": {
459459
"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"
460460
},

packages/flutter_localizations/test/material/translations_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ void main() {
118118
expect(localizations.lastPageTooltip, 'Ikhasi lokugcina');
119119
});
120120

121+
testWidgets('translations spot check expansionTileExpandedHint', (WidgetTester tester) async {
122+
const Locale locale = Locale.fromSubtags(languageCode: 'en');
123+
expect(GlobalMaterialLocalizations.delegate.isSupported(locale), isTrue);
124+
final MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale);
125+
expect(localizations, isA<MaterialLocalizationEn>());
126+
expect(localizations.expansionTileExpandedHint, 'double tap to collapse');
127+
});
128+
121129
testWidgets('spot check selectedRowCount translations', (WidgetTester tester) async {
122130
MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('en'));
123131
expect(localizations.selectedRowCountTitle(0), 'No items selected');

0 commit comments

Comments
 (0)