mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Switch i18n.t to tpl in users.js (#13574)
refs: #13380 - i18n is deprecated and is being replaced with tpl
This commit is contained in:
parent
b1914758b8
commit
6421f60852
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
|||
const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:users');
|
||||
const i18n = require('../../../../../../shared/i18n');
|
||||
const tpl = require('@tryghost/tpl');
|
||||
const mapper = require('./utils/mapper');
|
||||
|
||||
const messages = {
|
||||
pwdChangedSuccessfully: 'Password changed successfully.'
|
||||
};
|
||||
module.exports = {
|
||||
browse(models, apiConfig, frame) {
|
||||
debug('browse');
|
||||
|
@ -29,7 +31,7 @@ module.exports = {
|
|||
debug('changePassword');
|
||||
|
||||
frame.response = {
|
||||
password: [{message: i18n.t('notices.api.users.pwdChangedSuccessfully')}]
|
||||
password: [{message: tpl(messages.pwdChangedSuccessfully)}]
|
||||
};
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue