question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

For romcal, I need to add Latin locale to dayjs. Therefore I have some questions regarding this.


  1. 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('-'),

  1. 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?


  1. Weekday names: when the feria names are used, one may shorten it by using Roman numerals (e.g. feria sextafera VI). I presume I should use these in weekdaysShort, but I need a confirmation. Seldom, simply the Roman numerals are used (like IV), for which I could use weekdaysMin.

  1. 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 within la.js?

  1. As I know that you compare the output of dayjs with the output of Moment in dayjs tests, is it required to create la.js locale in Moment first?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:48 (48 by maintainers)

github_iconTop GitHub Comments

4reactions
iamkuncommented, Sep 17, 2020

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?

1reaction
iamkuncommented, Oct 2, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found