function getTextBasedOnLanguage(paragraph, currentLanguageCode) {
        if (paragraph === undefined) { return }
        if (paragraph.translations === undefined || currentLanguageCode === undefined) { return paragraph.text }
        if (paragraph.translations.length === 0) { return paragraph.text }
        for (let i = 0; i < paragraph.translations.length; i++) {
            let translation = paragraph.translations[i]
            if (translation.language === currentLanguageCode) { return translation.text }
        }
        return paragraph.text
    }
@param {Paragraph} paragraph 
@param {string} currentLanguageCode 
@returns