-
Notifications
You must be signed in to change notification settings - Fork 8k
/
translations.ts
155 lines (138 loc) · 4.73 KB
/
translations.ts
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
/*
* 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 { i18n } from '@kbn/i18n';
export const EMPTY_VIEWER_STATE_EMPTY_TITLE = i18n.translate(
'exceptionList-components.empty.viewer.state.empty.title',
{
defaultMessage: 'Add exceptions to this list',
}
);
export const EMPTY_VIEWER_STATE_EMPTY_BODY = i18n.translate(
'exceptionList-components.empty.viewer.state.empty.body',
{
defaultMessage: 'There is no exception in your list. Create your first exception.',
}
);
export const EMPTY_VIEWER_STATE_EMPTY_SEARCH_TITLE = i18n.translate(
'exceptionList-components.empty.viewer.state.empty_search.search.title',
{
defaultMessage: 'No results match your search criteria',
}
);
export const EMPTY_VIEWER_STATE_EMPTY_SEARCH_BODY = i18n.translate(
'exceptionList-components.empty.viewer.state.empty_search.body',
{
defaultMessage: 'Try modifying your search',
}
);
export const EMPTY_VIEWER_STATE_EMPTY_VIEWER_BUTTON = (exceptionType: string) =>
i18n.translate('exceptionList-components.empty.viewer.state.empty.viewer_button', {
values: { exceptionType },
defaultMessage: 'Create {exceptionType} exception',
});
export const EMPTY_VIEWER_STATE_ERROR_TITLE = i18n.translate(
'exceptionList-components.empty.viewer.state.error_title',
{
defaultMessage: 'Unable to load exception items',
}
);
export const EMPTY_VIEWER_STATE_ERROR_BODY = i18n.translate(
'exceptionList-components.empty.viewer.state.error_body',
{
defaultMessage:
'There was an error loading the exception items. Contact your administrator for help.',
}
);
export const EXCEPTION_LIST_HEADER_EXPORT_ACTION = i18n.translate(
'exceptionList-components.exception_list_header_export_action',
{
defaultMessage: 'Export exception list',
}
);
export const EXCEPTION_LIST_HEADER_DELETE_ACTION = i18n.translate(
'exceptionList-components.exception_list_header_delete_action',
{
defaultMessage: 'Delete exception list',
}
);
export const EXCEPTION_LIST_HEADER_DUPLICATE_ACTION = i18n.translate(
'exceptionList-components.exception_list_header_duplicate_action',
{
defaultMessage: 'Duplicate exception list',
}
);
export const EXCEPTION_LIST_HEADER_LINK_RULES_BUTTON = i18n.translate(
'exceptionList-components.exception_list_header_link_rules_button',
{
defaultMessage: 'Link rules',
}
);
export const EXCEPTION_LIST_HEADER_LINKED_RULES = (noOfRules: number) =>
i18n.translate('exceptionList-components.exception_list_header_linked_rules', {
values: { noOfRules },
defaultMessage: 'Linked to {noOfRules} rules',
});
export const EXCEPTION_LIST_HEADER_BREADCRUMB = i18n.translate(
'exceptionList-components.exception_list_header_breadcrumb',
{
defaultMessage: 'Shared Exception Lists',
}
);
export const EXCEPTION_LIST_HEADER_LIST_ID = i18n.translate(
'exceptionList-components.exception_list_header_list_id',
{
defaultMessage: 'List ID',
}
);
export const EXCEPTION_LIST_HEADER_NAME = i18n.translate(
'exceptionList-components.exception_list_header_name',
{
defaultMessage: 'Add a name',
}
);
export const EXCEPTION_LIST_HEADER_DESCRIPTION = i18n.translate(
'exceptionList-components.exception_list_header_description',
{
defaultMessage: 'Add a description',
}
);
export const EXCEPTION_LIST_HEADER_EDIT_MODAL_TITLE = (listName: string) =>
i18n.translate('exceptionList-components.exception_list_header_edit_modal_name', {
defaultMessage: 'Edit {listName}',
values: { listName },
});
export const EXCEPTION_LIST_HEADER_EDIT_MODAL_SAVE_BUTTON = i18n.translate(
'exceptionList-components.exception_list_header_edit_modal_save_button',
{
defaultMessage: 'Save',
}
);
export const EXCEPTION_LIST_HEADER_EDIT_MODAL_CANCEL_BUTTON = i18n.translate(
'exceptionList-components.exception_list_header_edit_modal_cancel_button',
{
defaultMessage: 'Cancel',
}
);
export const EXCEPTION_LIST_HEADER_NAME_TEXTBOX = i18n.translate(
'exceptionList-components.exception_list_header_Name_textbox',
{
defaultMessage: 'Name',
}
);
export const EXCEPTION_LIST_HEADER_DESCRIPTION_TEXTBOX = i18n.translate(
'exceptionList-components.exception_list_header_description_textbox',
{
defaultMessage: 'Description (optional)',
}
);
export const LIST_NAME_REQUIRED_ERROR = i18n.translate(
'exceptionList-components.exception_list_header_description_textboxexceptionList-components.exception_list_header_name_required_eror',
{
defaultMessage: 'List name cannot be empty',
}
);