The name of the astrological sign to retrieve.
Optional
lang: "en" | "es" = 'en'The language code for which translations are needed. Defaults to 'en'.
An object representing the sign with translated values or null if the sign or dictionary is not found.
import { getSignByName, SIGNS } from 'western-signs';
// Retrieve information about Taurus in English
const taurusData = getSignByName(SIGNS.TAURUS);
console.log(taurusData);
// Output:
// {
// name: 'Taurus',
// element: 'Earth',
// modality: 'Fixed',
// rulingPlanet: 'Venus',
// symbol: '♉'
// [...]
// }
Get the astrological sign by its name with translations for the specified language.