Preparing search index...

    Function getHouses

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

      Parameters

      • Optionallanguage: "en" | "es" | "ca" = 'en'

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

      Returns House[]

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

      import { getHouses } from 'western-houses';

      // Retrieve information about all houses in English
      const data = getHouses();
      console.log(data);
      // Output:
      // [
      // {
      // number: 1,
      // title: 'The individual personality',
      // sign: 'Aries',
      // rulingPlanet: 'Mars',
      // keywords: [
      // 'Self-image',
      // 'Identity',
      // 'Impressions on others',
      // 'Personality'
      // ]
      // },
      // ...
      // ]