design-comuni-plone-theme 11.20.3 → 11.20.4
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/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.20.4](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.20.3...v11.20.4) (2024-08-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* changed rrule translation in PageHeaderEventDates ([#743](https://github.com/RedTurtle/design-comuni-plone-theme/issues/743)) ([9a7d59f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/9a7d59f0927f34dbab74c44d09029904e07d5067))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Documentation
|
|
12
|
+
|
|
13
|
+
* updated publiccode ([e0c1f3c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/e0c1f3ceaf1134cd0b5eec8352eeab2a2632e154))
|
|
14
|
+
|
|
3
15
|
## [11.20.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.20.2...v11.20.3) (2024-08-14)
|
|
4
16
|
|
|
5
17
|
|
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -229,7 +229,7 @@ platforms:
|
|
|
229
229
|
- web
|
|
230
230
|
releaseDate: '2024-08-14'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.20.
|
|
232
|
+
softwareVersion: 11.20.4
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -34,6 +34,10 @@ const PageHeaderEventDates = ({ content, moment, rrule }) => {
|
|
|
34
34
|
|
|
35
35
|
if (content['@type'] === 'Event') {
|
|
36
36
|
if (content.recurrence) {
|
|
37
|
+
const isRecurrenceByDay = content.recurrence.includes('BYDAY=+');
|
|
38
|
+
const isWeekdaySunday = content.recurrence
|
|
39
|
+
.split('BYDAY')[1]
|
|
40
|
+
?.includes('SU');
|
|
37
41
|
const rruleSet = rrulestr(content.recurrence, {
|
|
38
42
|
compatible: true, //If set to True, the parser will operate in RFC-compatible mode. Right now it means that unfold will be turned on, and if a DTSTART is found, it will be considered the first recurrence instance, as documented in the RFC.
|
|
39
43
|
forceset: true,
|
|
@@ -41,6 +45,16 @@ const PageHeaderEventDates = ({ content, moment, rrule }) => {
|
|
|
41
45
|
const RRULE_LANGUAGE = rrulei18n(intl, Moment);
|
|
42
46
|
eventRecurrenceText = rruleSet.rrules()[0]?.toText(
|
|
43
47
|
(t) => {
|
|
48
|
+
if (Moment.locale(intl.locale) === 'it' && isRecurrenceByDay) {
|
|
49
|
+
RRULE_LANGUAGE.strings.th = '°';
|
|
50
|
+
RRULE_LANGUAGE.strings.nd = '°';
|
|
51
|
+
RRULE_LANGUAGE.strings.rd = '°';
|
|
52
|
+
RRULE_LANGUAGE.strings.st = '°';
|
|
53
|
+
|
|
54
|
+
if (isWeekdaySunday) {
|
|
55
|
+
RRULE_LANGUAGE.strings['on the'] = 'la';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
44
58
|
return RRULE_LANGUAGE.strings[t];
|
|
45
59
|
},
|
|
46
60
|
RRULE_LANGUAGE,
|