0xStarcat / CircularNatalHoroscopeJS

An ES6 library for many astrological chart calculations.
The Unlicense
259 stars 78 forks source link

Custom Language Problems #33

Open rkgun opened 2 years ago

rkgun commented 2 years ago

As stated in the readme.md file I adjusted the language.js file in the src/utilities/ directory by adding a new language and added the demo file. npm run build:demo with the command I rebuilt. Ascendant and Midheaven zodiac signs still appear in English even if I change the current language. Does anyone know what is causing this or can inform me about it?

demo.html screen shot

In the picture, the starting points of the zodiac signs, midheaven constellations appear with ascendant (Gemini, Aquarius). While the names of all the zodiac signs appear in Turkish. Ascendant and midheaven the situation is different.

Below are the nomenclatures I created to add a new language:

 tr: {
    // Label
    label: 'Türkçe',
    // Angles
    ascendant: 'Yükselen Açı',
    midheaven: 'Midheaven',
    // Bodies
    sun: 'Güneş',
    moon: 'Ay',
    mercury: 'Merkür',
    venus: 'Venüs',
    mars: 'Mars',
    jupiter: 'Jüpiter',
    saturn: 'Satürn',
    uranus: 'Uranüs',
    neptune: 'Neptün',
    pluto: 'Plüto',
    chiron: 'Chiron',
    sirius: 'Sirius',
    // Points
    northnode: 'Kuzey Düğüm',
    southnode: 'Güney Düğüm',
    lilith: 'Lilith (Kara AY)',
    // Signs
    aries: 'Koç',
    taurus: 'Boğa',
    gemini: 'İkizler',
    cancer: 'Yengeç',
    leo: 'Aslan',
    virgo: 'Başak',
    libra: 'Terazi',
    scorpio: 'Akrep',
    sagittarius: 'Yay',
    capricorn: 'Oğlak',
    aquarius: 'Kova',
    pisces: 'Balık',
    ophiuchus: 'Yılan Haritası',
    // Houses
    house1: '1. Ev (Yükselen)',
    house2: '2. Ev',
    house3: '3. Ev',
    house4: '4. Ev',
    house5: '5. Ev',
    house6: '6. Ev',
    house7: '7. Ev',
    house8: '8. Ev',
    house9: '9. Ev',
    house10: '10. Ev',
    house11: '11. Ev',
    house12: '12. Ev',
    // Aspects
    conjunction: 'Birleşme',
    opposition: 'Karşıt',
    trine: 'Üçgen',
    square: 'Kare',
    sextile: 'Birleşmeyen',
    quincunx: 'Kavuşmayan Açı',
    quintile: 'Beşlik',
    septile: '51 derece',
    'semi-square': 'Yarı Kare',
    'semi-sextile': 'Yarı Birleşmeyen',
    // Zodiac Choice Labels
    'tropical-zodiac': 'Tropical',
    'sidereal-zodiac': 'Sidereal',
    // House System labels
    'equal-house': 'Eşit Ev',
    campanus: 'Campanus',
    koch: 'Koch',
    placidus: 'Placidus',
    regiomontanus: 'Regiomontanus',
    topocentric: 'Topocentric',
    'whole-sign': 'Bütün İşaret',
    // Aspect level labels
    major: 'Büyük',
    minor: 'Küçük',
  },
Moziezez commented 1 year ago

What i did is to use that kind of dictionary-object to translate everything into german for my frontend, so it works fine :) Planet Labels shown to User in a Horoscope-Graphic are in German, the 'calculations' are in english.