Provides a zodiac sign & chinese zodiac sign depending a birthday
<script src="https://cdn.jsdelivr.net/gh/besrourms/zodiacsigns@latest/index.min.js"></script>
// Return 'Sagittarius: The Archer'
console.log(new ZodiacSign('1991-11-30').sign)
// Return {"sign": "Rat", "element": "Fire", "yinyang": "Yang"}
console.log(new ZodiacSign('1 Feb 1997 00:12:00 GMT').chinese)
// Overload the default language (format xx)
console.log(new ZodiacSign('1 Feb 1997 00:12:00 GMT', 'ar').chinese);
For the moment, the only available languages are English, French, Spanish, Arabic, Ukrainian, Chinese, Turkish and Japanese. Fell free to participate to the translation in any other language.
- English (en)
- French (fr)
- Spanish (es)
- Arabic (ar)
- Ukrainian (ua)
- Chinese (zh)
- Turkish (tr)
- Japanese (ja)
- Indonesian (id)