Skip to content

Commit 269599d

Browse files
authored
Merge pull request #1 from Dmytro-Shulha/main
Ukrainian translation added.
2 parents f4824be + a60a0c2 commit 269599d

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ console.log(new ZodiacSign('1 Feb 1997 00:12:00 GMT', 'ar').chinese);
3535
```
3636

3737
## Translation
38-
For the moment, the only available languages are English, French, Spanish and Arabic.
38+
For the moment, the only available languages are English, French, Spanish, Arabic and Ukrainian.
3939
Fell free to participate to the translation in any other language.
4040
### Available languages
41-
- English (en)
42-
- French (fr)
43-
- Spanish (es)
44-
- Arabic (ar)
41+
- English (en)
42+
- French (fr)
43+
- Spanish (es)
44+
- Arabic (ar)
45+
- Ukrainian (ua)

index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,24 @@ class ZodiacSign {
44
en : ['Aries: The Ram','Taurus: The Bull','Gemini: The Twins','Cancer: The Crab','Leo: The Lion','Virgo: The Virgin','Libra: The Scales','Scorpio: The Scorpion','Sagittarius: The Archer','Capricorn: The Goat','Aquarius: The Water Bearer','Pisces: The Fish'],
55
fr : ['Bélier', 'Taureau', 'Gémeaux', 'Cancer', 'Lion', 'Vierge', 'Balance', 'Scorpion', 'Sagittaire', 'Capricorne', 'Vereau', 'Poissons'],
66
es : ['Aries', 'Tauro', 'Géminis', 'Cáncer', 'Leo', 'Virgo', 'Libra', 'Escorpio', 'Sagitario', 'Capricornio', 'Acuario', 'Piscis'],
7-
ar : ['الحمل', 'الثور', 'الجوزاء', 'السرطان', 'الأسد', 'العذراء', 'الميزان', 'العقرب',' القوس', 'الجدي', 'الدلو', 'الحوت']
7+
ar : ['الحمل', 'الثور', 'الجوزاء', 'السرطان', 'الأسد', 'العذراء', 'الميزان', 'العقرب',' القوس', 'الجدي', 'الدلو', 'الحوت'],
8+
ua : ['Овен', 'Телець', 'Близнята', 'Рак', 'Лев', 'Діва', 'Терези', 'Скорпіон', 'Стрілець', 'Козоріг', 'Водолій', 'Риби']
89
}
910

1011
static chineseSigns = {
1112
en : ['Monkey', 'Rooster', 'Dog', 'Pig', 'Rat', 'Ox', 'Tiger', 'Rabbit', 'Dragon', 'Snake', 'Horse', 'Sheep'],
1213
fr : ['Singe', 'Coq', 'Chien', 'Cochon', 'Rat', 'Bœuf', 'Tigre', 'Lapin', 'Dragon', 'Serpent', 'Cheval', 'Mouton'],
1314
es : ['Mono', 'Gallo', 'Perro', 'Cerdo', 'Rata', 'Buey', 'Tigre', 'Conejo', 'Dragón', 'Serpiente', 'Caballo', 'Oveja'],
14-
ar : ['القرد', 'الديك', 'الكلب', 'الخنزير', 'الفأر', 'الثور', 'النمر', 'الأرنب', 'التنين', 'الثعبان', 'الحصان', 'الخروف']
15+
ar : ['القرد', 'الديك', 'الكلب', 'الخنزير', 'الفأر', 'الثور', 'النمر', 'الأرنب', 'التنين', 'الثعبان', 'الحصان', 'الخروف'],
16+
ua : ['Мавпа', 'Півень', 'Собака', 'Свиня', 'Щур', 'Бик', 'Тигр', 'Кролик', 'Дракон', 'Змія', 'Кінь', 'Вівця']
1517
}
1618

1719
static chineseElements = {
1820
en : ['Metal', 'Water', 'Wood', 'Fire', 'Earth'],
1921
fr : ['Métal', 'Eau', 'Bois', 'Feu', 'Terre'],
2022
es : ['Metal', 'Agua', 'Madera', 'Fuego', 'Tierra'],
21-
ar : ['المعدني', 'المائي', 'الخشبي', 'الناري', 'الأرضي']
23+
ar : ['المعدني', 'المائي', 'الخشبي', 'الناري', 'الأرضي'],
24+
ua : ['Метал', 'Вода', 'Дерево', 'Вогонь', 'Земля']
2225
}
2326

2427
constructor(value, lang = 'en') {

0 commit comments

Comments
 (0)