lib/main.js
function() {
        library.addCatalog({
            slug: 'langnames',
            url: 'https://td.unfoldingword.org/exports/langnames.json',
            modified_at: 0
        });
        library.addCatalog({
            slug: 'new-language-questions',
            url: 'https://td.unfoldingword.org/api/questionnaire/',
            modified_at: 0
        });
        library.addCatalog({
            slug: 'temp-langnames',
            url: 'https://td.unfoldingword.org/api/templanguages/',
            modified_at: 0
        });
        // TRICKY: this catalog should always be indexed after langnames and temp-langnames otherwise the linking will fail!
        library.addCatalog({
            slug: 'approved-temp-langnames',
            url: 'https://td.unfoldingword.org/api/templanguages/assignment/changed/',
            modified_at: 0
        });
        return Promise.resolve();
    }
function() {
        library.addCatalog({
            slug: 'langnames',
            url: 'https://td.unfoldingword.org/exports/langnames.json',
            modified_at: 0
        });
        library.addCatalog({
            slug: 'new-language-questions',
            url: 'https://td.unfoldingword.org/api/questionnaire/',
            modified_at: 0
        });
        library.addCatalog({
            slug: 'temp-langnames',
            url: 'https://td.unfoldingword.org/api/templanguages/',
            modified_at: 0
        });
        // TRICKY: this catalog should always be indexed after langnames and temp-langnames otherwise the linking will fail!
        library.addCatalog({
            slug: 'approved-temp-langnames',
            url: 'https://td.unfoldingword.org/api/templanguages/assignment/changed/',
            modified_at: 0
        });
        return Promise.resolve();
    }
function ( ) { library . addCatalog ( { slug : 'langnames' , url : 'https://td.unfoldingword.org/exports/langnames.json' , modified_at : 0 } ) ; library . addCatalog ( { slug : 'new-language-questions' , url : 'https://td.unfoldingword.org/api/questionnaire/' , modified_at : 0 } ) ; library . addCatalog ( { slug : 'temp-langnames' , url : 'https://td.unfoldingword.org/api/templanguages/' , modified_at : 0 } ) ; // TRICKY: this catalog should always be indexed after langnames and temp-langnames otherwise the linking will fail! library . addCatalog ( { slug : 'approved-temp-langnames' , url : 'https://td.unfoldingword.org/api/templanguages/assignment/changed/' , modified_at : 0 } ) ; return Promise . resolve ( ) ; }
Injects the global catalogs since they are missing from api v2.

@returns {Promise}
Injects the global catalogs since they are missing from api v2 .