Skip to content

@gracious.tech/fetch-client


@gracious.tech/fetch-client / collection/bibles_extra / TranslationExtra

Class: TranslationExtra

Defined in: client/src/collection/bibles_extra.ts:8

Access to local book names, sections, and chapter headings for a translation

Methods

get_book_name()

get_book_name(book): object

Defined in: client/src/collection/bibles_extra.ts:33

Get local name data for a book. This will throw if the book doesn’t exist or will contain empty strings if no data available. You should call get_books() on the collection instance for more intuitive access. It will automatically make use of local name data after fetching it.

Parameters

book

string

Returns

normal

normal: string

WARN All of these may be an empty string if the data isn’t available

long

long: string

abbrev

abbrev: string


get_chapters()

get_chapters(book): object[]

Defined in: client/src/collection/bibles_extra.ts:41

Get list of chapters for book which also includes a heading property for each

Parameters

book

string

Returns

object[]


get_chapter_heading()

get_chapter_heading(book, chapter): string

Defined in: client/src/collection/bibles_extra.ts:48

Get the heading for a specific chapter

Parameters

book

string

chapter

number

Returns

string


get_sections()

get_sections(book): object[]

Defined in: client/src/collection/bibles_extra.ts:54

Get list of sections for a book which includes a heading for each and verse range

Parameters

book

string

Returns