Skip to content

Commit

Permalink
fix: fix #2594
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Dec 8, 2024
1 parent 79c6263 commit fc1534d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/extend/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit fc1534d

Please sign in to comment.