Preparing search index...

    Function getSigns

    • Get all astrological signs with their translations for a specified language.

      Parameters

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

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

      Returns Sign[]

      An array of Sign objects with translated values based on the specified language.

      import { getSigns } from 'western-signs';

      // Retrieve information about all signs in English
      const data = getSigns();
      console.log(data);
      // Output:
      // [
      // {
      // name: 'Aries',
      // element: 'Air',
      // modality: 'Cardinal',
      // rulingPlanet: 'Mars',
      // symbol: '♈'
      // },
      // {
      // name: 'Taurus',
      // element: 'Earth',
      // modality: 'Fixed',
      // rulingPlanet: 'Venus',
      // symbol: '♉'
      // },
      // ...
      // ]