sillsdev / appbuilder-pwa

Progress Web App template for Scripture App Builder
https://software.sil.org/scriptureappbuilder
MIT License
8 stars 22 forks source link

Contents entries can have multiple text translations #583

Closed davidmoore1 closed 5 days ago

davidmoore1 commented 1 month ago

Prerequisite: Issue #536 Basic Contents Screen

Entries displayed on the contents menu have text associated with them. In this example, "Jesus Parables" entry also has a Spanish translation that displays when the interface language is Spanish.

ContentsWithAudio ContentsSpanish

The contents.xml file contains an entry for the default language and then entries for any other language that has a translation available.

<contents-item id="3">
      <title lang="default">Jesus Parables</title>
      <title lang="es">Las parábolas de Jesús</title>
      <audio lang="en">parables_en.mp3</audio>
      <audio lang="es">parables_es.mp3</audio>
      <image-filename>parables.png</image-filename>
      <link type="screen" target="2" />
    </contents-item>