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

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 +101 -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/README.md CHANGED
@@ -1,92 +1,101 @@
1
- # i18n
2
-
3
- # 1.0.0-beta.23
4
-
5
- - Zoho security version updated.
6
-
7
- # 1.0.0-beta.22
8
-
9
- - Data test id added for I18N.js
10
-
11
- # 1.0.0-beta.21
12
-
13
- - Data test id added for dateTimedifformat.js
14
-
15
- # 1.0.0-beta.20
16
-
17
- - Date field issue fixed in UserTimeDiffFormat component
18
-
19
- # 1.0.0-beta.19
20
-
21
- - In this version we have made changes in i18n provider to call user date format function only if the time zone data is available.
22
- # 1.0.0-beta.18
23
-
24
- - Localization feature added and incorporated into getI18NValue Method.
25
-
26
- # 1.0.0-beta.17
27
-
28
- - There was some i18n changes done in live before moving the date format build to live. Since we need these changes we have published it as new version.
29
-
30
- # 1.0.0-beta.16
31
-
32
- - DatePattern and dateTimePattern key has been changed for the date format build.
33
-
34
- # 1.0.0-beta.15.1
35
-
36
- - Zoho security version updated.
37
-
38
- # 1.0.0-beta.15
39
-
40
- - When working on date format build we have published I18n. Also, before moving date format build to master we had a emergency fix that need to be sent, so when publishing I18n we have published the date format changes with the next version.
41
-
42
- # 1.0.0-beta.14
43
-
44
- - Issue fixed in enable current year.
45
-
46
- # 1.0.0-beta.13
47
-
48
- - Issue fixed in due date.
49
-
50
- # 1.0.0-beta.12
51
-
52
- - Issue fixed in date Format Pattern.
53
-
54
- # 1.0.0-beta.11
55
-
56
- - Date Format Changes
57
-
58
- # 1.0.0-beta.10
59
-
60
- - Date Format Issue Fixes
61
-
62
- # 1.0.0-beta.9
63
-
64
- - Date Format Changes
65
-
66
- # 1.0.0-beta.8
67
-
68
- - ES Module Support Changes
69
-
70
- # 1.0.0-beta.7
71
-
72
- - 'userDateFormat' util method - 'others' function fix
73
-
74
- # 1.0.0-beta.6
75
-
76
- - Added new prop 'isNeedTime' for DateTimeDiffFormat Component
77
-
78
- # 1.0.0-beta.5
79
-
80
- - Timezone logic moved to @zohodesk/datetimejs
81
-
82
- # 1.0.0-beta.4
83
-
84
- - Added new prop 'page' for DateTimeDiffFormat Component
85
-
86
- # 1.0.0-beta.3
87
-
88
- - Added support for exact times along with relative times in format() function
89
-
90
- # 1.0.0-beta.0
91
-
92
- - Test Publish
1
+ # i18n
2
+
3
+ # 1.0.0-beta.25
4
+
5
+ - July i18n key correction
6
+
7
+ # 1.0.0-beta.24
8
+
9
+ - I18N support for Days, Months and 12-hour time variables.
10
+
11
+ # 1.0.0-beta.23
12
+
13
+ - Zoho security version updated.
14
+
15
+ # 1.0.0-beta.22
16
+
17
+ - Data test id added for I18N.js
18
+
19
+ # 1.0.0-beta.21
20
+
21
+ - Data test id added for dateTimedifformat.js
22
+
23
+ # 1.0.0-beta.20
24
+
25
+ - Date field issue fixed in UserTimeDiffFormat component
26
+
27
+ # 1.0.0-beta.19
28
+
29
+ - In this version we have made changes in i18n provider to call user date format function only if the time zone data is available.
30
+
31
+ # 1.0.0-beta.18
32
+
33
+ - Localization feature added and incorporated into getI18NValue Method.
34
+
35
+ # 1.0.0-beta.17
36
+
37
+ - There was some i18n changes done in live before moving the date format build to live. Since we need these changes we have published it as new version.
38
+
39
+ # 1.0.0-beta.16
40
+
41
+ - DatePattern and dateTimePattern key has been changed for the date format build.
42
+
43
+ # 1.0.0-beta.15.1
44
+
45
+ - Zoho security version updated.
46
+
47
+ # 1.0.0-beta.15
48
+
49
+ - When working on date format build we have published I18n. Also, before moving date format build to master we had a emergency fix that need to be sent, so when publishing I18n we have published the date format changes with the next version.
50
+
51
+ # 1.0.0-beta.14
52
+
53
+ - Issue fixed in enable current year.
54
+
55
+ # 1.0.0-beta.13
56
+
57
+ - Issue fixed in due date.
58
+
59
+ # 1.0.0-beta.12
60
+
61
+ - Issue fixed in date Format Pattern.
62
+
63
+ # 1.0.0-beta.11
64
+
65
+ - Date Format Changes
66
+
67
+ # 1.0.0-beta.10
68
+
69
+ - Date Format Issue Fixes
70
+
71
+ # 1.0.0-beta.9
72
+
73
+ - Date Format Changes
74
+
75
+ # 1.0.0-beta.8
76
+
77
+ - ES Module Support Changes
78
+
79
+ # 1.0.0-beta.7
80
+
81
+ - 'userDateFormat' util method - 'others' function fix
82
+
83
+ # 1.0.0-beta.6
84
+
85
+ - Added new prop 'isNeedTime' for DateTimeDiffFormat Component
86
+
87
+ # 1.0.0-beta.5
88
+
89
+ - Timezone logic moved to @zohodesk/datetimejs
90
+
91
+ # 1.0.0-beta.4
92
+
93
+ - Added new prop 'page' for DateTimeDiffFormat Component
94
+
95
+ # 1.0.0-beta.3
96
+
97
+ - Added support for exact times along with relative times in format() function
98
+
99
+ # 1.0.0-beta.0
100
+
101
+ - Test Publish