[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo korean, cutButtonLabel #151364

Merged
merged 3 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: add test for korean, 'cut, copy, paste' button label
  • Loading branch information
n7484443 committed Jul 14, 2024
commit 766f02b12f24c8eef0bd0bdab27762e258565e36
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,16 @@ void main() {
expect(localizations.lookUpButtonLabel, '查询');
});

testWidgets('ko-KR translation for cut, copy, paste label in ButtonLabel', (WidgetTester tester) async {
const Locale locale = Locale('ko');
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
final CupertinoLocalizations localizations = await GlobalCupertinoLocalizations.delegate.load(locale);
expect(localizations, isA<CupertinoLocalizationKo>());
expect(localizations.cutButtonLabel, '잘라내기');
expect(localizations.copyButtonLabel, '복사');
expect(localizations.pasteButtonLabel, '붙여넣기');
});

testWidgets('localizations.datePickerDayOfMonth uses the current locale for weekdays', (WidgetTester tester) async {
const Locale locale = Locale('zh');
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,4 +559,14 @@ void main() {
expect(localizations, isA<MaterialLocalizationZh>());
expect(localizations.lookUpButtonLabel, '查询');
});

testWidgets('zh-CN translation for look up label', (WidgetTester tester) async {
const Locale locale = Locale('ko');
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
final MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale);
expect(localizations, isA<MaterialLocalizationKo>());
expect(localizations.cutButtonLabel, '잘라내기');
expect(localizations.copyButtonLabel, '복사');
expect(localizations.pasteButtonLabel, '붙여넣기');
});
}