Get a single planet with its translated properties for a specified language.
The key corresponding to the desired planet.
Optional
The language code to use for translations. Defaults to 'en'.
An object with translated values based on the specified language, or null if the planet key is invalid.
import { getPlanet, PLANETS } from 'western-signs';// Retrieve information about Mars in Englishconst mars = getPlanet(PLANETS.MARS);console.log(mars);// Output:// {// name: 'Mars',// glyph: '♂',// type: 'Personal'// } Copy
import { getPlanet, PLANETS } from 'western-signs';// Retrieve information about Mars in Englishconst mars = getPlanet(PLANETS.MARS);console.log(mars);// Output:// {// name: 'Mars',// glyph: '♂',// type: 'Personal'// }
Get a single planet with its translated properties for a specified language.