Open
Description
For romcal, I need to add Latin locale to dayjs
. Therefore I have some questions regarding this.
- As Latin weekday names are composed mostly of two words (like
feria secunda
for Monday), should I use a command as follows?
weekdays: 'Dominica-feria secunda-feria tertia-feria quarta-feria quinta-feria sexta-Sabbato'.split('-'),
- There’s a subissue: in Latin, there are two different ways to name the weekdays, and a third one (e.g. used in the Roman Catholic Church) which modifies one of the former two:
A. using dies
(used in the Ancient Rome):
dies Solis
;dies Lunae
;dies Martis
;dies Mercurii
;dies Iovis
;dies Veneris
;dies Saturni
;
B. using ferias
(numbering days, starting with 1 for Sunday):
feria prima
;feria secunda
;feria tertia
;feria quarta
;feria quinta
;feria sexta
;feria septima
;
C. variation of the feria
names, used in the RC Church (uses Dominica
for Sunday and Sabbato
for Saturday):
Dominica
;feria secunda
;feria tertia
;feria quarta
;feria quinta
;feria sexta
;Sabbato
.
Now, I need the C one only, but some other people might like some other names. If I implement this, I’d like to be as thorough as possible, so my question is: should I create three separate regions (like la-va
for Vatican, i.e. the 3rd type of weekday names)? Or how else should I fix this?
- Weekday names: when the
feria
names are used, one may shorten it by using Roman numerals (e.g.feria sexta
→fera VI
). I presume I should use these inweekdaysShort
, but I need a confirmation. Seldom, simply the Roman numerals are used (likeIV
), for which I could useweekdaysMin
.
- Another thing is that in Latin, they don’t use Arabic numeral, instead they always use Roman numerals (for days of month, year, weekday numbers). I suggest to use Arabic numerals in time format (I don’t think that in Ancient Rome, they used time format at all and nowadays, I believe they use Arabic numerals for time instead). But how do I output Roman numerals? Does
dayjs
include such a converter? Should I create a custom function withinla.js
?
- As I know that you compare the output of
dayjs
with the output of Moment indayjs
tests, is it required to createla.js
locale in Moment first?
Metadata
Metadata
Assignees
Labels
No labels