The file “app-builder-menus.js” is found in two places in the HTML output for PWAs.
These files do not localize the label “Introduction” for the display of a book’s Introduction selection option in this IF statement:
if (hasIntro) {
ref = baseRef + padWithLeadingZeros(0, 3) + ".html";
baseText = baseText + "<div class='intro-menu-item'>" + "<a href='" + ref + "'>" + "Introduction" + "</a></div>";
}
As shown here:
Should it not at least offer to change this label to the National Language label as the PWA is being exported? It would be even better if the Menus stored labels for English to National to Local languages as defined in the UI settings of SAB, and then make the PWA able to conditionally change what is displayed depending on a UI language selection (like the final SAB APKs do).
Finally, the chapter abbreviation for “Introduction” is hardcoded somewhere to “i”! Seen here:
If anything, it would be most logical to hardcode it to “0” (zero), as this is more universal than “i”, and the Introduction to each book is the “chapter before chapter 1”, right?
Or possibly take the first letter off the National or Local language label (“Pendahuluan” → “p”). Or just read from the SAB settings what labels the app developer has chosen for these in the app.