Skip to content

feat: 国际化支持占位符#343

Closed
PengyuDeng wants to merge 1 commit intohs-web:5.0.xfrom
PengyuDeng:string
Closed

feat: 国际化支持占位符#343
PengyuDeng wants to merge 1 commit intohs-web:5.0.xfrom
PengyuDeng:string

Conversation

@PengyuDeng
Copy link
Contributor

No description provided.

String result = messageSource.getMessage(code, args, null, locale);
if (StringUtils.hasText(result)) {
return result;
return formatMessage(result, args, locale);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不需要再formatMessage了吧? 下同.

@PengyuDeng
Copy link
Contributor Author

似乎没问题,spring本身就是支持占位符的........

@PengyuDeng PengyuDeng closed this Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants