Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Glowstudent777 committed Oct 25, 2024
1 parent ed40142 commit 0158bcf
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const YouVersion = require("@glowstudent/youversion");
#### Getting the verse of the day:

> **Note**
> Version is not yet configurable
> The default language is English
```javascript
const YouVersion = require("@glowstudent/youversion");
Expand All @@ -41,6 +41,30 @@ const YouVersion = require("@glowstudent/youversion");
}
```

#### Getting the verse of the day in a different language:

You can specify a single or multiple languages by passing them as a string separated by a comma. The languages must be in the format of the ISO 639-1 code. For example, `en` for English, `es` for Spanish, `fr` for French, and `de` for German. It will return the first language that is available. If the language is not available it will move on to the next language in the list.

Single language:

```javascript
const YouVersion = require("@glowstudent/youversion");

(async () => {
console.log(await YouVersion.getVerseOfTheDay("sk"));
})();
```

Multiple languages:

```javascript
const YouVersion = require("@glowstudent/youversion");

(async () => {
console.log(await YouVersion.getVerseOfTheDay("es, fr, de"));
})();
```

#### Getting any verse:

```javascript
Expand Down

0 comments on commit 0158bcf

Please sign in to comment.