-
Notifications
You must be signed in to change notification settings - Fork 8.3k
/
i18n_eui_mapping.tsx
1135 lines (1131 loc) · 47.3 KB
/
i18n_eui_mapping.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
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
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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
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
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
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
942
943
944
945
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
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import React from 'react';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
interface EuiValues {
[key: string]: any;
}
export const getEuiContextMapping = () => {
const euiContextMapping = {
'euiAccordion.isLoading': i18n.translate('core.euiAccordion.isLoading', {
defaultMessage: 'Loading',
}),
'euiBasicTable.selectAllRows': i18n.translate('core.euiBasicTable.selectAllRows', {
defaultMessage: 'Select all rows',
description: 'ARIA and displayed label on a checkbox to select all table rows',
}),
'euiBasicTable.selectThisRow': i18n.translate('core.euiBasicTable.selectThisRow', {
defaultMessage: 'Select this row',
description: 'ARIA and displayed label on a checkbox to select a single table row',
}),
'euiBasicTable.tableCaptionWithPagination': ({ tableCaption, page, pageCount }: EuiValues) =>
i18n.translate('core.euiBasicTable.tableCaptionWithPagination', {
defaultMessage: '{tableCaption}; Page {page} of {pageCount}.',
values: { tableCaption, page, pageCount },
description: 'Screen reader text to describe the size of a paginated table',
}),
'euiBasicTable.tableAutoCaptionWithPagination': ({
itemCount,
totalItemCount,
page,
pageCount,
}: EuiValues) =>
i18n.translate('core.euiBasicTable.tableDescriptionWithoutPagination', {
defaultMessage:
'This table contains {itemCount} rows out of {totalItemCount} rows; Page {page} of {pageCount}.',
values: { itemCount, totalItemCount, page, pageCount },
description: 'Screen reader text to describe the size of a paginated table',
}),
'euiBasicTable.tableSimpleAutoCaptionWithPagination': ({
itemCount,
page,
pageCount,
}: EuiValues) =>
i18n.translate('core.euiBasicTable.tableSimpleAutoCaptionWithPagination', {
defaultMessage: 'This table contains {itemCount} rows; Page {page} of {pageCount}.',
values: { itemCount, page, pageCount },
description: 'Screen reader text to describe the size of a paginated table',
}),
'euiBasicTable.tableAutoCaptionWithoutPagination': ({ itemCount }: EuiValues) =>
i18n.translate('core.euiBasicTable.tableAutoCaptionWithoutPagination', {
defaultMessage: 'This table contains {itemCount} rows.',
values: { itemCount },
description: 'Screen reader text to describe the size of a table',
}),
'euiBasicTable.tablePagination': ({ tableCaption }: EuiValues) =>
i18n.translate('core.euiBasicTable.tablePagination', {
defaultMessage: 'Pagination for preceding table: {tableCaption}',
values: { tableCaption },
description: 'Screen reader text to describe the pagination controls',
}),
'euiBottomBar.customScreenReaderAnnouncement': ({ landmarkHeading }: EuiValues) =>
i18n.translate('core.euiBottomBar.customScreenReaderAnnouncement', {
defaultMessage:
'There is a new region landmark called {landmarkHeading} with page level controls at the end of the document.',
values: { landmarkHeading },
description:
'Screen reader announcement that functionality is available in the page document',
}),
'euiBottomBar.screenReaderAnnouncement': i18n.translate(
'core.euiBottomBar.screenReaderAnnouncement',
{
defaultMessage:
'There is a new region landmark with page level controls at the end of the document.',
description:
'Screen reader announcement that functionality is available in the page document',
}
),
'euiBottomBar.screenReaderHeading': i18n.translate('core.euiBottomBar.screenReaderHeading', {
defaultMessage: 'Page level controls',
description: 'Screen reader announcement about heading controls',
}),
'euiBreadcrumbs.collapsedBadge.ariaLabel': i18n.translate(
'core.euiBreadcrumbs.collapsedBadge.ariaLabel',
{
defaultMessage: 'Show collapsed breadcrumbs',
description: 'Displayed when one or more breadcrumbs are hidden.',
}
),
'euiCardSelect.select': i18n.translate('core.euiCardSelect.select', {
defaultMessage: 'Select',
description: 'Displayed button text when a card option can be selected.',
}),
'euiCardSelect.selected': i18n.translate('core.euiCardSelect.selected', {
defaultMessage: 'Selected',
description: 'Displayed button text when a card option is selected.',
}),
'euiCardSelect.unavailable': i18n.translate('core.euiCardSelect.unavailable', {
defaultMessage: 'Unavailable',
description: 'Displayed button text when a card option is unavailable.',
}),
'euiCodeBlock.copyButton': i18n.translate('core.euiCodeBlock.copyButton', {
defaultMessage: 'Copy',
description: 'ARIA label for a button that copies source code text to the clipboard',
}),
'euiCodeBlock.fullscreenCollapse': i18n.translate('core.euiCodeBlock.fullscreenCollapse', {
defaultMessage: 'Collapse',
description: 'ARIA label for a button that exits fullscreen view',
}),
'euiCodeBlock.fullscreenExpand': i18n.translate('core.euiCodeBlock.fullscreenExpand', {
defaultMessage: 'Expand',
description: 'ARIA label for a button that enters fullscreen view',
}),
'euiCodeEditor.startEditing': i18n.translate('core.euiCodeEditor.startEditing', {
defaultMessage: 'Press Enter to start editing.',
description: 'Screen reader text to prompt editing',
}),
'euiCodeEditor.startInteracting': i18n.translate('core.euiCodeEditor.startInteracting', {
defaultMessage: 'Press Enter to start interacting with the code.',
description: 'Screen reader text to prompt interaction',
}),
'euiCodeEditor.stopEditing': i18n.translate('core.euiCodeEditor.stopEditing', {
defaultMessage: "When you're done, press Escape to stop editing.",
description: 'Screen reader text to describe ending editing',
}),
'euiCodeEditor.stopInteracting': i18n.translate('core.euiCodeEditor.stopInteracting', {
defaultMessage: "When you're done, press Escape to stop interacting with the code.",
description: 'Screen reader text to describe ending interactions',
}),
'euiCollapsedItemActions.allActions': i18n.translate(
'core.euiCollapsedItemActions.allActions',
{
defaultMessage: 'All actions',
description:
'ARIA label and tooltip content describing a button that expands an actions menu',
}
),
'euiCollapsibleNav.closeButtonLabel': i18n.translate(
'core.euiCollapsibleNav.closeButtonLabel',
{
defaultMessage: 'close',
}
),
'euiColorPicker.screenReaderAnnouncement': i18n.translate(
'core.euiColorPicker.screenReaderAnnouncement',
{
defaultMessage:
'A popup with a range of selectable colors opened. Tab forward to cycle through colors choices or press escape to close this popup.',
description:
'Message when the color picker popover is opened. Describes the interaction with the elements in the popover.',
}
),
'euiColorPicker.swatchAriaLabel': ({ swatch }: EuiValues) =>
i18n.translate('core.euiColorPicker.swatchAriaLabel', {
defaultMessage: 'Select {swatch} as the color',
values: { swatch },
description:
'Screen reader text to describe the action and hex value of the selectable option',
}),
'euiColorPicker.alphaLabel': i18n.translate('core.euiColorPicker.alphaLabel', {
defaultMessage: 'Alpha channel (opacity) value',
description: 'Label describing color alpha channel',
}),
'euiColorPicker.colorLabel': i18n.translate('core.euiColorPicker.colorLabel', {
defaultMessage: 'Color value',
}),
'euiColorPicker.colorErrorMessage': i18n.translate('core.euiColorPicker.colorErrorMessage', {
defaultMessage: 'Invalid color value',
}),
'euiColorPicker.transparent': i18n.translate('core.euiColorPicker.transparent', {
defaultMessage: 'Transparent',
}),
'euiColorPicker.openLabel': i18n.translate('core.euiColorPicker.openLabel', {
defaultMessage: 'Press the escape key to close the popover',
description: 'Screen reader text to describe how to close the picker',
}),
'euiColorPicker.closeLabel': i18n.translate('core.euiColorPicker.closeLabel', {
defaultMessage: 'Press the down key to open a popover containing color options',
description: 'Screen reader text to describe how to open the picker',
}),
'euiColorStopThumb.removeLabel': i18n.translate('core.euiColorStopThumb.removeLabel', {
defaultMessage: 'Remove this stop',
description: 'Label accompanying a button whose action will remove the color stop',
}),
'euiColorStopThumb.screenReaderAnnouncement': i18n.translate(
'core.euiColorStopThumb.screenReaderAnnouncement',
{
defaultMessage:
'A popup with a color stop edit form opened. Tab forward to cycle through form controls or press escape to close this popup.',
description:
'Message when the color picker popover has opened for an individual color stop thumb.',
}
),
'euiColorStopThumb.buttonAriaLabel': i18n.translate('core.euiColorStopThumb.buttonAriaLabel', {
defaultMessage: 'Press the Enter key to modify this stop. Press Escape to focus the group',
description: 'Screen reader text to describe picker interaction',
}),
'euiColorStopThumb.buttonTitle': i18n.translate('core.euiColorStopThumb.buttonTitle', {
defaultMessage: 'Click to edit, drag to reposition',
description: 'Screen reader text to describe button interaction',
}),
'euiColorStopThumb.stopLabel': i18n.translate('core.euiColorStopThumb.stopLabel', {
defaultMessage: 'Stop value',
}),
'euiColorStopThumb.stopErrorMessage': i18n.translate(
'core.euiColorStopThumb.stopErrorMessage',
{
defaultMessage: 'Value is out of range',
}
),
'euiColorStops.screenReaderAnnouncement': ({ label, readOnly, disabled }: EuiValues) =>
i18n.translate('core.euiColorStops.screenReaderAnnouncement', {
defaultMessage:
'{label}: {readOnly} {disabled} Color stop picker. Each stop consists of a number and corresponding color value. Use the Down and Up arrow keys to select individual stops. Press the Enter key to create a new stop.',
values: { label, readOnly, disabled },
description:
'Screen reader text to describe the composite behavior of the color stops component.',
}),
'euiColumnActions.sort': ({ schemaLabel }: EuiValues) =>
i18n.translate('core.euiColumnActions.sort', {
defaultMessage: 'Sort {schemaLabel}',
values: { schemaLabel },
}),
'euiColumnActions.moveLeft': i18n.translate('core.euiColumnActions.moveLeft', {
defaultMessage: 'Move left',
}),
'euiColumnActions.moveRight': i18n.translate('core.euiColumnActions.moveRight', {
defaultMessage: 'Move right',
}),
'euiColumnSelector.hideAll': i18n.translate('core.euiColumnSelector.hideAll', {
defaultMessage: 'Hide all',
}),
'euiColumnSelector.selectAll': i18n.translate('core.euiColumnSelector.selectAll', {
defaultMessage: 'Show all',
}),
'euiColumnSelector.button': i18n.translate('core.euiColumnSelector.button', {
defaultMessage: 'Columns',
}),
'euiColumnSelector.search': i18n.translate('core.euiColumnSelector.search', {
defaultMessage: 'Search',
}),
'euiColumnSelector.searchcolumns': i18n.translate('core.euiColumnSelector.searchcolumns', {
defaultMessage: 'Search columns',
}),
'euiColumnSelector.buttonActiveSingular': ({ numberOfHiddenFields }: EuiValues) =>
i18n.translate('core.euiColumnSelector.buttonActiveSingular', {
defaultMessage: '{numberOfHiddenFields} column hidden',
values: { numberOfHiddenFields },
}),
'euiColumnSelector.buttonActivePlural': ({ numberOfHiddenFields }: EuiValues) =>
i18n.translate('core.euiColumnSelector.buttonActivePlural', {
defaultMessage: '{numberOfHiddenFields} columns hidden',
values: { numberOfHiddenFields },
}),
'euiColumnSorting.clearAll': i18n.translate('core.euiColumnSorting.clearAll', {
defaultMessage: 'Clear sorting',
}),
'euiColumnSorting.emptySorting': i18n.translate('core.euiColumnSorting.emptySorting', {
defaultMessage: 'Currently no fields are sorted',
}),
'euiColumnSorting.pickFields': i18n.translate('core.euiColumnSorting.pickFields', {
defaultMessage: 'Pick fields to sort by',
}),
'euiColumnSorting.sortFieldAriaLabel': i18n.translate(
'core.euiColumnSorting.sortFieldAriaLabel',
{
defaultMessage: 'Sort by:',
}
),
'euiColumnSorting.button': i18n.translate('core.euiColumnSorting.button', {
defaultMessage: 'Sort fields',
}),
'euiColumnSorting.buttonActive': i18n.translate('core.euiColumnSorting.buttonActive', {
defaultMessage: 'fields sorted',
}),
'euiColumnSortingDraggable.activeSortLabel': i18n.translate(
'core.euiColumnSortingDraggable.activeSortLabel',
{
defaultMessage: 'is sorting this data grid',
}
),
'euiColumnSortingDraggable.defaultSortAsc': i18n.translate(
'core.euiColumnSortingDraggable.defaultSortAsc',
{
defaultMessage: 'A-Z',
description: 'Ascending sort label',
}
),
'euiColumnSortingDraggable.defaultSortDesc': i18n.translate(
'core.euiColumnSortingDraggable.defaultSortDesc',
{
defaultMessage: 'Z-A',
description: 'Descending sort label',
}
),
'euiColumnSortingDraggable.removeSortLabel': i18n.translate(
'core.euiColumnSortingDraggable.removeSortLabel',
{
defaultMessage: 'Remove from data grid sort:',
}
),
'euiColumnSortingDraggable.toggleLegend': i18n.translate(
'core.euiColumnSortingDraggable.toggleLegend',
{
defaultMessage: 'Select sorting method for field:',
}
),
'euiComboBoxOptionsList.allOptionsSelected': i18n.translate(
'core.euiComboBoxOptionsList.allOptionsSelected',
{
defaultMessage: "You've selected all available options",
}
),
'euiComboBoxOptionsList.alreadyAdded': ({ label }: EuiValues) => (
<FormattedMessage
id="core.euiComboBoxOptionsList.alreadyAdded"
defaultMessage="{label} has already been added"
values={{ label }}
/>
),
'euiComboBoxOptionsList.createCustomOption': ({ searchValue }: EuiValues) => (
<FormattedMessage
id="core.euiComboBoxOptionsList.createCustomOption"
defaultMessage="Add {searchValue} as a custom option"
values={{ searchValue }}
/>
),
'euiComboBoxOptionsList.loadingOptions': i18n.translate(
'core.euiComboBoxOptionsList.loadingOptions',
{
defaultMessage: 'Loading options',
description: 'Placeholder message while data is asynchronously loaded',
}
),
'euiComboBoxOptionsList.noAvailableOptions': i18n.translate(
'core.euiComboBoxOptionsList.noAvailableOptions',
{
defaultMessage: "There aren't any options available",
}
),
'euiComboBoxOptionsList.noMatchingOptions': ({ searchValue }: EuiValues) => (
<FormattedMessage
id="core.euiComboBoxOptionsList.noMatchingOptions"
defaultMessage="{searchValue} doesn't match any options"
values={{ searchValue }}
/>
),
'euiComboBoxOptionsList.delimiterMessage': ({ delimiter }: EuiValues) =>
i18n.translate('core.euiComboBoxOptionsList.delimiterMessage', {
defaultMessage: 'Add each item separated by {delimiter}',
values: { delimiter },
description: 'Screen reader text describing adding delimited options',
}),
'euiComboBoxPill.removeSelection': ({ children }: EuiValues) =>
i18n.translate('core.euiComboBoxPill.removeSelection', {
defaultMessage: 'Remove {children} from selection in this group',
values: { children },
description: 'ARIA label, `children` is the human-friendly value of an option',
}),
'euiCommonlyUsedTimeRanges.legend': i18n.translate('core.euiCommonlyUsedTimeRanges.legend', {
defaultMessage: 'Commonly used',
}),
'euiDataGrid.screenReaderNotice': i18n.translate('core.euiDataGrid.screenReaderNotice', {
defaultMessage: 'Cell contains interactive content.',
}),
'euiDataGrid.ariaLabelGridPagination': ({ label }: EuiValues) =>
i18n.translate('core.euiDataGrid.ariaLabelGridPagination', {
defaultMessage: 'Pagination for preceding grid: {label}',
values: { label },
description: 'Screen reader text to describe the pagination controls',
}),
'euiDataGrid.ariaLabelledByGridPagination': i18n.translate(
'core.euiDataGrid.ariaLabelledByGridPagination',
{
defaultMessage: 'Pagination for preceding grid',
description: 'Screen reader text to describe the pagination controls',
}
),
'euiDataGrid.ariaLabel': ({ label, page, pageCount }: EuiValues) =>
i18n.translate('core.euiDataGrid.ariaLabel', {
defaultMessage: '{label}; Page {page} of {pageCount}.',
values: { label, page, pageCount },
description: 'Screen reader text to describe the size of the data grid',
}),
'euiDataGrid.ariaLabelledBy': ({ page, pageCount }: EuiValues) =>
i18n.translate('core.euiDataGrid.ariaLabelledBy', {
defaultMessage: 'Page {page} of {pageCount}.',
values: { page, pageCount },
description: 'Screen reader text to describe the size of the data grid',
}),
'euiDataGrid.fullScreenButton': i18n.translate('core.euiDataGrid.fullScreenButton', {
defaultMessage: 'Full screen',
}),
'euiDataGrid.fullScreenButtonActive': i18n.translate(
'core.euiDataGrid.fullScreenButtonActive',
{
defaultMessage: 'Exit full screen',
}
),
'euiDataGridCell.row': i18n.translate('core.euiDataGridCell.row', {
defaultMessage: 'Row',
}),
'euiDataGridCell.column': i18n.translate('core.euiDataGridCell.column', {
defaultMessage: 'Column',
}),
'euiDataGridCellButtons.expandButtonTitle': i18n.translate(
'core.euiDataGridCellButtons.expandButtonTitle',
{
defaultMessage: 'Click or hit enter to interact with cell content',
}
),
'euiDataGridHeaderCell.headerActions': i18n.translate(
'core.euiDataGridHeaderCell.headerActions',
{
defaultMessage: 'Header actions',
}
),
'euiDataGridSchema.booleanSortTextAsc': i18n.translate(
'core.euiDataGridSchema.booleanSortTextAsc',
{
defaultMessage: 'False-True',
description: 'Ascending boolean label',
}
),
'euiDataGridSchema.booleanSortTextDesc': i18n.translate(
'core.euiDataGridSchema.booleanSortTextDesc',
{
defaultMessage: 'True-False',
description: 'Descending boolean label',
}
),
'euiDataGridSchema.currencySortTextAsc': i18n.translate(
'core.euiDataGridSchema.currencySortTextAsc',
{
defaultMessage: 'Low-High',
description: 'Ascending currency label',
}
),
'euiDataGridSchema.currencySortTextDesc': i18n.translate(
'core.euiDataGridSchema.currencySortTextDesc',
{
defaultMessage: 'High-Low',
description: 'Descending currency label',
}
),
'euiDataGridSchema.dateSortTextAsc': i18n.translate('core.euiDataGridSchema.dateSortTextAsc', {
defaultMessage: 'New-Old',
description: 'Ascending date label',
}),
'euiDataGridSchema.dateSortTextDesc': i18n.translate(
'core.euiDataGridSchema.dateSortTextDesc',
{
defaultMessage: 'Old-New',
description: 'Descending date label',
}
),
'euiDataGridSchema.numberSortTextAsc': i18n.translate(
'core.euiDataGridSchema.numberSortTextAsc',
{
defaultMessage: 'Low-High',
description: 'Ascending number label',
}
),
'euiDataGridSchema.numberSortTextDesc': i18n.translate(
'core.euiDataGridSchema.numberSortTextDesc',
{
defaultMessage: 'High-Low',
description: 'Descending number label',
}
),
'euiDataGridSchema.jsonSortTextAsc': i18n.translate('core.euiDataGridSchema.jsonSortTextAsc', {
defaultMessage: 'Small-Large',
description: 'Ascending size label',
}),
'euiDataGridSchema.jsonSortTextDesc': i18n.translate(
'core.euiDataGridSchema.jsonSortTextDesc',
{
defaultMessage: 'Large-Small',
description: 'Descending size label',
}
),
'euiFieldPassword.showPassword': i18n.translate('core.euiFieldPassword.showPassword', {
defaultMessage:
'Show password as plain text. Note: this will visually expose your password on the screen.',
}),
'euiFieldPassword.maskPassword': i18n.translate('core.euiFieldPassword.maskPassword', {
defaultMessage: 'Mask password',
}),
'euiFilePicker.clearSelectedFiles': i18n.translate('core.euiFilePicker.clearSelectedFiles', {
defaultMessage: 'Clear selected files',
}),
'euiFilePicker.filesSelected': i18n.translate('core.euiFilePicker.filesSelected', {
defaultMessage: 'files selected',
}),
'euiFilterButton.filterBadge': ({ count, hasActiveFilters }: EuiValues) =>
i18n.translate('core.euiFilterButton.filterBadge', {
defaultMessage: '${count} ${filterCountLabel} filters',
values: { count, filterCountLabel: hasActiveFilters ? 'active' : 'available' },
}),
'euiFlyout.closeAriaLabel': i18n.translate('core.euiFlyout.closeAriaLabel', {
defaultMessage: 'Close this dialog',
}),
'euiForm.addressFormErrors': i18n.translate('core.euiForm.addressFormErrors', {
defaultMessage: 'Please address the highlighted errors.',
}),
'euiFormControlLayoutClearButton.label': i18n.translate(
'core.euiFormControlLayoutClearButton.label',
{
defaultMessage: 'Clear input',
description: 'ARIA label on a button that removes any entry in a form field',
}
),
'euiHeaderAlert.dismiss': i18n.translate('core.euiHeaderAlert.dismiss', {
defaultMessage: 'Dismiss',
description: 'ARIA label on a button that dismisses/removes a notification',
}),
'euiHeaderLinks.appNavigation': i18n.translate('core.euiHeaderLinks.appNavigation', {
defaultMessage: 'App menu',
description: 'ARIA label on a `nav` element',
}),
'euiHeaderLinks.openNavigationMenu': i18n.translate('core.euiHeaderLinks.openNavigationMenu', {
defaultMessage: 'Open menu',
}),
'euiHue.label': i18n.translate('core.euiHue.label', {
defaultMessage: 'Select the HSV color mode "hue" value',
}),
'euiImage.closeImage': ({ alt }: EuiValues) =>
i18n.translate('core.euiImage.closeImage', {
defaultMessage: 'Close full screen {alt} image',
values: { alt },
}),
'euiImage.openImage': ({ alt }: EuiValues) =>
i18n.translate('core.euiImage.openImage', {
defaultMessage: 'Open full screen {alt} image',
values: { alt },
}),
'euiLink.external.ariaLabel': i18n.translate('core.euiLink.external.ariaLabel', {
defaultMessage: 'External link',
}),
'euiLink.newTarget.screenReaderOnlyText': i18n.translate(
'core.euiLink.newTarget.screenReaderOnlyText',
{
defaultMessage: '(opens in a new tab or window)',
}
),
'euiMarkdownEditorFooter.closeButton': i18n.translate(
'core.euiMarkdownEditorFooter.closeButton',
{
defaultMessage: 'Close',
}
),
'euiMarkdownEditorFooter.uploadingFiles': i18n.translate(
'core.euiMarkdownEditorFooter.uploadingFiles',
{
defaultMessage: 'Click to upload files',
}
),
'euiMarkdownEditorFooter.openUploadModal': i18n.translate(
'core.euiMarkdownEditorFooter.openUploadModal',
{
defaultMessage: 'Open upload files modal',
}
),
'euiMarkdownEditorFooter.unsupportedFileType': i18n.translate(
'core.euiMarkdownEditorFooter.unsupportedFileType',
{
defaultMessage: 'File type not supported',
}
),
'euiMarkdownEditorFooter.supportedFileTypes': ({ supportedFileTypes }: EuiValues) =>
i18n.translate('core.euiMarkdownEditorFooter.supportedFileTypes', {
defaultMessage: 'Supported files: {supportedFileTypes}',
values: { supportedFileTypes },
}),
'euiMarkdownEditorFooter.showSyntaxErrors': i18n.translate(
'core.euiMarkdownEditorFooter.showSyntaxErrors',
{
defaultMessage: 'Show errors',
}
),
'euiMarkdownEditorFooter.showMarkdownHelp': i18n.translate(
'core.euiMarkdownEditorFooter.showMarkdownHelp',
{
defaultMessage: 'Show markdown help',
}
),
'euiMarkdownEditorFooter.errorsTitle': i18n.translate(
'core.euiMarkdownEditorFooter.errorsTitle',
{
defaultMessage: 'Errors',
}
),
'euiMarkdownEditorFooter.syntaxTitle': i18n.translate(
'core.euiMarkdownEditorFooter.syntaxTitle',
{
defaultMessage: 'Syntax help',
}
),
'euiMarkdownEditorFooter.descriptionPrefix': i18n.translate(
'core.euiMarkdownEditorFooter.descriptionPrefix',
{
defaultMessage: 'This editor uses',
}
),
'euiMarkdownEditorFooter.descriptionSuffix': i18n.translate(
'core.euiMarkdownEditorFooter.descriptionSuffix',
{
defaultMessage:
'You can also utilize these additional syntax plugins to add rich content to your text.',
}
),
'euiMarkdownEditorToolbar.editor': i18n.translate('core.euiMarkdownEditorToolbar.editor', {
defaultMessage: 'Editor',
}),
'euiMarkdownEditorToolbar.previewMarkdown': i18n.translate(
'core.euiMarkdownEditorToolbar.previewMarkdown',
{
defaultMessage: 'Preview',
}
),
'euiModal.closeModal': i18n.translate('core.euiModal.closeModal', {
defaultMessage: 'Closes this modal window',
}),
'euiNotificationEventMessages.accordionButtonText': ({
messagesLength,
eventName,
}: EuiValues) =>
i18n.translate('core.euiNotificationEventMessages.accordionButtonText', {
defaultMessage: '+ {messagesLength} messages for {eventName}',
values: { messagesLength, eventName },
}),
'euiNotificationEventMessages.accordionAriaLabelButtonText': ({ messagesLength }: EuiValues) =>
i18n.translate('core.euiNotificationEventMessages.accordionAriaLabelButtonText', {
defaultMessage: '+ {messagesLength} more',
values: { messagesLength },
}),
'euiNotificationEventMeta.contextMenuButton': ({ eventName }: EuiValues) =>
i18n.translate('core.euiNotificationEventMeta.contextMenuButton', {
defaultMessage: 'Menu for {eventName}',
values: { eventName },
}),
'euiNotificationEventReadButton.markAsReadAria': ({ eventName }: EuiValues) =>
i18n.translate('core.euiNotificationEventReadButton.markAsReadAria', {
defaultMessage: 'Mark {eventName} as read',
values: { eventName },
}),
'euiNotificationEventReadButton.markAsUnreadAria': ({ eventName }: EuiValues) =>
i18n.translate('core.euiNotificationEventReadButton.markAsUnreadAria', {
defaultMessage: 'Mark {eventName} as unread',
values: { eventName },
}),
'euiNotificationEventReadButton.markAsRead': i18n.translate(
'core.euiNotificationEventReadButton.markAsRead',
{
defaultMessage: 'Mark as read',
}
),
'euiNotificationEventReadButton.markAsUnread': i18n.translate(
'core.euiNotificationEventReadButton.markAsUnread',
{
defaultMessage: 'Mark as unread',
}
),
'euiNotificationEventMessages.accordionHideText': i18n.translate(
'core.euiNotificationEventMessages.accordionHideText',
{
defaultMessage: 'hide',
}
),
'euiPagination.nextPage': ({ page }: EuiValues) =>
i18n.translate('core.euiPagination.nextPage', {
defaultMessage: 'Next page, {page}',
values: { page },
}),
'euiPagination.previousPage': ({ page }: EuiValues) =>
i18n.translate('core.euiPagination.previousPage', {
defaultMessage: 'Previous page, {page}',
values: { page },
}),
'euiPagination.disabledPreviousPage': i18n.translate(
'core.euiPagination.disabledPreviousPage',
{
defaultMessage: 'Previous page',
}
),
'euiPagination.disabledNextPage': i18n.translate('core.euiPagination.disabledNextPage', {
defaultMessage: 'Next page',
}),
'euiPagination.firstRangeAriaLabel': ({ lastPage }: EuiValues) =>
i18n.translate('core.euiPagination.firstRangeAriaLabel', {
defaultMessage: 'Skipping pages 2 to {lastPage}',
values: { lastPage },
}),
'euiPagination.lastRangeAriaLabel': ({ firstPage, lastPage }: EuiValues) =>
i18n.translate('core.euiPagination.lastRangeAriaLabel', {
defaultMessage: 'Skipping pages {firstPage} to {lastPage}',
values: { firstPage, lastPage },
}),
'euiPaginationButton.longPageString': ({ page, totalPages }: EuiValues) =>
i18n.translate('core.euiPaginationButton.longPageString', {
defaultMessage: 'Page {page} of {totalPages}',
values: { page, totalPages },
description: 'Text to describe the size of a paginated section',
}),
'euiPaginationButton.shortPageString': ({ page }: EuiValues) =>
i18n.translate('core.euiPaginationButton.shortPageString', {
defaultMessage: 'Page {page}',
values: { page },
description: 'Text to describe the current page of a paginated section',
}),
'euiPinnableListGroup.pinExtraActionLabel': i18n.translate(
'core.euiPinnableListGroup.pinExtraActionLabel',
{
defaultMessage: 'Pin item',
}
),
'euiPinnableListGroup.pinnedExtraActionLabel': i18n.translate(
'core.euiPinnableListGroup.pinnedExtraActionLabel',
{
defaultMessage: 'Unpin item',
}
),
'euiPopover.screenReaderAnnouncement': i18n.translate(
'core.euiPopover.screenReaderAnnouncement',
{
defaultMessage: 'You are in a dialog. To close this dialog, hit escape.',
}
),
'euiProgress.valueText': ({ value }: EuiValues) =>
i18n.translate('core.euiProgress.valueText', {
defaultMessage: '{value}%',
values: { value },
}),
'euiQuickSelect.applyButton': i18n.translate('core.euiQuickSelect.applyButton', {
defaultMessage: 'Apply',
}),
'euiQuickSelect.fullDescription': ({ timeTense, timeValue, timeUnit }: EuiValues) =>
i18n.translate('core.euiQuickSelect.fullDescription', {
defaultMessage: 'Currently set to {timeTense} {timeValue} {timeUnit}.',
values: { timeTense, timeValue, timeUnit },
}),
'euiQuickSelect.legendText': i18n.translate('core.euiQuickSelect.legendText', {
defaultMessage: 'Quick select a time range',
}),
'euiQuickSelect.nextLabel': i18n.translate('core.euiQuickSelect.nextLabel', {
defaultMessage: 'Next time window',
}),
'euiQuickSelect.previousLabel': i18n.translate('core.euiQuickSelect.previousLabel', {
defaultMessage: 'Previous time window',
}),
'euiQuickSelect.quickSelectTitle': i18n.translate('core.euiQuickSelect.quickSelectTitle', {
defaultMessage: 'Quick select',
}),
'euiQuickSelect.tenseLabel': i18n.translate('core.euiQuickSelect.tenseLabel', {
defaultMessage: 'Time tense',
}),
'euiQuickSelect.unitLabel': i18n.translate('core.euiQuickSelect.unitLabel', {
defaultMessage: 'Time unit',
}),
'euiQuickSelect.valueLabel': i18n.translate('core.euiQuickSelect.valueLabel', {
defaultMessage: 'Time value',
}),
'euiRecentlyUsed.legend': i18n.translate('core.euiRecentlyUsed.legend', {
defaultMessage: 'Recently used date ranges',
}),
'euiRefreshInterval.fullDescription': ({ optionValue, optionText }: EuiValues) =>
i18n.translate('core.euiRefreshInterval.fullDescription', {
defaultMessage: 'Refresh interval currently set to {optionValue} {optionText}.',
values: { optionValue, optionText },
}),
'euiRefreshInterval.legend': i18n.translate('core.euiRefreshInterval.legend', {
defaultMessage: 'Refresh every',
}),
'euiRefreshInterval.start': i18n.translate('core.euiRefreshInterval.start', {
defaultMessage: 'Start',
}),
'euiRefreshInterval.stop': i18n.translate('core.euiRefreshInterval.stop', {
defaultMessage: 'Stop',
}),
'euiRelativeTab.fullDescription': ({ unit }: EuiValues) =>
i18n.translate('core.euiRelativeTab.fullDescription', {
defaultMessage: 'The unit is changeable. Currently set to {unit}.',
values: { unit },
}),
'euiRelativeTab.relativeDate': ({ position }: EuiValues) =>
i18n.translate('core.euiRelativeTab.relativeDate', {
defaultMessage: '{position} date',
values: { position },
}),
'euiRelativeTab.roundingLabel': ({ unit }: EuiValues) =>
i18n.translate('core.euiRelativeTab.roundingLabel', {
defaultMessage: 'Round to the {unit}',
values: { unit },
}),
'euiRelativeTab.unitInputLabel': i18n.translate('core.euiRelativeTab.unitInputLabel', {
defaultMessage: 'Relative time span',
}),
'euiRelativeTab.numberInputError': i18n.translate('core.euiRelativeTab.numberInputError', {
defaultMessage: 'Must be >= 0',
}),
'euiRelativeTab.numberInputLabel': i18n.translate('core.euiRelativeTab.numberInputLabel', {
defaultMessage: 'Time span amount',
}),
'euiResizableButton.horizontalResizerAriaLabel': i18n.translate(
'core.euiResizableButton.horizontalResizerAriaLabel',
{
defaultMessage: 'Press left or right to adjust panels size',
}
),
'euiResizableButton.verticalResizerAriaLabel': i18n.translate(
'core.euiResizableButton.verticalResizerAriaLabel',
{
defaultMessage: 'Press up or down to adjust panels size',
}
),
'euiResizablePanel.toggleButtonAriaLabel': i18n.translate(
'core.euiResizablePanel.toggleButtonAriaLabel',
{
defaultMessage: 'Press to toggle this panel',
}
),
'euiSaturation.roleDescription': i18n.translate('core.euiSaturation.roleDescription', {
defaultMessage: 'HSV color mode saturation and value selection',
}),
'euiSaturation.screenReaderAnnouncement': i18n.translate(
'core.euiSaturation.screenReaderAnnouncement',
{
defaultMessage:
'Use the arrow keys to navigate the square color gradient. The coordinates resulting from each key press will be used to calculate HSV color mode "saturation" and "value" numbers, in the range of 0 to 1. Left and right decrease and increase (respectively) the "saturation" value. Up and down decrease and increase (respectively) the "value" value.',
}
),
'euiSelectable.loadingOptions': i18n.translate('core.euiSelectable.loadingOptions', {
defaultMessage: 'Loading options',
description: 'Placeholder message while data is asynchronously loaded',
}),
'euiSelectable.noAvailableOptions': i18n.translate('core.euiSelectable.noAvailableOptions', {
defaultMessage: "There aren't any options available",
}),
'euiSelectable.noMatchingOptions': ({ searchValue }: EuiValues) => (
<FormattedMessage
id="core.euiSelectable.noMatchingOptions"
defaultMessage="{searchValue} doesn't match any options"
values={{ searchValue }}
/>
),
'euiSelectable.placeholderName': i18n.translate('core.euiSelectable.placeholderName', {
defaultMessage: 'Filter options',
}),
'euiSelectableListItem.includedOption': i18n.translate(
'core.euiSelectableListItem.includedOption',
{
defaultMessage: 'Included option.',
}
),
'euiSelectableListItem.includedOptionInstructions': i18n.translate(
'core.euiSelectableListItem.includedOptionInstructions',
{
defaultMessage: 'To exclude this option, press enter.',
}
),
'euiSelectableListItem.excludedOption': i18n.translate(
'core.euiSelectableListItem.excludedOption',
{
defaultMessage: 'Excluded option.',
}
),
'euiSelectableListItem.excludedOptionInstructions': i18n.translate(
'core.euiSelectableListItem.excludedOptionInstructions',
{
defaultMessage: 'To deselect this option, press enter',
}
),
'euiSelectableTemplateSitewide.loadingResults': i18n.translate(
'core.euiSelectableTemplateSitewide.loadingResults',
{
defaultMessage: 'Loading results',
}
),
'euiSelectableTemplateSitewide.noResults': i18n.translate(
'core.euiSelectableTemplateSitewide.noResults',
{
defaultMessage: 'No results available',
}
),
'euiSelectableTemplateSitewide.onFocusBadgeGoTo': i18n.translate(
'core.euiSelectableTemplateSitewide.onFocusBadgeGoTo',
{
defaultMessage: 'Go to',
}
),
'euiSelectableTemplateSitewide.searchPlaceholder': i18n.translate(
'core.euiSelectableTemplateSitewide.searchPlaceholder',
{
defaultMessage: 'Search for anything...',
}
),
'euiStat.loadingText': i18n.translate('core.euiStat.loadingText', {
defaultMessage: 'Statistic is loading',
}),
'euiStepStrings.step': ({ number, title }: EuiValues) =>
i18n.translate('core.euiStepStrings.step', {
defaultMessage: 'Step {number}: {title}',
values: { number, title },
}),
'euiStepStrings.simpleStep': ({ number }: EuiValues) =>
i18n.translate('core.euiStepStrings.simpleStep', {
defaultMessage: 'Step {number}',
values: { number },
}),
'euiStepStrings.complete': ({ number, title }: EuiValues) =>
i18n.translate('core.euiStepStrings.complete', {
defaultMessage: 'Step {number}: {title} is complete',
values: { number, title },
}),
'euiStepStrings.simpleComplete': ({ number }: EuiValues) =>
i18n.translate('core.euiStepStrings.simpleComplete', {
defaultMessage: 'Step {number} is complete',
values: { number },
}),
'euiStepStrings.warning': ({ number, title }: EuiValues) =>
i18n.translate('core.euiStepStrings.warning', {
defaultMessage: 'Step {number}: {title} has warnings',
values: { number, title },
}),
'euiStepStrings.simpleWarning': ({ number }: EuiValues) =>
i18n.translate('core.euiStepStrings.simpleWarning', {
defaultMessage: 'Step {number} has warnings',
values: { number },
}),
'euiStepStrings.errors': ({ number, title }: EuiValues) =>
i18n.translate('core.euiStepStrings.errors', {
defaultMessage: 'Step {number}: {title} has errors',
values: { number, title },
}),
'euiStepStrings.simpleErrors': ({ number }: EuiValues) =>
i18n.translate('core.euiStepStrings.simpleErrors', {
defaultMessage: 'Step {number} has errors',
values: { number },
}),
'euiStepStrings.incomplete': ({ number, title }: EuiValues) =>
i18n.translate('core.euiStepStrings.incomplete', {
defaultMessage: 'Step {number}: {title} is incomplete',
values: { number, title },
}),
'euiStepStrings.simpleIncomplete': ({ number }: EuiValues) =>
i18n.translate('core.euiStepStrings.simpleIncomplete', {
defaultMessage: 'Step {number} is incomplete',
values: { number },
}),
'euiStepStrings.disabled': ({ number, title }: EuiValues) =>
i18n.translate('core.euiStepStrings.disabled', {
defaultMessage: 'Step {number}: {title} is disabled',
values: { number, title },
}),
'euiStepStrings.simpleDisabled': ({ number }: EuiValues) =>
i18n.translate('core.euiStepStrings.simpleDisabled', {
defaultMessage: 'Step {number} is disabled',
values: { number },
}),
'euiStepStrings.loading': ({ number, title }: EuiValues) =>
i18n.translate('core.euiStepStrings.loading', {
defaultMessage: 'Step {number}: {title} is loading',
values: { number, title },
}),
'euiStepStrings.simpleLoading': ({ number }: EuiValues) =>
i18n.translate('core.euiStepStrings.simpleLoading', {
defaultMessage: 'Step {number} is loading',
values: { number },
}),
'euiStyleSelector.buttonText': i18n.translate('core.euiStyleSelector.buttonText', {
defaultMessage: 'Density',
}),
'euiStyleSelector.buttonLegend': i18n.translate('core.euiStyleSelector.buttonLegend', {
defaultMessage: 'Select the display density for the data grid',
}),
'euiStyleSelector.labelExpanded': i18n.translate('core.euiStyleSelector.labelExpanded', {
defaultMessage: 'Expanded density',
}),
'euiStyleSelector.labelNormal': i18n.translate('core.euiStyleSelector.labelNormal', {
defaultMessage: 'Normal density',
}),
'euiStyleSelector.labelCompact': i18n.translate('core.euiStyleSelector.labelCompact', {
defaultMessage: 'Compact density',
}),
'euiSuperDatePicker.showDatesButtonLabel': i18n.translate(
'core.euiSuperDatePicker.showDatesButtonLabel',
{
defaultMessage: 'Show dates',
description: 'Displayed in a button that shows date picker',
}
),
'euiSuperSelect.screenReaderAnnouncement': ({ optionsCount }: EuiValues) =>