Add Latin locale
See original GitHub issueFor 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 secundafor 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
ferianames 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
dayjsinclude such a converter? Should I create a custom function withinla.js?
- As I know that you compare the output of
dayjswith the output of Moment indayjstests, is it required to createla.jslocale in Moment first?
Issue Analytics
- State:
- Created 3 years ago
- Comments:48 (48 by maintainers)
Top Results From Across the Web
How do I add locale to ubuntu server?
I needed to add a 'special' type of locale sr_RS.utf8@latin in Ubuntu. Command: sudo locale-gen sr_RS.utf8@latin. does not add the @latin to the ......
Read more >Creating a Locale (The Java™ Tutorials > Internationalization ...
This internationalization Java tutorial describes setting locale, isolating locale-specific data, formatting data, internationalized domain name and ...
Read more >Language Codes - Israel Science and Technology Directory
Locale Language code LCID string LCID Decimal LCID Hexadecimal Codepage
Afrikaans af af 1078 436 1252
Albanian sq sq 1052 1250
Amharic am am 1118
Read more >Locale - ArchWiki
Locales are used by glibc and other locale-aware programs or libraries ... a /etc/skel/.config/locale.conf file so that any new users added ...
Read more >Default Input Profiles (Input Locales) in Windows
Input profiles (or input locales) describe the language of the ... Some character sets (like CHS IME) have a Latin character set built...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi, @tukusejssirs
I have made a pr https://github.com/iamkun/dayjs/pull/1053 to fix this issue.
Can you please help me test it to see if it works?
@tukusejssirs Of course I know it’s an important language. However, bundle extra logic to the main pack will significantly increase the bundle size, while the use is limited. In this case like many others, we recommend implementing it as a separate self-maintained plugin to make it fully supported.