Unverified Commit 5764404f authored by chunhtai's avatar chunhtai Committed by GitHub

fix localization typo for expansionTileExpandedHint (#125212)

as title
parent 13f4fe40
...@@ -7327,7 +7327,7 @@ class MaterialLocalizationEn extends GlobalMaterialLocalizations { ...@@ -7327,7 +7327,7 @@ class MaterialLocalizationEn extends GlobalMaterialLocalizations {
String get expansionTileCollapsedTapHint => 'Expand for more details'; String get expansionTileCollapsedTapHint => 'Expand for more details';
@override @override
String get expansionTileExpandedHint => "double tap to collapse'"; String get expansionTileExpandedHint => 'double tap to collapse';
@override @override
String get expansionTileExpandedTapHint => 'Collapse'; String get expansionTileExpandedTapHint => 'Collapse';
...@@ -454,7 +454,7 @@ ...@@ -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" "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": { "@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" "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"
}, },
......
...@@ -118,6 +118,14 @@ void main() { ...@@ -118,6 +118,14 @@ void main() {
expect(localizations.lastPageTooltip, 'Ikhasi lokugcina'); 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 { testWidgets('spot check selectedRowCount translations', (WidgetTester tester) async {
MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('en')); MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('en'));
expect(localizations.selectedRowCountTitle(0), 'No items selected'); expect(localizations.selectedRowCountTitle(0), 'No items selected');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment