0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Replaced i18n.t w/ tpl helper in memberSigninUrls.js (#13462)

refs: #13380

- The i18n package is deprecated. It is being replaced with the tpl package.
This commit is contained in:
Deeksha Agrawal 2021-10-06 16:11:37 +05:30 committed by GitHub
parent c06c63b92b
commit f6d4d67bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,11 @@
const i18n = require('../../../shared/i18n');
const tpl = require('@tryghost/tpl');
const errors = require('@tryghost/errors');
const membersService = require('../../services/members');
const messages = {
memberNotFound: 'Member not found.'
};
module.exports = {
docName: 'member_signin_urls',
permissions: true,
@ -15,7 +19,7 @@ module.exports = {
if (!model) {
throw new errors.NotFoundError({
message: i18n.t('errors.api.members.memberNotFound')
message: tpl(messages.memberNotFound)
});
}