diff --git a/core/server/services/themes/installer.js b/core/server/services/themes/installer.js index e27d5936df..99be336b68 100644 --- a/core/server/services/themes/installer.js +++ b/core/server/services/themes/installer.js @@ -5,9 +5,12 @@ const security = require('@tryghost/security'); const request = require('@tryghost/request'); const errors = require('@tryghost/errors/lib/errors'); const limitService = require('../../services/limits'); -const i18n = require('../../../shared/i18n'); const {setFromZip} = require('./storage'); +const messages = { + repoDoesNotExist: 'Supplied GitHub theme does not exist or is inaccessible' +}; + /** * * @param {String} ref - theme reference in "Org/RepoName" format @@ -54,7 +57,7 @@ const installFromGithub = async (ref) => { } catch (e) { if (e.statusCode && e.statusCode === 404) { return Promise.reject(new errors.BadRequestError({ - message: i18n.t('errors.api.themes.repoDoesNotExist'), + message: messages.repoDoesNotExist, context: zipUrl })); } diff --git a/core/shared/i18n/translations/en.json b/core/shared/i18n/translations/en.json index 5ccd37ed85..18970cb2ea 100644 --- a/core/shared/i18n/translations/en.json +++ b/core/shared/i18n/translations/en.json @@ -412,8 +412,7 @@ "invalidFile": "Please select a valid zip file.", "overrideCasper": "Please rename your zip, it's not allowed to override the default casper theme.", "destroyCasper": "Deleting the default casper theme is not allowed.", - "destroyActive": "Deleting the active theme is not allowed.", - "repoDoesNotExist": "Supplied GitHub theme does not exist or is inaccessible" + "destroyActive": "Deleting the active theme is not allowed." }, "images": { "missingFile": "Please select an image.",