A dart library to get info about bible books.
It supports Standard & Thompson abbreviations, OSIS & Paratext codes, max chapters, alternative names, and localized names.
Install the biblebooks
package:
dependencies:
biblebooks: ^1.0.0
Then you can import it in your Dart code:
import 'package:biblebooks/biblebooks.dart';
- Book name
- Alternative book name
- OSIS code
- Paratext code
- Standard abbreviation
- Thompson abbreviation
- Max chapter
- English:
AppLocale.en
- Tagalog:
AppLocale.tgl
You can use the BibleBooksHelper()
singleton to retrieve the book's info.
for (BibleBook book in BibleBook.values) {
// Standard abbreviation
print(BibleBooksHelper().getStandardAbbreviation(book));
// Thompson abbreviation
print(BibleBooksHelper().getThompsonAbbreviation(book));
// OSIS code
print(BibleBooksHelper().getOsisCode(book));
// Paratext code
print(BibleBooksHelper().getParatextCode(book));
// Max chapter
print(BibleBooksHelper().getMaxChapter(book));
// Alternative book names
print(BibleBooksHelper().getAlternativeNames(book));
// Book name - default locale
print(BibleBooksHelper().getName(book));
// Book name - en locale
print(BibleBooksHelper().getName(book, locale: AppLocale.en));
// Book name - tgl locale
print(BibleBooksHelper().getName(book, locale: AppLocale.tgl));
}
If you like my work and want to support me, buying me a coffee would be awesome! Thanks for your support!
Mark Ivan Basto • GitHub @MarkIvanDev • Twitter @Rivolvan_Speaks