Function getLocalizedIdFromBookNumber

  • https://github.com/ubsicap/Paratext/blob/master/ParatextData/SILScriptureExtensions.cs#L72

    Convert book number to a localized Id (a short description of the book). This should be used whenever a book ID (short code) is shown to the user. It is primarily needed for people who do not read Roman script well and need to have books identified in a alternate script (e.g. Chinese or Russian)

    Parameters

    • bookNumber: number
    • localizationLanguage: string

      In BCP 47 format

    • getLocalizedString: (item: { languagesToSearch?: string[]; localizeKey: string }) => Promise<string>

      Function that provides the localized versions of the book ids and names asynchronously.

    Returns Promise<string>