Preparing search index...

    Function getSignByName

    • Get the astrological sign by its name with translations for the specified language.

      Parameters

      • sign: Signs

        The name of the astrological sign to retrieve.

      • Optionallang: "en" | "es" = 'en'

        The language code for which translations are needed. Defaults to 'en'.

      Returns null | Sign

      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: '♉'
      // [...]
      // }