loadLocalizedContent

fun loadLocalizedContent(sheetLink: String, sheetTabs: List<String>, defaultIntentLanguage: Language = Language.ENGLISH_US)

Loads the content of a Google sheet into a map of strings sorted by language and key. Examples of the how to set the sheet are available here.

Parameters

sheetLink

The id part of a link to the Google Sheet

sheetTabs

The tabs that will be loaded from that sheet

defaultIntentLanguage

The default language to define intents. It has to be a language present in the intents sheet options (default : en-us)

Example:

UtilsLib.GoogleSheets.loadLocalizedContent("1-yMgiselYr-8wWJIliayxoMoAjlmEpIlv86FTr8_RSM", listOf("LocalizedStrings","LocalizedIntents"))