mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +08:00
国际化修改
This commit is contained in:
parent
df70027d5b
commit
1241b1cb42
@ -90,7 +90,10 @@ public class WebSocketBusinessHandler implements WebSocketApi {
|
||||
EqUserConfigVo eqUserConfigVo = eqUserConfigVos.get(0);
|
||||
String languageType = eqUserConfigVo.getLanguageType();
|
||||
String[] languages = languageType.split("_");
|
||||
LocaleContextHolder.setDefaultLocale(new Locale(languages[0], languages[1]));
|
||||
// LocaleContextHolder.setDefaultLocale(new Locale(languages[0], languages[1]));
|
||||
LocaleContextHolder.setLocale(new Locale(languages[0], languages[1]));
|
||||
// 从HTTP请求中获取Locale
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user