Skip to content

BesrourMS/ZodiacSigns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT JSR

Zodiac Signs / Chinese Zodiac Signs

Provides a zodiac sign & chinese zodiac sign depending a birthday

Installation

<script src="https://cdn.jsdelivr.net/gh/besrourms/zodiacsigns@latest/index.min.js"></script>

Examples

Getting a zodiac sign from a date

// Return 'Sagittarius: The Archer'
console.log(new ZodiacSign('1991-11-30').sign)

Getting a chinese zodiac sign from a date

// Return {"sign": "Rat", "element": "Fire", "yinyang": "Yang"}
console.log(new ZodiacSign('1 Feb 1997 00:12:00 GMT').chinese)

Getting a sign with translation

// Overload the default language (format xx)
console.log(new ZodiacSign('1 Feb 1997 00:12:00 GMT', 'ar').chinese);

Translation

Fell free to participate to the translation in any language.

Available languages

  • English (en) – English
  • French (fr) – Français
  • Spanish (es) – Español
  • Arabic (ar) – العربية
  • Ukrainian (ua) – Українська
  • Chinese (zh) – 中文
  • Turkish (tr) – Türkçe
  • Japanese (ja) – 日本語
  • Indonesian (id) – Bahasa Indonesia
  • German (de) – Deutsch