diff --git a/packages/server/src/extend/controller.js b/packages/server/src/extend/controller.js index 3d8ec9a0996..67caaf7415d 100644 --- a/packages/server/src/extend/controller.js +++ b/packages/server/src/extend/controller.js @@ -20,7 +20,7 @@ module.exports = { return this[this.ctx.state.deprecated ? 'json' : 'success'](...args); }, locale(message, variables) { - const { userLang } = this.get(); + const { lang: userLang } = this.get(); const lang = (userLang || defaultLang).toLowerCase(); const customLocales = this.config('locales');