From 0158bcfc841c78e8c0e853616b75fca06693dd24 Mon Sep 17 00:00:00 2001 From: Glowstudent777 <55334764+Glowstudent777@users.noreply.github.com> Date: Fri, 25 Oct 2024 17:14:48 -0500 Subject: [PATCH] Readme --- README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76d885d..32bc85c 100644 --- a/README.md +++ b/README.md @@ -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"); @@ -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