Is your feature request related to a problem? Please describe.
Following the investigation in https://github.com/bbc/simorgh/issues/1567 we have decided to add support for dual calendar (Gregorian and Jalali) timestamps to psammead-locales.
The implementation can reuse some of the code and tests from the legacy moment-ws codebase as it has been extensively validated in production, but it should be reviewed for correctness and modernised/tidied up before being integrated into psammead.
Describe the solution you'd like
Where possible reuse the existing moment-ws JS code and tests (with appropriate updates/improvements and the addition of any required documentation)
Is your feature request related to a problem? Please describe. Following the investigation in https://github.com/bbc/simorgh/issues/1567 we have decided to add support for dual calendar (Gregorian and Jalali) timestamps to
psammead-locales
.The implementation can reuse some of the code and tests from the legacy
moment-ws
codebase as it has been extensively validated in production, but it should be reviewed for correctness and modernised/tidied up before being integrated into psammead.Describe the solution you'd like
moment-ws
JS code and tests (with appropriate updates/improvements and the addition of any required documentation)psammead-locales
- as has already been done for Yorubajalaali-js
for the actual calendar conversion unless there is a more lightweight/convenient alternative (some research needed)Describe alternatives you've considered See https://github.com/bbc/simorgh/issues/1567
Testing notes
Dev insight: Will Cypress tests be required or are unit tests sufficient? Will there be any potential regression? etc
Additional context Add any other context or screenshots about the feature request here.