Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ddbdecc2
authored
2024-11-17 15:34:42 +0800
by
村长大人
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
固定国际化为中文
1 parent
46f63d65
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lego-framework/src/main/java/com/lego/framework/config/I18nConfig.java
lego-framework/src/main/java/com/lego/framework/config/I18nConfig.java
View file @
ddbdecc
...
...
@@ -30,7 +30,7 @@ public class I18nConfig {
@Override
public
Locale
resolveLocale
(
HttpServletRequest
httpServletRequest
)
{
//String language = httpServletRequest.getHeader("content-language");
Locale
locale
=
Locale
.
getDefault
(
);
Locale
locale
=
new
Locale
(
"zh"
,
"CN"
);
/*if (StrUtil.isNotBlank(language)) {
String[] split = language.split("_");
locale = new Locale(split[0], split[1]);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment