@pega/cosmos-react-core 2.0.0-dev.14.3 → 2.0.0-dev.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/AppShell/AppShell.styles.js +1 -1
- package/lib/components/AppShell/AppShell.styles.js.map +1 -1
- package/lib/components/AppShell/Drawer.js +1 -1
- package/lib/components/AppShell/Drawer.js.map +1 -1
- package/lib/components/Badges/Status.d.ts +2 -2
- package/lib/components/Badges/Status.d.ts.map +1 -1
- package/lib/components/Badges/Status.js.map +1 -1
- package/lib/components/Configuration/Configuration.js +1 -1
- package/lib/components/Configuration/Configuration.js.map +1 -1
- package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
- package/lib/components/Currency/CurrencyDisplay.js +9 -1
- package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
- package/lib/components/DateTime/DateTimeDisplay.js +1 -1
- package/lib/components/DateTime/DateTimeDisplay.js.map +1 -1
- package/lib/components/FieldGroup/FieldGroup.js +1 -1
- package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
- package/lib/components/File/FileInput.d.ts.map +1 -1
- package/lib/components/File/FileInput.js +3 -1
- package/lib/components/File/FileInput.js.map +1 -1
- package/lib/components/File/FileUploadItem.js +1 -1
- package/lib/components/File/FileUploadItem.js.map +1 -1
- package/lib/components/List/List.d.ts.map +1 -1
- package/lib/components/List/List.js +2 -2
- package/lib/components/List/List.js.map +1 -1
- package/lib/components/Location/LocationInput.js +1 -1
- package/lib/components/Location/LocationInput.js.map +1 -1
- package/lib/components/Menu/MenuItem.js +5 -5
- package/lib/components/Menu/MenuItem.js.map +1 -1
- package/lib/components/Menu/MenuListHeader.js +1 -1
- package/lib/components/Menu/MenuListHeader.js.map +1 -1
- package/lib/components/MetaList/MetaList.d.ts +11 -2
- package/lib/components/MetaList/MetaList.d.ts.map +1 -1
- package/lib/components/MetaList/MetaList.js +32 -18
- package/lib/components/MetaList/MetaList.js.map +1 -1
- package/lib/components/MultiStep/MultiStep.d.ts.map +1 -1
- package/lib/components/MultiStep/MultiStep.js +3 -2
- package/lib/components/MultiStep/MultiStep.js.map +1 -1
- package/lib/components/Number/NumberInput.js +2 -2
- package/lib/components/Number/NumberInput.js.map +1 -1
- package/lib/components/PageTemplates/DashboardPage.d.ts +1 -1
- package/lib/components/PageTemplates/DashboardPage.d.ts.map +1 -1
- package/lib/components/PageTemplates/DashboardPage.js +9 -7
- package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
- package/lib/components/PageTemplates/PageTemplates.d.ts +15 -8
- package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
- package/lib/components/PageTemplates/PageTemplates.js +81 -61
- package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
- package/lib/components/PageTemplates/index.d.ts +2 -0
- package/lib/components/PageTemplates/index.d.ts.map +1 -1
- package/lib/components/PageTemplates/index.js.map +1 -1
- package/lib/components/Pagination/Pagination.js +1 -1
- package/lib/components/Pagination/Pagination.js.map +1 -1
- package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
- package/lib/components/Phone/PhoneInput.js +5 -5
- package/lib/components/Phone/PhoneInput.js.map +1 -1
- package/lib/components/SearchInput/SearchInput.d.ts +2 -2
- package/lib/components/SearchInput/SearchInput.js.map +1 -1
- package/lib/components/SummaryList/SummaryList.js +1 -1
- package/lib/components/SummaryList/SummaryList.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +1 -0
- package/lib/components/Tabs/Tabs.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.js +4 -5
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/TextArea/TextArea.js +1 -1
- package/lib/components/TextArea/TextArea.js.map +1 -1
- package/lib/components/Tree/StandardTree.js +1 -1
- package/lib/components/Tree/StandardTree.js.map +1 -1
- package/lib/hooks/useI18n.d.ts +218 -55
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/hooks/useI18n.js +2 -2
- package/lib/hooks/useI18n.js.map +1 -1
- package/lib/i18n/default.json +234 -71
- package/lib/i18n/i18n.d.ts +436 -110
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/i18n/translate.d.ts +29 -4
- package/lib/i18n/translate.d.ts.map +1 -1
- package/lib/i18n/translate.js +21 -8
- package/lib/i18n/translate.js.map +1 -1
- package/package.json +1 -1
package/lib/hooks/useI18n.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
18
18
|
article_list_label_a11y: string;
|
|
19
19
|
article_list_filter_label_a11y: string;
|
|
20
20
|
article_list_header_submit_label: string;
|
|
21
|
+
additional_info: string;
|
|
21
22
|
banner_dismiss_button_label_a11y: string;
|
|
22
23
|
follow: string;
|
|
23
24
|
unfollow: string;
|
|
@@ -53,10 +54,17 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
53
54
|
condition_builder_compare_with_time_value: string;
|
|
54
55
|
condition_builder_invalid_time_period: string;
|
|
55
56
|
condition_builder_invalid_value: string;
|
|
56
|
-
condition_builder_select_placeholder: string;
|
|
57
|
-
condition_builder_day_number_of_month: string;
|
|
58
57
|
condition_builder_date_function_year: string;
|
|
59
58
|
condition_builder_date_function_quarter: string;
|
|
59
|
+
condition_builder_select_placeholder: string;
|
|
60
|
+
condition_builder_day_number_of_month: {
|
|
61
|
+
zero: string;
|
|
62
|
+
one: string;
|
|
63
|
+
two: string;
|
|
64
|
+
few: string;
|
|
65
|
+
many: string;
|
|
66
|
+
other: string;
|
|
67
|
+
};
|
|
60
68
|
condition_builder_date_function_month: string;
|
|
61
69
|
condition_builder_date_function_week: string;
|
|
62
70
|
condition_builder_date_function_day: string;
|
|
@@ -79,48 +87,174 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
79
87
|
condition_builder_current_month: string;
|
|
80
88
|
condition_builder_current_quarter: string;
|
|
81
89
|
condition_builder_current_year: string;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
condition_builder_last_X_hours:
|
|
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
|
-
|
|
90
|
+
condition_builder_last_X_minutes: {
|
|
91
|
+
zero: string;
|
|
92
|
+
one: string;
|
|
93
|
+
two: string;
|
|
94
|
+
few: string;
|
|
95
|
+
many: string;
|
|
96
|
+
other: string;
|
|
97
|
+
};
|
|
98
|
+
condition_builder_last_X_hours: {
|
|
99
|
+
zero: string;
|
|
100
|
+
one: string;
|
|
101
|
+
two: string;
|
|
102
|
+
few: string;
|
|
103
|
+
many: string;
|
|
104
|
+
other: string;
|
|
105
|
+
};
|
|
106
|
+
condition_builder_last_X_days: {
|
|
107
|
+
zero: string;
|
|
108
|
+
one: string;
|
|
109
|
+
two: string;
|
|
110
|
+
few: string;
|
|
111
|
+
many: string;
|
|
112
|
+
other: string;
|
|
113
|
+
};
|
|
114
|
+
condition_builder_last_X_weeks: {
|
|
115
|
+
zero: string;
|
|
116
|
+
one: string;
|
|
117
|
+
two: string;
|
|
118
|
+
few: string;
|
|
119
|
+
many: string;
|
|
120
|
+
other: string;
|
|
121
|
+
};
|
|
122
|
+
condition_builder_last_X_months: {
|
|
123
|
+
zero: string;
|
|
124
|
+
one: string;
|
|
125
|
+
two: string;
|
|
126
|
+
few: string;
|
|
127
|
+
many: string;
|
|
128
|
+
other: string;
|
|
129
|
+
};
|
|
130
|
+
condition_builder_last_X_quarters: {
|
|
131
|
+
zero: string;
|
|
132
|
+
one: string;
|
|
133
|
+
two: string;
|
|
134
|
+
few: string;
|
|
135
|
+
many: string;
|
|
136
|
+
other: string;
|
|
137
|
+
};
|
|
138
|
+
condition_builder_last_X_years: {
|
|
139
|
+
zero: string;
|
|
140
|
+
one: string;
|
|
141
|
+
two: string;
|
|
142
|
+
few: string;
|
|
143
|
+
many: string;
|
|
144
|
+
other: string;
|
|
145
|
+
};
|
|
146
|
+
condition_builder_next_X_minutes: {
|
|
147
|
+
zero: string;
|
|
148
|
+
one: string;
|
|
149
|
+
two: string;
|
|
150
|
+
few: string;
|
|
151
|
+
many: string;
|
|
152
|
+
other: string;
|
|
153
|
+
};
|
|
154
|
+
condition_builder_next_X_hours: {
|
|
155
|
+
zero: string;
|
|
156
|
+
one: string;
|
|
157
|
+
two: string;
|
|
158
|
+
few: string;
|
|
159
|
+
many: string;
|
|
160
|
+
other: string;
|
|
161
|
+
};
|
|
162
|
+
condition_builder_next_X_days: {
|
|
163
|
+
zero: string;
|
|
164
|
+
one: string;
|
|
165
|
+
two: string;
|
|
166
|
+
few: string;
|
|
167
|
+
many: string;
|
|
168
|
+
other: string;
|
|
169
|
+
};
|
|
170
|
+
condition_builder_next_X_weeks: {
|
|
171
|
+
zero: string;
|
|
172
|
+
one: string;
|
|
173
|
+
two: string;
|
|
174
|
+
few: string;
|
|
175
|
+
many: string;
|
|
176
|
+
other: string;
|
|
177
|
+
};
|
|
178
|
+
condition_builder_next_X_months: {
|
|
179
|
+
zero: string;
|
|
180
|
+
one: string;
|
|
181
|
+
two: string;
|
|
182
|
+
few: string;
|
|
183
|
+
many: string;
|
|
184
|
+
other: string;
|
|
185
|
+
};
|
|
186
|
+
condition_builder_next_X_quarters: {
|
|
187
|
+
zero: string;
|
|
188
|
+
one: string;
|
|
189
|
+
two: string;
|
|
190
|
+
few: string;
|
|
191
|
+
many: string;
|
|
192
|
+
other: string;
|
|
193
|
+
};
|
|
194
|
+
condition_builder_next_X_years: {
|
|
195
|
+
zero: string;
|
|
196
|
+
one: string;
|
|
197
|
+
two: string;
|
|
198
|
+
few: string;
|
|
199
|
+
many: string;
|
|
200
|
+
other: string;
|
|
201
|
+
};
|
|
202
|
+
condition_builder_previous_X_minutes: {
|
|
203
|
+
zero: string;
|
|
204
|
+
one: string;
|
|
205
|
+
two: string;
|
|
206
|
+
few: string;
|
|
207
|
+
many: string;
|
|
208
|
+
other: string;
|
|
209
|
+
};
|
|
210
|
+
condition_builder_previous_X_hours: {
|
|
211
|
+
zero: string;
|
|
212
|
+
one: string;
|
|
213
|
+
two: string;
|
|
214
|
+
few: string;
|
|
215
|
+
many: string;
|
|
216
|
+
other: string;
|
|
217
|
+
};
|
|
218
|
+
condition_builder_previous_X_days: {
|
|
219
|
+
zero: string;
|
|
220
|
+
one: string;
|
|
221
|
+
two: string;
|
|
222
|
+
few: string;
|
|
223
|
+
many: string;
|
|
224
|
+
other: string;
|
|
225
|
+
};
|
|
226
|
+
condition_builder_previous_X_weeks: {
|
|
227
|
+
zero: string;
|
|
228
|
+
one: string;
|
|
229
|
+
two: string;
|
|
230
|
+
few: string;
|
|
231
|
+
many: string;
|
|
232
|
+
other: string;
|
|
233
|
+
};
|
|
234
|
+
condition_builder_previous_X_months: {
|
|
235
|
+
zero: string;
|
|
236
|
+
one: string;
|
|
237
|
+
two: string;
|
|
238
|
+
few: string;
|
|
239
|
+
many: string;
|
|
240
|
+
other: string;
|
|
241
|
+
};
|
|
242
|
+
condition_builder_previous_X_quarters: {
|
|
243
|
+
zero: string;
|
|
244
|
+
one: string;
|
|
245
|
+
two: string;
|
|
246
|
+
few: string;
|
|
247
|
+
many: string;
|
|
248
|
+
other: string;
|
|
249
|
+
};
|
|
250
|
+
condition_builder_previous_X_years: {
|
|
251
|
+
zero: string;
|
|
252
|
+
one: string;
|
|
253
|
+
two: string;
|
|
254
|
+
few: string;
|
|
255
|
+
many: string;
|
|
256
|
+
other: string;
|
|
257
|
+
};
|
|
124
258
|
condition_builder_time_period_label: string;
|
|
125
259
|
condition_builder_time_period_last: string;
|
|
126
260
|
condition_builder_time_period_current: string;
|
|
@@ -202,6 +336,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
202
336
|
delete_noun: string;
|
|
203
337
|
close: string;
|
|
204
338
|
close_noun: string;
|
|
339
|
+
done: string;
|
|
205
340
|
activate: string;
|
|
206
341
|
uploading: string;
|
|
207
342
|
loading: string;
|
|
@@ -220,9 +355,9 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
220
355
|
noun_deselected: string;
|
|
221
356
|
utilities_summary: string;
|
|
222
357
|
utilities_panel: string;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
358
|
+
email_add_attachment: string;
|
|
359
|
+
email_disable_attachment: string;
|
|
360
|
+
email_remove_attachment: string;
|
|
226
361
|
add_emoji: string;
|
|
227
362
|
show_more: string;
|
|
228
363
|
show_less: string;
|
|
@@ -232,8 +367,14 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
232
367
|
filters: string;
|
|
233
368
|
attachment: string;
|
|
234
369
|
attach: string;
|
|
235
|
-
count_results:
|
|
236
|
-
|
|
370
|
+
count_results: {
|
|
371
|
+
zero: string;
|
|
372
|
+
one: string;
|
|
373
|
+
two: string;
|
|
374
|
+
few: string;
|
|
375
|
+
many: string;
|
|
376
|
+
other: string;
|
|
377
|
+
};
|
|
237
378
|
empty_search: string;
|
|
238
379
|
new_messages: string;
|
|
239
380
|
earlier_transcripts: string;
|
|
@@ -257,7 +398,14 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
257
398
|
email: string;
|
|
258
399
|
email_message: string;
|
|
259
400
|
email_filters: string;
|
|
260
|
-
|
|
401
|
+
new_emails_count: {
|
|
402
|
+
zero: string;
|
|
403
|
+
one: string;
|
|
404
|
+
two: string;
|
|
405
|
+
few: string;
|
|
406
|
+
many: string;
|
|
407
|
+
other: string;
|
|
408
|
+
};
|
|
261
409
|
unread_email_count: string;
|
|
262
410
|
priority: string;
|
|
263
411
|
inbox: string;
|
|
@@ -266,7 +414,6 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
266
414
|
other_responses: string;
|
|
267
415
|
categories: string;
|
|
268
416
|
attachments: string;
|
|
269
|
-
no_records_found: string;
|
|
270
417
|
scroll_to_latest_message: string;
|
|
271
418
|
scroll_to_unread_messages: string;
|
|
272
419
|
suggested_replies_current_of_total: string;
|
|
@@ -319,7 +466,14 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
319
466
|
dismiss_label_a11y: string;
|
|
320
467
|
task_manager_launch_task: string;
|
|
321
468
|
task_manager_search_results_empty_text: string;
|
|
322
|
-
task_manager_picker_add_label:
|
|
469
|
+
task_manager_picker_add_label: {
|
|
470
|
+
zero: string;
|
|
471
|
+
one: string;
|
|
472
|
+
two: string;
|
|
473
|
+
few: string;
|
|
474
|
+
many: string;
|
|
475
|
+
other: string;
|
|
476
|
+
};
|
|
323
477
|
task_manager_delete_task: string;
|
|
324
478
|
search_tasks: string;
|
|
325
479
|
feed_new_post: string;
|
|
@@ -330,7 +484,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
330
484
|
feed_private_post: string;
|
|
331
485
|
feed_public_post: string;
|
|
332
486
|
feed_recipients: string;
|
|
333
|
-
|
|
487
|
+
feed_more_count: string;
|
|
334
488
|
sentiment_positive: string;
|
|
335
489
|
sentiment_negative: string;
|
|
336
490
|
sentiment_neutral: string;
|
|
@@ -383,8 +537,14 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
383
537
|
dial_pad_keyboard: string;
|
|
384
538
|
dial_pad_phone_number_input_label: string;
|
|
385
539
|
dial_pad_call_button_label: string;
|
|
386
|
-
|
|
387
|
-
|
|
540
|
+
stakeholders: {
|
|
541
|
+
zero: string;
|
|
542
|
+
one: string;
|
|
543
|
+
two: string;
|
|
544
|
+
few: string;
|
|
545
|
+
many: string;
|
|
546
|
+
other: string;
|
|
547
|
+
};
|
|
388
548
|
add_noun: string;
|
|
389
549
|
remove: string;
|
|
390
550
|
remove_noun: string;
|
|
@@ -392,6 +552,9 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
392
552
|
parallel: string;
|
|
393
553
|
stage: string;
|
|
394
554
|
alternateStage: string;
|
|
555
|
+
confirmation_details: string;
|
|
556
|
+
confirmation_whats_next: string;
|
|
557
|
+
confirmation_open_tasks: string;
|
|
395
558
|
}>>;
|
|
396
559
|
export default useI18n;
|
|
397
560
|
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/lib/hooks/useI18n.js
CHANGED
|
@@ -5,8 +5,8 @@ import useConfiguration from './useConfiguration';
|
|
|
5
5
|
* @returns translator:: The translator function that provides translations for a given key in the translation JSON provided to the Configuration component.
|
|
6
6
|
*/
|
|
7
7
|
const useI18n = () => {
|
|
8
|
-
const { translations } = useConfiguration();
|
|
9
|
-
return translatorFor(translations);
|
|
8
|
+
const { translations, locale } = useConfiguration();
|
|
9
|
+
return translatorFor(translations, locale);
|
|
10
10
|
};
|
|
11
11
|
export default useI18n;
|
|
12
12
|
//# sourceMappingURL=useI18n.js.map
|
package/lib/hooks/useI18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.js","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD;;;GAGG;AACH,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,MAAM,EAAE,YAAY,EAAE,GAAG,gBAAgB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"useI18n.js","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD;;;GAGG;AACH,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACpD,OAAO,aAAa,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["import translatorFor from '../i18n/translate';\n\nimport useConfiguration from './useConfiguration';\n\n/**\n * @example const translator = useI18n();\n * @returns translator:: The translator function that provides translations for a given key in the translation JSON provided to the Configuration component.\n */\nconst useI18n = () => {\n const { translations, locale } = useConfiguration();\n return translatorFor(translations, locale);\n};\n\nexport default useI18n;\n"]}
|