@zohodesk/i18n 1.0.0-beta.23 → 1.0.0-beta.24

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.
Files changed (44) hide show
  1. package/README.md +97 -92
  2. package/es/components/__tests__/__snapshots__/DateTimeDiffFormat.spec.js.snap +258 -258
  3. package/es/components/__tests__/__snapshots__/FormatText.spec.js.snap +17 -17
  4. package/es/components/__tests__/__snapshots__/HOCI18N.spec.js.snap +15 -15
  5. package/es/components/__tests__/__snapshots__/I18N.spec.js.snap +17 -17
  6. package/es/components/__tests__/__snapshots__/I18NProvider.spec.js.snap +13 -13
  7. package/es/components/__tests__/__snapshots__/PluralFormat.spec.js.snap +17 -17
  8. package/es/components/__tests__/__snapshots__/UserTimeDiffFormat.spec.js.snap +366 -366
  9. package/es/index.js +1 -1
  10. package/es/utils.js +62 -9
  11. package/lib/components/__tests__/__snapshots__/DateTimeDiffFormat.spec.js.snap +258 -258
  12. package/lib/components/__tests__/__snapshots__/FormatText.spec.js.snap +17 -17
  13. package/lib/components/__tests__/__snapshots__/HOCI18N.spec.js.snap +15 -15
  14. package/lib/components/__tests__/__snapshots__/I18N.spec.js.snap +17 -17
  15. package/lib/components/__tests__/__snapshots__/I18NProvider.spec.js.snap +13 -13
  16. package/lib/components/__tests__/__snapshots__/PluralFormat.spec.js.snap +17 -17
  17. package/lib/components/__tests__/__snapshots__/UserTimeDiffFormat.spec.js.snap +366 -366
  18. package/lib/index.js +18 -0
  19. package/lib/utils.js +65 -9
  20. package/package.json +29 -29
  21. package/src/I18NContext.js +2 -2
  22. package/src/components/DateTimeDiffFormat.js +256 -256
  23. package/src/components/FormatText.js +14 -14
  24. package/src/components/HOCI18N.js +37 -37
  25. package/src/components/I18N.js +74 -74
  26. package/src/components/I18NProvider.js +110 -110
  27. package/src/components/PluralFormat.js +37 -37
  28. package/src/components/UserTimeDiffFormat.js +97 -97
  29. package/src/components/__tests__/DateTimeDiffFormat.spec.js +618 -618
  30. package/src/components/__tests__/FormatText.spec.js +26 -26
  31. package/src/components/__tests__/HOCI18N.spec.js +33 -33
  32. package/src/components/__tests__/I18N.spec.js +29 -29
  33. package/src/components/__tests__/I18NProvider.spec.js +65 -65
  34. package/src/components/__tests__/PluralFormat.spec.js +27 -27
  35. package/src/components/__tests__/UserTimeDiffFormat.spec.js +1076 -1076
  36. package/src/components/__tests__/__snapshots__/DateTimeDiffFormat.spec.js.snap +258 -258
  37. package/src/components/__tests__/__snapshots__/FormatText.spec.js.snap +17 -17
  38. package/src/components/__tests__/__snapshots__/HOCI18N.spec.js.snap +15 -15
  39. package/src/components/__tests__/__snapshots__/I18N.spec.js.snap +17 -17
  40. package/src/components/__tests__/__snapshots__/I18NProvider.spec.js.snap +13 -13
  41. package/src/components/__tests__/__snapshots__/PluralFormat.spec.js.snap +17 -17
  42. package/src/components/__tests__/__snapshots__/UserTimeDiffFormat.spec.js.snap +366 -366
  43. package/src/index.js +36 -33
  44. package/src/utils.js +585 -527
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { formatDate, pad, replaceI18NValuesWithRegex, unescapeUnicode, getValues, getI18NInfo, isToday, isYesterday, isTomorrow, isWithinAWeek, isTwoWeeksOrMore, userDateFormat, getDiffObj, getLyears, getSuffix, getDatePatternWithoutYear, setLocalizedData } from './utils';
1
+ export { formatDate, pad, replaceI18NValuesWithRegex, unescapeUnicode, getValues, getI18NInfo, isToday, isYesterday, isTomorrow, isWithinAWeek, isTwoWeeksOrMore, userDateFormat, getDiffObj, getLyears, getSuffix, getDatePatternWithoutYear, setLocalizedData, dayi18n, monthi18n, timei18n } from './utils';
2
2
  import { getI18NValue as getI18NValue1 } from './utils';
3
3
  export { I18NContext } from './I18NContext';
4
4
  export { default as I18NProvider, i18NProviderUtils } from './components/I18NProvider';
package/es/utils.js CHANGED
@@ -1,4 +1,57 @@
1
1
  import datetime from '@zohodesk/datetimejs';
2
+ import { i18NProviderUtils } from './components/I18NProvider';
3
+ export const dayi18n = {
4
+ 'Sun': 'deskreact.calendar.daynameshort.sunday',
5
+ 'Mon': 'deskreact.calendar.daynameshort.monday',
6
+ 'Tue': 'deskreact.calendar.daynameshort.tuesday',
7
+ 'Wed': 'deskreact.calendar.daynameshort.wednesday',
8
+ 'Thu': 'deskreact.calendar.daynameshort.thursday',
9
+ 'Fri': 'deskreact.calendar.daynameshort.friday',
10
+ 'Sat': 'deskreact.calendar.daynameshort.saturday',
11
+ 'Sunday': 'deskreact.calendar.dayname.sunday',
12
+ 'Monday': 'deskreact.calendar.dayname.monday',
13
+ 'Tuesday': 'deskreact.calendar.dayname.tuesday',
14
+ 'Wednesday': 'deskreact.calendar.dayname.wednesday',
15
+ 'Thursday': 'deskreact.calendar.dayname.thursday',
16
+ 'Friday': 'deskreact.calendar.dayname.friday',
17
+ 'Saturday': 'deskreact.calendar.dayname.saturday'
18
+ };
19
+ export const monthi18n = {
20
+ 'Jan': 'deskreact.calendar.monthnameshort.january',
21
+ 'Feb': 'deskreact.calendar.monthnameshort.february',
22
+ 'Mar': 'deskreact.calendar.monthnameshort.march',
23
+ 'Apr': 'deskreact.calendar.monthnameshort.april',
24
+ 'May': 'deskreact.calendar.monthnameshort.may',
25
+ 'Jun': 'deskreact.calendar.monthnameshort.june',
26
+ 'Jul': 'deskreact.calendar.monthnameshort.july',
27
+ 'Aug': 'deskreact.calendar.monthnameshort.august',
28
+ 'Sep': 'deskreact.calendar.monthnameshort.september',
29
+ 'Oct': 'deskreact.calendar.monthnameshort.october',
30
+ 'Nov': 'deskreact.calendar.monthnameshort.november',
31
+ 'Dec': 'deskreact.calendar.monthnameshort.december',
32
+ 'January': 'deskreact.calendar.monthname.january',
33
+ 'February': 'deskreact.calendar.monthname.february',
34
+ 'March': 'deskreact.calendar.monthname.march',
35
+ 'April': 'deskreact.calendar.monthname.april',
36
+ 'May': 'deskreact.calendar.monthname.may',
37
+ 'June': 'deskreact.calendar.monthname.june',
38
+ 'July': 'deskreact.calendar.monthname.July',
39
+ 'August': 'deskreact.calendar.monthname.august',
40
+ 'September': 'deskreact.calendar.monthname.september',
41
+ 'October': 'deskreact.calendar.monthname.october',
42
+ 'November': 'deskreact.calendar.monthname.november',
43
+ 'December': 'deskreact.calendar.monthname.december'
44
+ };
45
+ export const timei18n = {
46
+ 'a': 'support.time.format.time.am.short.small',
47
+ 'p': 'support.time.format.time.pm.short.small',
48
+ 'am': 'support.time.format.time.am.small',
49
+ 'pm': 'support.time.format.time.pm.small',
50
+ 'A': 'support.time.format.time.am.short',
51
+ 'P': 'support.time.format.time.pm.short',
52
+ 'AM': 'deskreact.calendar.ampmtext.am',
53
+ 'PM': 'deskreact.calendar.ampmtext.pm'
54
+ };
2
55
  let dateFormat = {
3
56
  dayNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
4
57
  monthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
@@ -57,16 +110,16 @@ export function formatDate(dateMill, mask, dateDiffObj) {
57
110
  let flags = {
58
111
  d: d,
59
112
  dd: pad(d, 2),
60
- ddd: dateFormat.dayNames[D],
61
- dddd: dateFormat.dayNames[D + 7],
113
+ ddd: i18NProviderUtils.getI18NValue(dayi18n[dateFormat.dayNames[D]]),
114
+ dddd: i18NProviderUtils.getI18NValue(dayi18n[dateFormat.dayNames[D + 7]]),
62
115
  D: d,
63
116
  DD: pad(d, 2),
64
- DDD: dateFormat.dayNames[D],
65
- DDDD: dateFormat.dayNames[D + 7],
117
+ DDD: i18NProviderUtils.getI18NValue(dayi18n[dateFormat.dayNames[D]]),
118
+ DDDD: i18NProviderUtils.getI18NValue(dayi18n[dateFormat.dayNames[D + 7]]),
66
119
  M: m + 1,
67
120
  MM: pad(m + 1, 2),
68
- MMM: dateFormat.monthNames[m],
69
- MMMM: dateFormat.monthNames[m + 12],
121
+ MMM: i18NProviderUtils.getI18NValue(monthi18n[dateFormat.monthNames[m]]),
122
+ MMMM: i18NProviderUtils.getI18NValue(monthi18n[dateFormat.monthNames[m + 12]]),
70
123
  yy: String(y).slice(2),
71
124
  YY: String(y).slice(2),
72
125
  yyyy: y,
@@ -81,9 +134,9 @@ export function formatDate(dateMill, mask, dateDiffObj) {
81
134
  ss: pad(s, 2),
82
135
  l: pad(L, 3),
83
136
  L: pad(Math.round(L / 10)),
84
- t: H < 12 ? dateFormat.timeNames[0] : dateFormat.timeNames[1],
85
- A: H < 12 ? dateFormat.timeNames[6] : dateFormat.timeNames[7],
86
- T: H < 12 ? dateFormat.timeNames[4] : dateFormat.timeNames[5]
137
+ t: H < 12 ? i18NProviderUtils.getI18NValue(timei18n[dateFormat.timeNames[0]]) : i18NProviderUtils.getI18NValue(timei18n[dateFormat.timeNames[1]]),
138
+ A: H < 12 ? i18NProviderUtils.getI18NValue(timei18n[dateFormat.timeNames[6]]) : i18NProviderUtils.getI18NValue(timei18n[dateFormat.timeNames[7]]),
139
+ T: H < 12 ? i18NProviderUtils.getI18NValue(timei18n[dateFormat.timeNames[4]]) : i18NProviderUtils.getI18NValue(timei18n[dateFormat.timeNames[5]])
87
140
  };
88
141
  let token = /D{1,4}|M{1,4}|YY(?:YY)?|([HhmsA])\1?|[LloSZWN]|\[[^\]]*\]|'[^']*'/gi;
89
142
  let dat = mask.replace(token, match => {
@@ -1,258 +1,258 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`DateTimeDiffFormat component Should display other - greater time 1`] = `
4
- <span
5
- className={null}
6
- data-title={null}
7
- >
8
-
9
- </span>
10
- `;
11
-
12
- exports[`DateTimeDiffFormat component Should display other - less time 1`] = `
13
- <span
14
- className={null}
15
- data-title={null}
16
- >
17
- less 7 NaN-NaN-NaN
18
- </span>
19
- `;
20
-
21
- exports[`DateTimeDiffFormat component Should display other - same time 1`] = `
22
- <span
23
- className={null}
24
- data-title={null}
25
- >
26
- less 7 NaN-NaN-NaN
27
- </span>
28
- `;
29
-
30
- exports[`DateTimeDiffFormat component Should display other later- less time 1`] = `
31
- <span
32
- className={null}
33
- data-title={null}
34
- >
35
- less 7 NaN-NaN-NaN
36
- </span>
37
- `;
38
-
39
- exports[`DateTimeDiffFormat component Should display other later- less time 2`] = `
40
- <span
41
- className={null}
42
- data-title={null}
43
- >
44
-
45
- </span>
46
- `;
47
-
48
- exports[`DateTimeDiffFormat component Should display other later- same time 1`] = `
49
- <span
50
- className={null}
51
- data-title={null}
52
- >
53
- less 7 NaN-NaN-NaN
54
- </span>
55
- `;
56
-
57
- exports[`DateTimeDiffFormat component Should display others 1`] = `
58
- <span
59
- className={null}
60
- data-title={null}
61
- >
62
- less 7 NaN-NaN-NaN
63
- </span>
64
- `;
65
-
66
- exports[`DateTimeDiffFormat component Should display today ago 1`] = `
67
- <span
68
- className={null}
69
- data-title={null}
70
- >
71
-
72
- </span>
73
- `;
74
-
75
- exports[`DateTimeDiffFormat component Should display today key - greater than 24 hour 1`] = `
76
- <span
77
- className={null}
78
- data-title={null}
79
- >
80
-
81
- </span>
82
- `;
83
-
84
- exports[`DateTimeDiffFormat component Should display today key - less than 24 hour 1`] = `
85
- <span
86
- className={null}
87
- data-title={null}
88
- >
89
-
90
- </span>
91
- `;
92
-
93
- exports[`DateTimeDiffFormat component Should display today key - same time 1`] = `
94
- <span
95
- className={null}
96
- data-title={null}
97
- >
98
-
99
- </span>
100
- `;
101
-
102
- exports[`DateTimeDiffFormat component Should display today later 1`] = `
103
- <span
104
- className={null}
105
- data-title={null}
106
- >
107
-
108
- </span>
109
- `;
110
-
111
- exports[`DateTimeDiffFormat component Should display today1 1`] = `
112
- <div>
113
- <span
114
- className={null}
115
- data-title={null}
116
- >
117
-
118
- </span>
119
- <span
120
- className={null}
121
- data-title={null}
122
- >
123
-
124
- </span>
125
- <span
126
- className={null}
127
- data-title={null}
128
- >
129
-
130
- </span>
131
- <span
132
- className={null}
133
- data-title={null}
134
- >
135
-
136
- </span>
137
- <span
138
- className={null}
139
- data-title={null}
140
- >
141
-
142
- </span>
143
- <span
144
- className={null}
145
- data-title={null}
146
- >
147
-
148
- </span>
149
- <span
150
- className={null}
151
- data-title={null}
152
- >
153
-
154
- </span>
155
- <span
156
- className={null}
157
- data-title={null}
158
- >
159
-
160
- </span>
161
- <span
162
- className={null}
163
- data-title={null}
164
- >
165
-
166
- </span>
167
- <span
168
- className={null}
169
- data-title={null}
170
- >
171
-
172
- </span>
173
- <span
174
- className={null}
175
- data-title={null}
176
- >
177
-
178
- </span>
179
- <span
180
- className={null}
181
- data-title={null}
182
- >
183
-
184
- </span>
185
- </div>
186
- `;
187
-
188
- exports[`DateTimeDiffFormat component Should display tomorrow key - greater than 24 hour 1`] = `
189
- <span
190
- className={null}
191
- data-title={null}
192
- >
193
-
194
- </span>
195
- `;
196
-
197
- exports[`DateTimeDiffFormat component Should display tomorrow key - less than 24 hour 1`] = `
198
- <span
199
- className={null}
200
- data-title={null}
201
- >
202
-
203
- </span>
204
- `;
205
-
206
- exports[`DateTimeDiffFormat component Should display tomorrow key - same time 1`] = `
207
- <span
208
- className={null}
209
- data-title={null}
210
- >
211
-
212
- </span>
213
- `;
214
-
215
- exports[`DateTimeDiffFormat component Should display years and days 1`] = `
216
- <span
217
- className={null}
218
- data-title={null}
219
- >
220
- 2 years 62 days ago
221
- </span>
222
- `;
223
-
224
- exports[`DateTimeDiffFormat component Should display years and days1 1`] = `
225
- <span
226
- className={null}
227
- data-title={null}
228
- >
229
- 2 years 62 days later
230
- </span>
231
- `;
232
-
233
- exports[`DateTimeDiffFormat component Should display yesterday - greater than 24 hour 1`] = `
234
- <span
235
- className={null}
236
- data-title={null}
237
- >
238
-
239
- </span>
240
- `;
241
-
242
- exports[`DateTimeDiffFormat component Should display yesterday - less than 24 hour 1`] = `
243
- <span
244
- className={null}
245
- data-title={null}
246
- >
247
-
248
- </span>
249
- `;
250
-
251
- exports[`DateTimeDiffFormat component Should display yesterday - with same time 1`] = `
252
- <span
253
- className={null}
254
- data-title={null}
255
- >
256
-
257
- </span>
258
- `;
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`DateTimeDiffFormat component Should display other - greater time 1`] = `
4
+ <span
5
+ className={null}
6
+ data-title={null}
7
+ >
8
+
9
+ </span>
10
+ `;
11
+
12
+ exports[`DateTimeDiffFormat component Should display other - less time 1`] = `
13
+ <span
14
+ className={null}
15
+ data-title={null}
16
+ >
17
+ less 7 NaN-NaN-NaN
18
+ </span>
19
+ `;
20
+
21
+ exports[`DateTimeDiffFormat component Should display other - same time 1`] = `
22
+ <span
23
+ className={null}
24
+ data-title={null}
25
+ >
26
+ less 7 NaN-NaN-NaN
27
+ </span>
28
+ `;
29
+
30
+ exports[`DateTimeDiffFormat component Should display other later- less time 1`] = `
31
+ <span
32
+ className={null}
33
+ data-title={null}
34
+ >
35
+ less 7 NaN-NaN-NaN
36
+ </span>
37
+ `;
38
+
39
+ exports[`DateTimeDiffFormat component Should display other later- less time 2`] = `
40
+ <span
41
+ className={null}
42
+ data-title={null}
43
+ >
44
+
45
+ </span>
46
+ `;
47
+
48
+ exports[`DateTimeDiffFormat component Should display other later- same time 1`] = `
49
+ <span
50
+ className={null}
51
+ data-title={null}
52
+ >
53
+ less 7 NaN-NaN-NaN
54
+ </span>
55
+ `;
56
+
57
+ exports[`DateTimeDiffFormat component Should display others 1`] = `
58
+ <span
59
+ className={null}
60
+ data-title={null}
61
+ >
62
+ less 7 NaN-NaN-NaN
63
+ </span>
64
+ `;
65
+
66
+ exports[`DateTimeDiffFormat component Should display today ago 1`] = `
67
+ <span
68
+ className={null}
69
+ data-title={null}
70
+ >
71
+
72
+ </span>
73
+ `;
74
+
75
+ exports[`DateTimeDiffFormat component Should display today key - greater than 24 hour 1`] = `
76
+ <span
77
+ className={null}
78
+ data-title={null}
79
+ >
80
+
81
+ </span>
82
+ `;
83
+
84
+ exports[`DateTimeDiffFormat component Should display today key - less than 24 hour 1`] = `
85
+ <span
86
+ className={null}
87
+ data-title={null}
88
+ >
89
+
90
+ </span>
91
+ `;
92
+
93
+ exports[`DateTimeDiffFormat component Should display today key - same time 1`] = `
94
+ <span
95
+ className={null}
96
+ data-title={null}
97
+ >
98
+
99
+ </span>
100
+ `;
101
+
102
+ exports[`DateTimeDiffFormat component Should display today later 1`] = `
103
+ <span
104
+ className={null}
105
+ data-title={null}
106
+ >
107
+
108
+ </span>
109
+ `;
110
+
111
+ exports[`DateTimeDiffFormat component Should display today1 1`] = `
112
+ <div>
113
+ <span
114
+ className={null}
115
+ data-title={null}
116
+ >
117
+
118
+ </span>
119
+ <span
120
+ className={null}
121
+ data-title={null}
122
+ >
123
+
124
+ </span>
125
+ <span
126
+ className={null}
127
+ data-title={null}
128
+ >
129
+
130
+ </span>
131
+ <span
132
+ className={null}
133
+ data-title={null}
134
+ >
135
+
136
+ </span>
137
+ <span
138
+ className={null}
139
+ data-title={null}
140
+ >
141
+
142
+ </span>
143
+ <span
144
+ className={null}
145
+ data-title={null}
146
+ >
147
+
148
+ </span>
149
+ <span
150
+ className={null}
151
+ data-title={null}
152
+ >
153
+
154
+ </span>
155
+ <span
156
+ className={null}
157
+ data-title={null}
158
+ >
159
+
160
+ </span>
161
+ <span
162
+ className={null}
163
+ data-title={null}
164
+ >
165
+
166
+ </span>
167
+ <span
168
+ className={null}
169
+ data-title={null}
170
+ >
171
+
172
+ </span>
173
+ <span
174
+ className={null}
175
+ data-title={null}
176
+ >
177
+
178
+ </span>
179
+ <span
180
+ className={null}
181
+ data-title={null}
182
+ >
183
+
184
+ </span>
185
+ </div>
186
+ `;
187
+
188
+ exports[`DateTimeDiffFormat component Should display tomorrow key - greater than 24 hour 1`] = `
189
+ <span
190
+ className={null}
191
+ data-title={null}
192
+ >
193
+
194
+ </span>
195
+ `;
196
+
197
+ exports[`DateTimeDiffFormat component Should display tomorrow key - less than 24 hour 1`] = `
198
+ <span
199
+ className={null}
200
+ data-title={null}
201
+ >
202
+
203
+ </span>
204
+ `;
205
+
206
+ exports[`DateTimeDiffFormat component Should display tomorrow key - same time 1`] = `
207
+ <span
208
+ className={null}
209
+ data-title={null}
210
+ >
211
+
212
+ </span>
213
+ `;
214
+
215
+ exports[`DateTimeDiffFormat component Should display years and days 1`] = `
216
+ <span
217
+ className={null}
218
+ data-title={null}
219
+ >
220
+ 2 years 62 days ago
221
+ </span>
222
+ `;
223
+
224
+ exports[`DateTimeDiffFormat component Should display years and days1 1`] = `
225
+ <span
226
+ className={null}
227
+ data-title={null}
228
+ >
229
+ 2 years 62 days later
230
+ </span>
231
+ `;
232
+
233
+ exports[`DateTimeDiffFormat component Should display yesterday - greater than 24 hour 1`] = `
234
+ <span
235
+ className={null}
236
+ data-title={null}
237
+ >
238
+
239
+ </span>
240
+ `;
241
+
242
+ exports[`DateTimeDiffFormat component Should display yesterday - less than 24 hour 1`] = `
243
+ <span
244
+ className={null}
245
+ data-title={null}
246
+ >
247
+
248
+ </span>
249
+ `;
250
+
251
+ exports[`DateTimeDiffFormat component Should display yesterday - with same time 1`] = `
252
+ <span
253
+ className={null}
254
+ data-title={null}
255
+ >
256
+
257
+ </span>
258
+ `;
@@ -1,17 +1,17 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`FormatText component Should display i18n value 1`] = `
4
- <span>
5
- vimal1&lt;b&gt;vimal&lt;/b&gt;
6
- </span>
7
- `;
8
-
9
- exports[`FormatText component Should display i18n value as html 1`] = `
10
- <span
11
- dangerouslySetInnerHTML={
12
- Object {
13
- "__html": "vimal1<b>vimal</b>",
14
- }
15
- }
16
- />
17
- `;
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`FormatText component Should display i18n value 1`] = `
4
+ <span>
5
+ vimal1&lt;b&gt;vimal&lt;/b&gt;
6
+ </span>
7
+ `;
8
+
9
+ exports[`FormatText component Should display i18n value as html 1`] = `
10
+ <span
11
+ dangerouslySetInnerHTML={
12
+ Object {
13
+ "__html": "vimal1<b>vimal</b>",
14
+ }
15
+ }
16
+ />
17
+ `;
@@ -1,15 +1,15 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`I18N component Should display i18n key 1`] = `
4
- <div>
5
- test
6
- key1
7
- </div>
8
- `;
9
-
10
- exports[`I18N component Should display i18n value 1`] = `
11
- <div>
12
- test
13
- vimal1
14
- </div>
15
- `;
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`I18N component Should display i18n key 1`] = `
4
+ <div>
5
+ test
6
+ key1
7
+ </div>
8
+ `;
9
+
10
+ exports[`I18N component Should display i18n value 1`] = `
11
+ <div>
12
+ test
13
+ vimal1
14
+ </div>
15
+ `;