material_localizations.dart 43.3 KB
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
2 3 4
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
7

8
import 'debug.dart';
9
import 'time.dart';
10
import 'typography.dart';
11

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
// ADDING A NEW STRING
//
// If you (someone contributing to the Flutter framework) want to add a new
// string to the MaterialLocalizations object (e.g. because you've added a new
// widget and it has a tooltip), follow these steps:
//
// 1. Add the new getter to MaterialLocalizations below.
//
// 2. Implement a default value in DefaultMaterialLocalizations below.
//
// 3. Add a test to test/material/localizations_test.dart that verifies that
//    this new value is implemented.
//
// 4. Update the flutter_localizations package. To add a new string to the
//    flutter_localizations package, you must first add it to the English
27 28
//    translations (lib/src/l10n/material_en.arb), including a description.
//
29
//    Then you need to add new entries for the string to all of the other
30 31 32 33
//    language locale files by running:
//    ```
//    dart dev/tools/localization/bin/gen_missing_localizations.dart
//    ```
34 35
//    Which will copy the english strings into the other locales as placeholders
//    until they can be translated.
36 37 38 39 40 41
//
//    Finally you need to re-generate lib/src/l10n/localizations.dart by running:
//    ```
//    dart dev/tools/localization/bin/gen_localizations.dart --overwrite
//    ```
//
42 43
//    There is a README file with further information in the lib/src/l10n/
//    directory.
44 45 46
//
// 5. If you are a Google employee, you should then also follow the instructions
//    at go/flutter-l10n. If you're not, don't worry about it.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
//
// UPDATING AN EXISTING STRING
//
// If you (someone contributing to the Flutter framework) want to modify an
// existing string in the MaterialLocalizations objects, follow these steps:
//
// 1. Modify the default value of the relevant getter(s) in
//    DefaultMaterialLocalizations below.
//
// 2. Update the flutter_localizations package. Modify the out-of-date English
//    strings in lib/src/l10n/material_en.arb.
//
//    You also need to re-generate lib/src/l10n/localizations.dart by running:
//    ```
//    dart dev/tools/localization/bin/gen_localizations.dart --overwrite
//    ```
//
//    This script may result in your updated getters being created in newer
//    locales and set to the old value of the strings. This is to be expected.
//    Leave them as they were generated, and they will be picked up for
//    translation.
//
//    There is a README file with further information in the lib/src/l10n/
//    directory.
//
// 3. If you are a Google employee, you should then also follow the instructions
//    at go/flutter-l10n. If you're not, don't worry about it.
74

Yegor's avatar
Yegor committed
75
/// Defines the localized resource values used by the Material widgets.
76 77 78
///
/// See also:
///
79 80 81 82
///  * [DefaultMaterialLocalizations], the default, English-only, implementation
///    of this interface.
///  * [GlobalMaterialLocalizations], which provides material localizations for
///    many languages.
83
abstract class MaterialLocalizations {
84
  /// The tooltip for the leading [AppBar] menu (a.k.a. 'hamburger') button.
85
  String get openAppDrawerTooltip;
86 87

  /// The [BackButton]'s tooltip.
88
  String get backButtonTooltip;
89 90

  /// The [CloseButton]'s tooltip.
91
  String get closeButtonTooltip;
92

93 94 95
  /// The tooltip for the delete button on a [Chip].
  String get deleteButtonTooltip;

96 97 98
  /// The tooltip for the more button on an overflowing text selection menu.
  String get moreButtonTooltip;

99
  /// The tooltip for the [CalendarDatePicker]'s "next month" button.
100
  String get nextMonthTooltip;
101

102
  /// The tooltip for the [CalendarDatePicker]'s "previous month" button.
103
  String get previousMonthTooltip;
104

105 106 107 108 109 110
  /// The tooltip for the [PaginatedDataTable]'s "first page" button.
  String get firstPageTooltip;

  /// The tooltip for the [PaginatedDataTable]'s "last page" button.
  String get lastPageTooltip;

111
  /// The tooltip for the [PaginatedDataTable]'s "next page" button.
112 113
  String get nextPageTooltip;

114
  /// The tooltip for the [PaginatedDataTable]'s "previous page" button.
115 116 117 118 119
  String get previousPageTooltip;

  /// The default [PopupMenuButton] tooltip.
  String get showMenuTooltip;

Hans Muller's avatar
Hans Muller committed
120 121 122
  /// The default title for [AboutListTile].
  String aboutListTileTitle(String applicationName);

123 124 125
  /// Title for the [LicensePage] widget.
  String get licensesPageTitle;

126 127 128
  /// Subtitle for a package in the [LicensePage] widget.
  String licensesPackageDetailText(int licenseCount);

129 130 131 132 133 134
  /// Title for the [PaginatedDataTable]'s row info footer.
  String pageRowsInfoTitle(int firstRow, int lastRow, int rowCount, bool rowCountIsApproximate);

  /// Title for the [PaginatedDataTable]'s "rows per page" footer.
  String get rowsPerPageTitle;

135 136 137 138 139 140
  /// The accessibility label used on a tab in a [TabBar].
  ///
  /// This message describes the index of the selected tab and how many tabs
  /// there are, e.g. 'Tab 1 of 2' in United States English.
  ///
  /// `tabIndex` and `tabCount` must be greater than or equal to one.
141
  String tabLabel({ required int tabIndex, required int tabCount });
142

143
  /// Title for the [PaginatedDataTable]'s selected row count header.
144 145
  String selectedRowCountTitle(int selectedRowCount);

146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
  /// Label for "cancel" buttons and menu items.
  String get cancelButtonLabel;

  /// Label for "close" buttons and menu items.
  String get closeButtonLabel;

  /// Label for "continue" buttons and menu items.
  String get continueButtonLabel;

  /// Label for "copy" edit buttons and menu items.
  String get copyButtonLabel;

  /// Label for "cut" edit buttons and menu items.
  String get cutButtonLabel;

  /// Label for OK buttons and menu items.
  String get okButtonLabel;

  /// Label for "paste" edit buttons and menu items.
  String get pasteButtonLabel;

  /// Label for "select all" edit buttons and menu items.
  String get selectAllButtonLabel;

170
  /// Label for the [AboutDialog] button that shows the [LicensePage].
171 172
  String get viewLicensesButtonLabel;

Yegor's avatar
Yegor committed
173 174 175 176 177 178
  /// The abbreviation for ante meridiem (before noon) shown in the time picker.
  String get anteMeridiemAbbreviation;

  /// The abbreviation for post meridiem (after noon) shown in the time picker.
  String get postMeridiemAbbreviation;

179 180 181 182 183 184 185 186
  /// The text-to-speech announcement made when a time picker invoked using
  /// [showTimePicker] is set to the hour picker mode.
  String get timePickerHourModeAnnouncement;

  /// The text-to-speech announcement made when a time picker invoked using
  /// [showTimePicker] is set to the minute picker mode.
  String get timePickerMinuteModeAnnouncement;

Josh Soref's avatar
Josh Soref committed
187
  /// Label read out by accessibility tools (TalkBack or VoiceOver) for a modal
188 189
  /// barrier to indicate that a tap dismisses the barrier.
  ///
190
  /// A modal barrier can for example be found behind an alert or popup to block
191 192 193
  /// user interaction with elements behind it.
  String get modalBarrierDismissLabel;

194
  /// Label read out by accessibility tools (TalkBack or VoiceOver) when a
195 196
  /// drawer widget is opened.
  String get drawerLabel;
197 198

  /// Label read out by accessibility tools (TalkBack or VoiceOver) when a
199 200 201
  /// popup menu widget is opened.
  String get popupMenuLabel;

202
  /// Label read out by accessibility tools (TalkBack or VoiceOver) when a
203 204 205
  /// dialog widget is opened.
  String get dialogLabel;

206
  /// Label read out by accessibility tools (TalkBack or VoiceOver) when an
207 208 209
  /// alert dialog widget is opened.
  String get alertDialogLabel;

210 211 212 213
  /// Label indicating that a text field is a search field. This will be used
  /// as a hint text in the text field.
  String get searchFieldLabel;

Yegor's avatar
Yegor committed
214 215 216 217
  /// The format used to lay out the time picker.
  ///
  /// The documentation for [TimeOfDayFormat] enum values provides details on
  /// each supported layout.
218
  TimeOfDayFormat timeOfDayFormat({ bool alwaysUse24HourFormat = false });
Yegor's avatar
Yegor committed
219

220
  /// Defines the localized [TextStyle] geometry for [ThemeData.textTheme].
221
  ///
222
  /// The [scriptCategory] defines the overall geometry of a [TextTheme] for
Dan Field's avatar
Dan Field committed
223
  /// the [Typography.geometryThemeFor] method in terms of the
224
  /// three language categories defined in https://material.io/go/design-typography.
225
  ///
226 227 228 229 230
  /// Generally speaking, font sizes for [ScriptCategory.tall] and
  /// [ScriptCategory.dense] scripts - for text styles that are smaller than the
  /// title style - are one unit larger than they are for
  /// [ScriptCategory.englishLike] scripts.
  ScriptCategory get scriptCategory;
231

232 233 234 235
  /// Formats [number] as a decimal, inserting locale-appropriate thousands
  /// separators as necessary.
  String formatDecimal(int number);

236 237
  /// Formats [TimeOfDay.hour] in the given time of day according to the value
  /// of [timeOfDayFormat].
238 239 240
  ///
  /// If [alwaysUse24HourFormat] is true, formats hour using [HourFormat.HH]
  /// rather than the default for the current locale.
241
  String formatHour(TimeOfDay timeOfDay, { bool alwaysUse24HourFormat = false });
242 243 244 245 246 247

  /// Formats [TimeOfDay.minute] in the given time of day according to the value
  /// of [timeOfDayFormat].
  String formatMinute(TimeOfDay timeOfDay);

  /// Formats [timeOfDay] according to the value of [timeOfDayFormat].
248 249 250 251 252
  ///
  /// If [alwaysUse24HourFormat] is true, formats hour using [HourFormat.HH]
  /// rather than the default for the current locale. This value is usually
  /// passed from [MediaQueryData.alwaysUse24HourFormat], which has platform-
  /// specific behavior.
253
  String formatTimeOfDay(TimeOfDay timeOfDay, { bool alwaysUse24HourFormat = false });
254

Yegor's avatar
Yegor committed
255 256 257
  /// Full unabbreviated year format, e.g. 2017 rather than 17.
  String formatYear(DateTime date);

258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
  /// Formats the date in a compact format.
  ///
  /// Usually just the numeric values for the for day, month and year are used.
  ///
  /// Examples:
  ///
  /// - US English: 02/21/2019
  /// - Russian: 21.02.2019
  ///
  /// See also:
  ///   * [parseCompactDate], which will convert a compact date string to a [DateTime].
  String formatCompactDate(DateTime date);

  /// Formats the date using a short-width format.
  ///
  /// Includes the abbreviation of the month, the day and year.
  ///
  /// Examples:
  ///
  /// - US English: Feb 21, 2019
  /// - Russian: 21 февр. 2019 г.
  String formatShortDate(DateTime date);

Yegor's avatar
Yegor committed
281 282 283 284 285 286 287 288 289 290 291
  /// Formats the date using a medium-width format.
  ///
  /// Abbreviates month and days of week. This appears in the header of the date
  /// picker invoked using [showDatePicker].
  ///
  /// Examples:
  ///
  /// - US English: Wed, Sep 27
  /// - Russian: ср, сент. 27
  String formatMediumDate(DateTime date);

292 293 294 295 296 297 298 299 300 301 302
  /// Formats day of week, month, day of month and year in a long-width format.
  ///
  /// Does not abbreviate names. Appears in spoken announcements of the date
  /// picker invoked using [showDatePicker], when accessibility mode is on.
  ///
  /// Examples:
  ///
  /// - US English: Wednesday, September 27, 2017
  /// - Russian: Среда, Сентябрь 27, 2017
  String formatFullDate(DateTime date);

Yegor's avatar
Yegor committed
303 304 305 306 307 308
  /// Formats the month and the year of the given [date].
  ///
  /// The returned string does not contain the day of the month. This appears
  /// in the date picker invoked using [showDatePicker].
  String formatMonthYear(DateTime date);

309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324
  /// Formats the month and day of the given [date].
  ///
  /// Examples:
  ///
  /// - US English: Feb 21
  /// - Russian: 21 февр.
  String formatShortMonthDay(DateTime date);

  /// Converts the given compact date formatted string into a [DateTime].
  ///
  /// The format of the string must be a valid compact date format for the
  /// given locale. If the text doesn't represent a valid date, `null` will be
  /// returned.
  ///
  /// See also:
  ///   * [formatCompactDate], which will convert a [DateTime] into a string in the compact format.
325
  DateTime? parseCompactDate(String? inputString);
326

Yegor's avatar
Yegor committed
327 328 329 330 331 332 333 334 335 336 337 338
  /// List of week day names in narrow format, usually 1- or 2-letter
  /// abbreviations of full names.
  ///
  /// The list begins with the value corresponding to Sunday and ends with
  /// Saturday. Use [firstDayOfWeekIndex] to find the first day of week in this
  /// list.
  ///
  /// Examples:
  ///
  /// - US English: S, M, T, W, T, F, S
  /// - Russian: вс, пн, вт, ср, чт, пт, сб - notice that the list begins with
  ///   вс (Sunday) even though the first day of week for Russian is Monday.
339
  List<String> get narrowWeekdays;
Yegor's avatar
Yegor committed
340 341 342 343

  /// Index of the first day of week, where 0 points to Sunday, and 6 points to
  /// Saturday.
  ///
344
  /// This getter is compatible with [narrowWeekdays]. For example:
Yegor's avatar
Yegor committed
345 346 347 348
  ///
  /// ```dart
  /// var localizations = MaterialLocalizations.of(context);
  /// // The name of the first day of week for the current locale.
349
  /// var firstDayOfWeek = localizations.narrowWeekdays[localizations.firstDayOfWeekIndex];
Yegor's avatar
Yegor committed
350 351 352
  /// ```
  int get firstDayOfWeekIndex;

353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
  /// The character string used to separate the parts of a compact date format
  /// (i.e. mm/dd/yyyy has a separator of '/').
  String get dateSeparator;

  /// The help text used on an empty [InputDatePickerFormField] to indicate
  /// to the user the date format being asked for.
  String get dateHelpText;

  /// The semantic label used to announce when the user has entered the year
  /// selection mode of the [CalendarDatePicker] which is used in the data picker
  /// dialog created with [showDatePicker].
  String get selectYearSemanticsLabel;

  /// The label used to indicate a date that has not been entered or selected
  /// yet in the date picker.
  String get unspecifiedDate;

  /// The label used to indicate a date range that has not been entered or
  /// selected yet in the date range picker.
  String get unspecifiedDateRange;

  /// The label used to describe the text field used in an [InputDatePickerFormField].
  String get dateInputLabel;

  /// The label used for the starting date input field in the date range picker
  /// created with [showDateRangePicker].
  String get dateRangeStartLabel;

  /// The label used for the ending date input field in the date range picker
  /// created with [showDateRangePicker].
  String get dateRangeEndLabel;

  /// The semantics label used for the selected start date in the date range
  /// picker's day grid.
  String dateRangeStartDateSemanticLabel(String formattedDate);

  /// The semantics label used for the selected end date in the date range
  /// picker's day grid.
  String dateRangeEndDateSemanticLabel(String formattedDate);

  /// Error message displayed to the user when they have entered a text string
  /// in an [InputDatePickerFormField] that is not in a valid date format.
  String get invalidDateFormatLabel;

  /// Error message displayed to the user when they have entered an invalid
  /// date range in the input mode of the date range picker created with
  /// [showDateRangePicker].
  String get invalidDateRangeLabel;

  /// Error message displayed to the user when they have entered a date that
  /// is outside the valid range for the date picker.
  /// [showDateRangePicker].
  String get dateOutOfRangeLabel;

  /// Label for a 'SAVE' button. Currently used by the full screen mode of the
  /// date range picker.
  String get saveButtonLabel;

  /// Label used in the header of the date picker dialog created with
  /// [showDatePicker].
  String get datePickerHelpText;

  /// Label used in the header of the date range picker dialog created with
  /// [showDateRangePicker].
  String get dateRangePickerHelpText;

  /// Tooltip used for the calendar mode button of the date pickers.
  String get calendarModeButtonLabel;

  /// Tooltip used for the text input mode button of the date pickers.
  String get inputDateModeButtonLabel;

425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
  /// Label used in the header of the time picker dialog created with
  /// [showTimePicker] when in [TimePickerEntryMode.dial].
  String get timePickerDialHelpText;

  /// Label used in the header of the time picker dialog created with
  /// [showTimePicker] when in [TimePickerEntryMode.input].
  String get timePickerInputHelpText;

  /// Label used below the hour text field of the time picker dialog created
  /// with [showTimePicker] when in [TimePickerEntryMode.input].
  String get timePickerHourLabel;

  /// Label used below the minute text field of the time picker dialog created
  /// with [showTimePicker] when in [TimePickerEntryMode.input].
  String get timePickerMinuteLabel;

  /// Error message for the time picker dialog created with [showTimePicker]
  /// when in [TimePickerEntryMode.input].
  String get invalidTimeLabel;

  /// Tooltip used to put the time picker into [TimePickerEntryMode.dial].
  String get dialModeButtonLabel;

  /// Tooltip used to put the time picker into [TimePickerEntryMode.input].
  String get inputTimeModeButtonLabel;

nt4f04uNd's avatar
nt4f04uNd committed
451
  /// The semantics label used to indicate which account is signed in the
452 453 454 455 456 457 458 459 460 461 462
  /// [UserAccountsDrawerHeader] widget.
  String get signedInLabel;

  /// The semantics label used for the button on [UserAccountsDrawerHeader] that
  /// hides the list of accounts.
  String get hideAccountsLabel;

  /// The semantics label used for the button on [UserAccountsDrawerHeader] that
  /// shows the list of accounts.
  String get showAccountsLabel;

463
  /// The semantics label used for [ReorderableListView] to reorder an item in the
464 465 466
  /// list to the start of the list.
  String get reorderItemToStart;

467
  /// The semantics label used for [ReorderableListView] to reorder an item in the
468 469 470
  /// list to the end of the list.
  String get reorderItemToEnd;

471
  /// The semantics label used for [ReorderableListView] to reorder an item in the
472 473 474
  /// list one space up the list.
  String get reorderItemUp;

475
  /// The semantics label used for [ReorderableListView] to reorder an item in the
476 477 478
  /// list one space down the list.
  String get reorderItemDown;

479
  /// The semantics label used for [ReorderableListView] to reorder an item in the
480 481 482
  /// list one space left in the list.
  String get reorderItemLeft;

483
  /// The semantics label used for [ReorderableListView] to reorder an item in the
484 485 486
  /// list one space right in the list.
  String get reorderItemRight;

487 488 489 490 491 492
  /// The semantics hint to describe the tap action on an expanded [ExpandIcon].
  String get expandedIconTapHint => 'Collapse';

  /// The semantics hint to describe the tap action on a collapsed [ExpandIcon].
  String get collapsedIconTapHint => 'Expand';

493 494 495
  /// The label for the [TextField]'s character counter.
  String remainingTextFieldCharacterCount(int remaining);

496 497 498
  /// The default semantics label for a [RefreshIndicator].
  String get refreshIndicatorSemanticLabel;

499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672
  /// The shortcut label for the keyboard key [LogicalKeyboardKey.alt].
  String get keyboardKeyAlt;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.altGraph].
  String get keyboardKeyAltGraph;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.backspace].
  String get keyboardKeyBackspace;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.capsLock].
  String get keyboardKeyCapsLock;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.channelDown].
  String get keyboardKeyChannelDown;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.channelUp].
  String get keyboardKeyChannelUp;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.control].
  String get keyboardKeyControl;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.delete].
  String get keyboardKeyDelete;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.eisu].
  String get keyboardKeyEisu;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.eject].
  String get keyboardKeyEject;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.end].
  String get keyboardKeyEnd;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.escape].
  String get keyboardKeyEscape;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.fn].
  String get keyboardKeyFn;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.hangulMode].
  String get keyboardKeyHangulMode;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.hanjaMode].
  String get keyboardKeyHanjaMode;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.hankaku].
  String get keyboardKeyHankaku;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.hiragana].
  String get keyboardKeyHiragana;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.hiraganaKatakana].
  String get keyboardKeyHiraganaKatakana;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.home].
  String get keyboardKeyHome;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.insert].
  String get keyboardKeyInsert;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.kanaMode].
  String get keyboardKeyKanaMode;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.kanjiMode].
  String get keyboardKeyKanjiMode;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.katakana].
  String get keyboardKeyKatakana;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.meta].
  String get keyboardKeyMeta;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.meta] on macOS.
  String get keyboardKeyMetaMacOs;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.meta] on Windows.
  String get keyboardKeyMetaWindows;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numLock].
  String get keyboardKeyNumLock;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad1].
  String get keyboardKeyNumpad1;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad2].
  String get keyboardKeyNumpad2;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad3].
  String get keyboardKeyNumpad3;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad4].
  String get keyboardKeyNumpad4;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad5].
  String get keyboardKeyNumpad5;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad6].
  String get keyboardKeyNumpad6;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad7].
  String get keyboardKeyNumpad7;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad8].
  String get keyboardKeyNumpad8;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad9].
  String get keyboardKeyNumpad9;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpad0].
  String get keyboardKeyNumpad0;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadAdd].
  String get keyboardKeyNumpadAdd;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadComma].
  String get keyboardKeyNumpadComma;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadDecimal].
  String get keyboardKeyNumpadDecimal;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadDivide].
  String get keyboardKeyNumpadDivide;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadEnter].
  String get keyboardKeyNumpadEnter;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadEqual].
  String get keyboardKeyNumpadEqual;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadMultiply].
  String get keyboardKeyNumpadMultiply;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadParenLeft].
  String get keyboardKeyNumpadParenLeft;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadParenRight].
  String get keyboardKeyNumpadParenRight;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.numpadSubtract].
  String get keyboardKeyNumpadSubtract;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.pageDown].
  String get keyboardKeyPageDown;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.pageUp].
  String get keyboardKeyPageUp;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.power].
  String get keyboardKeyPower;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.powerOff].
  String get keyboardKeyPowerOff;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.printScreen].
  String get keyboardKeyPrintScreen;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.romaji].
  String get keyboardKeyRomaji;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.scrollLock].
  String get keyboardKeyScrollLock;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.select].
  String get keyboardKeySelect;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.space].
  String get keyboardKeySpace;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.zenkaku].
  String get keyboardKeyZenkaku;

  /// The shortcut label for the keyboard key [LogicalKeyboardKey.zenkakuHankaku].
  String get keyboardKeyZenkakuHankaku;

673 674 675
  /// The `MaterialLocalizations` from the closest [Localizations] instance
  /// that encloses the given context.
  ///
676 677 678
  /// If no [MaterialLocalizations] are available in the given `context`, this
  /// method throws an exception.
  ///
679
  /// This method is just a convenient shorthand for:
680
  /// `Localizations.of<MaterialLocalizations>(context, MaterialLocalizations)!`.
681 682 683
  ///
  /// References to the localized resources defined by this class are typically
  /// written in terms of this method. For example:
684
  ///
685 686 687
  /// ```dart
  /// tooltip: MaterialLocalizations.of(context).backButtonTooltip,
  /// ```
688
  static MaterialLocalizations of(BuildContext context) {
689
    assert(debugCheckHasMaterialLocalizations(context));
690
    return Localizations.of<MaterialLocalizations>(context, MaterialLocalizations)!;
691 692
  }
}
693

694 695 696
class _MaterialLocalizationsDelegate extends LocalizationsDelegate<MaterialLocalizations> {
  const _MaterialLocalizationsDelegate();

697 698 699
  @override
  bool isSupported(Locale locale) => locale.languageCode == 'en';

700 701 702 703 704
  @override
  Future<MaterialLocalizations> load(Locale locale) => DefaultMaterialLocalizations.load(locale);

  @override
  bool shouldReload(_MaterialLocalizationsDelegate old) => false;
705 706 707

  @override
  String toString() => 'DefaultMaterialLocalizations.delegate(en_US)';
708 709 710 711 712 713 714 715
}

/// US English strings for the material widgets.
///
/// See also:
///
///  * [GlobalMaterialLocalizations], which provides material localizations for
///    many languages.
Dan Field's avatar
Dan Field committed
716
///  * [MaterialApp.localizationsDelegates], which automatically includes
717
///    [DefaultMaterialLocalizations.delegate] by default.
718
class DefaultMaterialLocalizations implements MaterialLocalizations {
Yegor's avatar
Yegor committed
719
  /// Constructs an object that defines the material widgets' localized strings
720
  /// for US English (only).
721 722 723
  ///
  /// [LocalizationsDelegate] implementations typically call the static [load]
  /// function, rather than constructing this class directly.
724 725
  const DefaultMaterialLocalizations();

726
  // Ordered to match DateTime.monday=1, DateTime.sunday=6
727
  static const List<String> _shortWeekdays = <String>[
728 729 730 731 732 733 734 735 736
    'Mon',
    'Tue',
    'Wed',
    'Thu',
    'Fri',
    'Sat',
    'Sun',
  ];

737
  // Ordered to match DateTime.monday=1, DateTime.sunday=6
738
  static const List<String> _weekdays = <String>[
739 740 741 742 743 744 745 746 747
    'Monday',
    'Tuesday',
    'Wednesday',
    'Thursday',
    'Friday',
    'Saturday',
    'Sunday',
  ];

748
  static const List<String> _narrowWeekdays = <String>[
749 750 751 752 753 754 755 756 757
    'S',
    'M',
    'T',
    'W',
    'T',
    'F',
    'S',
  ];

758
  static const List<String> _shortMonths = <String>[
759 760 761 762 763 764 765 766 767 768 769 770 771 772
    'Jan',
    'Feb',
    'Mar',
    'Apr',
    'May',
    'Jun',
    'Jul',
    'Aug',
    'Sep',
    'Oct',
    'Nov',
    'Dec',
  ];

773
  static const List<String> _months = <String>[
774 775 776 777 778 779 780 781 782 783 784 785 786
    'January',
    'February',
    'March',
    'April',
    'May',
    'June',
    'July',
    'August',
    'September',
    'October',
    'November',
    'December',
  ];
787

788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804
  /// Returns the number of days in a month, according to the proleptic
  /// Gregorian calendar.
  ///
  /// This applies the leap year logic introduced by the Gregorian reforms of
  /// 1582. It will not give valid results for dates prior to that time.
  int _getDaysInMonth(int year, int month) {
    if (month == DateTime.february) {
      final bool isLeapYear = (year % 4 == 0) && (year % 100 != 0) ||
          (year % 400 == 0);
      if (isLeapYear)
        return 29;
      return 28;
    }
    const List<int> daysInMonth = <int>[31, -1, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
    return daysInMonth[month - 1];
  }

805
  @override
806
  String formatHour(TimeOfDay timeOfDay, { bool alwaysUse24HourFormat = false }) {
807 808 809 810 811 812
    final TimeOfDayFormat format = timeOfDayFormat(alwaysUse24HourFormat: alwaysUse24HourFormat);
    switch (format) {
      case TimeOfDayFormat.h_colon_mm_space_a:
        return formatDecimal(timeOfDay.hourOfPeriod == 0 ? 12 : timeOfDay.hourOfPeriod);
      case TimeOfDayFormat.HH_colon_mm:
        return _formatTwoDigitZeroPad(timeOfDay.hour);
813 814 815 816
      case TimeOfDayFormat.a_space_h_colon_mm:
      case TimeOfDayFormat.frenchCanadian:
      case TimeOfDayFormat.H_colon_mm:
      case TimeOfDayFormat.HH_dot_mm:
817
        throw AssertionError('$runtimeType does not support $format.');
818 819 820 821 822 823 824 825 826 827 828 829
    }
  }

  /// Formats [number] using two digits, assuming it's in the 0-99 inclusive
  /// range. Not designed to format values outside this range.
  String _formatTwoDigitZeroPad(int number) {
    assert(0 <= number && number < 100);

    if (number < 10)
      return '0$number';

    return '$number';
830 831 832 833
  }

  @override
  String formatMinute(TimeOfDay timeOfDay) {
834 835
    final int minute = timeOfDay.minute;
    return minute < 10 ? '0$minute' : minute.toString();
836 837
  }

Yegor's avatar
Yegor committed
838
  @override
839
  String formatYear(DateTime date) => date.year.toString();
Yegor's avatar
Yegor committed
840

841 842 843 844 845 846 847 848 849 850 851 852 853 854 855
  @override
  String formatCompactDate(DateTime date) {
    // Assumes US mm/dd/yyyy format
    final String month = _formatTwoDigitZeroPad(date.month);
    final String day = _formatTwoDigitZeroPad(date.day);
    final String year = date.year.toString().padLeft(4, '0');
    return '$month/$day/$year';
  }

  @override
  String formatShortDate(DateTime date) {
    final String month = _shortMonths[date.month - DateTime.january];
    return '$month ${date.day}, ${date.year}';
  }

Yegor's avatar
Yegor committed
856 857
  @override
  String formatMediumDate(DateTime date) {
858 859
    final String day = _shortWeekdays[date.weekday - DateTime.monday];
    final String month = _shortMonths[date.month - DateTime.january];
860
    return '$day, $month ${date.day}';
Yegor's avatar
Yegor committed
861 862
  }

863 864
  @override
  String formatFullDate(DateTime date) {
865 866
    final String month = _months[date.month - DateTime.january];
    return '${_weekdays[date.weekday - DateTime.monday]}, $month ${date.day}, ${date.year}';
867 868
  }

Yegor's avatar
Yegor committed
869 870
  @override
  String formatMonthYear(DateTime date) {
871
    final String year = formatYear(date);
872
    final String month = _months[date.month - DateTime.january];
873
    return '$month $year';
Yegor's avatar
Yegor committed
874 875
  }

876 877 878 879 880 881 882
  @override
  String formatShortMonthDay(DateTime date) {
    final String month = _shortMonths[date.month - DateTime.january];
    return '$month ${date.day}';
  }

  @override
883 884 885 886 887
  DateTime? parseCompactDate(String? inputString) {
    if (inputString == null) {
      return null;
    }

888 889 890 891 892 893
    // Assumes US mm/dd/yyyy format
    final List<String> inputParts = inputString.split('/');
    if (inputParts.length != 3) {
      return null;
    }

894
    final int? year = int.tryParse(inputParts[2], radix: 10);
895 896 897 898
    if (year == null || year < 1) {
      return null;
    }

899
    final int? month = int.tryParse(inputParts[0], radix: 10);
900 901 902 903
    if (month == null || month < 1 || month > 12) {
      return null;
    }

904
    final int? day = int.tryParse(inputParts[1], radix: 10);
905 906 907 908 909 910
    if (day == null || day < 1 || day > _getDaysInMonth(year, month)) {
      return null;
    }
    return DateTime(year, month, day);
  }

Yegor's avatar
Yegor committed
911
  @override
912
  List<String> get narrowWeekdays => _narrowWeekdays;
Yegor's avatar
Yegor committed
913 914

  @override
915
  int get firstDayOfWeekIndex => 0; // narrowWeekdays[0] is 'S' for Sunday
Yegor's avatar
Yegor committed
916

917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941
  @override
  String get dateSeparator => '/';

  @override
  String get dateHelpText => 'mm/dd/yyyy';

  @override
  String get selectYearSemanticsLabel => 'Select year';

  @override
  String get unspecifiedDate => 'Date';

  @override
  String get unspecifiedDateRange => 'Date Range';

  @override
  String get dateInputLabel => 'Enter Date';

  @override
  String get dateRangeStartLabel => 'Start Date';

  @override
  String get dateRangeEndLabel => 'End Date';

  @override
942
  String dateRangeStartDateSemanticLabel(String formattedDate) => 'Start date $formattedDate';
943 944

  @override
945
  String dateRangeEndDateSemanticLabel(String formattedDate) => 'End date $formattedDate';
946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970

  @override
  String get invalidDateFormatLabel => 'Invalid format.';

  @override
  String get invalidDateRangeLabel => 'Invalid range.';

  @override
  String get dateOutOfRangeLabel => 'Out of range.';

  @override
  String get saveButtonLabel => 'SAVE';

  @override
  String get datePickerHelpText => 'SELECT DATE';

  @override
  String get dateRangePickerHelpText => 'SELECT RANGE';

  @override
  String get calendarModeButtonLabel => 'Switch to calendar';

  @override
  String get inputDateModeButtonLabel => 'Switch to input';

971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991
  @override
  String get timePickerDialHelpText => 'SELECT TIME';

  @override
  String get timePickerInputHelpText => 'ENTER TIME';

  @override
  String get timePickerHourLabel => 'Hour';

  @override
  String get timePickerMinuteLabel => 'Minute';

  @override
  String get invalidTimeLabel => 'Enter a valid time';

  @override
  String get dialModeButtonLabel => 'Switch to dial picker mode';

  @override
  String get inputTimeModeButtonLabel => 'Switch to text input mode';

992 993 994 995 996 997 998 999 1000
  String _formatDayPeriod(TimeOfDay timeOfDay) {
    switch (timeOfDay.period) {
      case DayPeriod.am:
        return anteMeridiemAbbreviation;
      case DayPeriod.pm:
        return postMeridiemAbbreviation;
    }
  }

1001
  @override
1002
  String formatDecimal(int number) {
1003 1004 1005 1006
    if (number > -1000 && number < 1000)
      return number.toString();

    final String digits = number.abs().toString();
1007
    final StringBuffer result = StringBuffer(number < 0 ? '-' : '');
1008 1009 1010 1011 1012 1013 1014
    final int maxDigitIndex = digits.length - 1;
    for (int i = 0; i <= maxDigitIndex; i += 1) {
      result.write(digits[i]);
      if (i < maxDigitIndex && (maxDigitIndex - i) % 3 == 0)
        result.write(',');
    }
    return result.toString();
1015 1016 1017
  }

  @override
1018
  String formatTimeOfDay(TimeOfDay timeOfDay, { bool alwaysUse24HourFormat = false }) {
1019 1020 1021 1022 1023 1024 1025 1026
    // Not using intl.DateFormat for two reasons:
    //
    // - DateFormat supports more formats than our material time picker does,
    //   and we want to be consistent across time picker format and the string
    //   formatting of the time of day.
    // - DateFormat operates on DateTime, which is sensitive to time eras and
    //   time zones, while here we want to format hour and minute within one day
    //   no matter what date the day falls on.
1027
    final StringBuffer buffer = StringBuffer();
1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044

    // Add hour:minute.
    buffer
      ..write(formatHour(timeOfDay, alwaysUse24HourFormat: alwaysUse24HourFormat))
      ..write(':')
      ..write(formatMinute(timeOfDay));

    if (alwaysUse24HourFormat) {
      // There's no AM/PM indicator in 24-hour format.
      return '$buffer';
    }

    // Add AM/PM indicator.
    buffer
      ..write(' ')
      ..write(_formatDayPeriod(timeOfDay));
    return '$buffer';
1045 1046
  }

1047
  @override
1048
  String get openAppDrawerTooltip => 'Open navigation menu';
1049 1050

  @override
1051
  String get backButtonTooltip => 'Back';
1052 1053

  @override
1054
  String get closeButtonTooltip => 'Close';
1055

1056 1057 1058
  @override
  String get deleteButtonTooltip => 'Delete';

1059 1060 1061
  @override
  String get moreButtonTooltip => 'More';

1062
  @override
1063
  String get nextMonthTooltip => 'Next month';
1064 1065

  @override
1066
  String get previousMonthTooltip => 'Previous month';
1067

1068
  @override
1069
  String get nextPageTooltip => 'Next page';
1070 1071

  @override
1072
  String get previousPageTooltip => 'Previous page';
1073

1074 1075 1076 1077 1078 1079
  @override
  String get firstPageTooltip => 'First page';

  @override
  String get lastPageTooltip => 'Last page';

1080
  @override
1081
  String get showMenuTooltip => 'Show menu';
1082

1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094
  @override
  String get drawerLabel => 'Navigation menu';

  @override
  String get popupMenuLabel => 'Popup menu';

  @override
  String get dialogLabel => 'Dialog';

  @override
  String get alertDialogLabel => 'Alert';

1095 1096 1097
  @override
  String get searchFieldLabel => 'Search';

Hans Muller's avatar
Hans Muller committed
1098
  @override
1099
  String aboutListTileTitle(String applicationName) => 'About $applicationName';
Hans Muller's avatar
Hans Muller committed
1100

1101
  @override
1102
  String get licensesPageTitle => 'Licenses';
1103

1104 1105
  @override
  String licensesPackageDetailText(int licenseCount) {
1106
    assert(licenseCount >= 0);
1107
    switch (licenseCount) {
1108 1109
      case 0:
        return 'No licenses.';
1110
      case 1:
1111
        return '1 license.';
1112
      default:
1113
        return '$licenseCount licenses.';
1114 1115 1116
    }
  }

1117 1118
  @override
  String pageRowsInfoTitle(int firstRow, int lastRow, int rowCount, bool rowCountIsApproximate) {
1119 1120 1121
    return rowCountIsApproximate
      ? '$firstRow$lastRow of about $rowCount'
      : '$firstRow$lastRow of $rowCount';
1122 1123 1124
  }

  @override
1125
  String get rowsPerPageTitle => 'Rows per page:';
1126

1127
  @override
1128
  String tabLabel({ required int tabIndex, required int tabCount }) {
1129 1130 1131 1132 1133
    assert(tabIndex >= 1);
    assert(tabCount >= 1);
    return 'Tab $tabIndex of $tabCount';
  }

1134 1135
  @override
  String selectedRowCountTitle(int selectedRowCount) {
1136 1137 1138 1139 1140 1141 1142 1143
    switch (selectedRowCount) {
      case 0:
        return 'No items selected';
      case 1:
        return '1 item selected';
      default:
        return '$selectedRowCount items selected';
    }
1144
  }
1145 1146

  @override
1147
  String get cancelButtonLabel => 'CANCEL';
1148 1149

  @override
1150
  String get closeButtonLabel => 'CLOSE';
1151 1152

  @override
1153
  String get continueButtonLabel => 'CONTINUE';
1154 1155

  @override
1156
  String get copyButtonLabel => 'Copy';
1157 1158

  @override
1159
  String get cutButtonLabel => 'Cut';
1160 1161

  @override
1162
  String get okButtonLabel => 'OK';
1163 1164

  @override
1165
  String get pasteButtonLabel => 'Paste';
1166 1167

  @override
1168
  String get selectAllButtonLabel => 'Select all';
1169 1170

  @override
1171
  String get viewLicensesButtonLabel => 'VIEW LICENSES';
1172

Yegor's avatar
Yegor committed
1173
  @override
1174
  String get anteMeridiemAbbreviation => 'AM';
Yegor's avatar
Yegor committed
1175 1176

  @override
1177
  String get postMeridiemAbbreviation => 'PM';
Yegor's avatar
Yegor committed
1178

1179 1180 1181 1182 1183 1184
  @override
  String get timePickerHourModeAnnouncement => 'Select hours';

  @override
  String get timePickerMinuteModeAnnouncement => 'Select minutes';

1185 1186 1187
  @override
  String get modalBarrierDismissLabel => 'Dismiss';

1188 1189 1190
  @override
  ScriptCategory get scriptCategory => ScriptCategory.englishLike;

1191
  @override
1192
  TimeOfDayFormat timeOfDayFormat({ bool alwaysUse24HourFormat = false }) {
1193 1194 1195 1196
    return alwaysUse24HourFormat
      ? TimeOfDayFormat.HH_colon_mm
      : TimeOfDayFormat.h_colon_mm_space_a;
  }
Yegor's avatar
Yegor committed
1197

1198 1199 1200 1201 1202 1203 1204 1205 1206
  @override
  String get signedInLabel => 'Signed in';

  @override
  String get hideAccountsLabel => 'Hide accounts';

  @override
  String get showAccountsLabel => 'Show accounts';

1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224
  @override
  String get reorderItemUp => 'Move up';

  @override
  String get reorderItemDown => 'Move down';

  @override
  String get reorderItemLeft => 'Move left';

  @override
  String get reorderItemRight => 'Move right';

  @override
  String get reorderItemToEnd => 'Move to the end';

  @override
  String get reorderItemToStart => 'Move to the start';

1225 1226 1227 1228 1229 1230
  @override
  String get expandedIconTapHint => 'Collapse';

  @override
  String get collapsedIconTapHint => 'Expand';

1231 1232 1233
  @override
  String get refreshIndicatorSemanticLabel => 'Refresh';

1234 1235 1236 1237
  /// Creates an object that provides US English resource values for the material
  /// library widgets.
  ///
  /// The [locale] parameter is ignored.
1238 1239 1240 1241
  ///
  /// This method is typically used to create a [LocalizationsDelegate].
  /// The [MaterialApp] does so by default.
  static Future<MaterialLocalizations> load(Locale locale) {
1242
    return SynchronousFuture<MaterialLocalizations>(const DefaultMaterialLocalizations());
1243
  }
Yegor's avatar
Yegor committed
1244

1245 1246 1247 1248
  /// A [LocalizationsDelegate] that uses [DefaultMaterialLocalizations.load]
  /// to create an instance of this class.
  ///
  /// [MaterialApp] automatically adds this value to [MaterialApp.localizationsDelegates].
1249
  static const LocalizationsDelegate<MaterialLocalizations> delegate = _MaterialLocalizationsDelegate();
1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261

  @override
  String remainingTextFieldCharacterCount(int remaining) {
    switch (remaining) {
      case 0:
        return 'No characters remaining';
      case 1:
        return '1 character remaining';
      default:
        return '$remaining characters remaining';
    }
  }
1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435

  @override
  String get keyboardKeyAlt => 'Alt';

  @override
  String get keyboardKeyAltGraph => 'AltGr';

  @override
  String get keyboardKeyBackspace => 'Backspace';

  @override
  String get keyboardKeyCapsLock => 'Caps Lock';

  @override
  String get keyboardKeyChannelDown => 'Channel Down';

  @override
  String get keyboardKeyChannelUp => 'Channel Up';

  @override
  String get keyboardKeyControl => 'Ctrl';

  @override
  String get keyboardKeyDelete => 'Del';

  @override
  String get keyboardKeyEisu => 'Eisū';

  @override
  String get keyboardKeyEject => 'Eject';

  @override
  String get keyboardKeyEnd => 'End';

  @override
  String get keyboardKeyEscape => 'Esc';

  @override
  String get keyboardKeyFn => 'Fn';

  @override
  String get keyboardKeyHangulMode => 'Hangul Mode';

  @override
  String get keyboardKeyHanjaMode => 'Hanja Mode';

  @override
  String get keyboardKeyHankaku => 'Hankaku';

  @override
  String get keyboardKeyHiragana => 'Hiragana';

  @override
  String get keyboardKeyHiraganaKatakana => 'Hiragana Katakana';

  @override
  String get keyboardKeyHome => 'Home';

  @override
  String get keyboardKeyInsert => 'Insert';

  @override
  String get keyboardKeyKanaMode => 'Kana Mode';

  @override
  String get keyboardKeyKanjiMode => 'Kanji Mode';

  @override
  String get keyboardKeyKatakana => 'Katakana';

  @override
  String get keyboardKeyMeta => 'Meta';

  @override
  String get keyboardKeyMetaMacOs => 'Command';

  @override
  String get keyboardKeyMetaWindows => 'Win';

  @override
  String get keyboardKeyNumLock => 'Num Lock';

  @override
  String get keyboardKeyNumpad1 => 'Num 1';

  @override
  String get keyboardKeyNumpad2 => 'Num 2';

  @override
  String get keyboardKeyNumpad3 => 'Num 3';

  @override
  String get keyboardKeyNumpad4 => 'Num 4';

  @override
  String get keyboardKeyNumpad5 => 'Num 5';

  @override
  String get keyboardKeyNumpad6 => 'Num 6';

  @override
  String get keyboardKeyNumpad7 => 'Num 7';

  @override
  String get keyboardKeyNumpad8 => 'Num 8';

  @override
  String get keyboardKeyNumpad9 => 'Num 9';

  @override
  String get keyboardKeyNumpad0 => 'Num 0';

  @override
  String get keyboardKeyNumpadAdd => 'Num +';

  @override
  String get keyboardKeyNumpadComma => 'Num ,';

  @override
  String get keyboardKeyNumpadDecimal => 'Num .';

  @override
  String get keyboardKeyNumpadDivide => 'Num /';

  @override
  String get keyboardKeyNumpadEnter => 'Num Enter';

  @override
  String get keyboardKeyNumpadEqual => 'Num =';

  @override
  String get keyboardKeyNumpadMultiply => 'Num *';

  @override
  String get keyboardKeyNumpadParenLeft => 'Num (';

  @override
  String get keyboardKeyNumpadParenRight => 'Num )';

  @override
  String get keyboardKeyNumpadSubtract => 'Num -';

  @override
  String get keyboardKeyPageDown => 'PgDown';

  @override
  String get keyboardKeyPageUp => 'PgUp';

  @override
  String get keyboardKeyPower => 'Power';

  @override
  String get keyboardKeyPowerOff => 'Power Off';

  @override
  String get keyboardKeyPrintScreen => 'Print Screen';

  @override
  String get keyboardKeyRomaji => 'Romaji';

  @override
  String get keyboardKeyScrollLock => 'Scroll Lock';

  @override
  String get keyboardKeySelect => 'Select';

  @override
  String get keyboardKeySpace => 'Space';

  @override
  String get keyboardKeyZenkaku => 'Zenkaku';

  @override
  String get keyboardKeyZenkakuHankaku => 'Zenkaku Hankaku';
Yegor's avatar
Yegor committed
1436
}