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:
parent
c06c63b92b
commit
f6d4d67bbd
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue