biblebooks 1.0.0 biblebooks: ^1.0.0 copied to clipboard
A Dart library to get info about bible books.
biblebooks #
A dart library to get info about bible books.
It supports Standard & Thompson abbreviations, OSIS & Paratext codes, max chapters, alternative names, and localized names.
Getting started #
Install the biblebooks
package:
dependencies:
biblebooks: ^1.0.0
Then you can import it in your Dart code:
import 'package:biblebooks/biblebooks.dart';
Features #
Supported bible book info: #
- Book name
- Alternative book name
- OSIS code
- Paratext code
- Standard abbreviation
- Thompson abbreviation
- Max chapter
Supported Locales #
- English:
AppLocale.en
- Tagalog:
AppLocale.tgl
Usage #
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));
}
Support #
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