@zodic/shared 0.0.137 → 0.0.138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.137",
3
+ "version": "0.0.138",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -1,3 +1,42 @@
1
1
  export function normalizeName(name: string): string {
2
- return name.toLowerCase().replace(/\s+/g, '-');
2
+ const englishName = TRANSLATION_MAP[name] || name;
3
+
4
+ return englishName.toLowerCase().replace(/\s+/g, '-');
3
5
  }
6
+
7
+ const TRANSLATION_MAP: Record<string, string> = {
8
+ // Planets
9
+ Sol: 'Sun',
10
+ Lua: 'Moon',
11
+ Mercúrio: 'Mercury',
12
+ Vênus: 'Venus',
13
+ Marte: 'Mars',
14
+ Júpiter: 'Jupiter',
15
+ Saturno: 'Saturn',
16
+ Urano: 'Uranus',
17
+ Netuno: 'Neptune',
18
+ Plutão: 'Pluto',
19
+ Ascendente: 'Ascendant',
20
+ MC: 'Midheaven',
21
+
22
+ // Signs
23
+ Áries: 'Aries',
24
+ Touro: 'Taurus',
25
+ Gémeos: 'Gemini',
26
+ Câncer: 'Cancer',
27
+ Leão: 'Leo',
28
+ Virgem: 'Virgo',
29
+ Libra: 'Libra',
30
+ Escorpião: 'Scorpio',
31
+ Sagitário: 'Sagittarius',
32
+ Capricórnio: 'Capricorn',
33
+ Aquário: 'Aquarius',
34
+ Peixes: 'Pisces',
35
+
36
+ // Aspect Types
37
+ Conjunção: 'Conjunction',
38
+ Oposição: 'Opposition',
39
+ Quadratura: 'Square',
40
+ Sextil: 'Sextile',
41
+ Trígono: 'Trine',
42
+ };