unfoldingWord-dev / ts-desktop

translationStudio Desktop App
http://ufw.io/ts
Other
41 stars 29 forks source link

Support extracting chapter titles in api #1263

Closed da1nerd closed 5 years ago

da1nerd commented 5 years ago

The ts api needs to support extracting the chapter titles as see in https://git.door43.org/Door43-Catalog/pt-br_ulb/src/branch/master/42-MRK.usfm#L13.

The result should be another chunk block in https://cdn.door43.org/v2/ts/mrk/pt-br/ulb/v6.7/source.json?date_modified=20190517 like

{
  "id":"01-title",
  ...
}
da1nerd commented 5 years ago

also make sure we are correctly getting the book title as well.

da1nerd commented 5 years ago

by default the resource container module used by the node door43 client is generating chapter titles if they are not present in the data from the api. It will attempt to localized a few well known languages and fallback to English as a default.

In order to properly propagate the chapter title down to the app we'll need to include the chapter title in the chapter object (not a new chunk as suggested above).

da1nerd commented 5 years ago

The api was updated but it's still not working :cry:

da1nerd commented 5 years ago

fixed some bugs. Now the api should be working correctly.