|
|
|
@ -52,7 +52,7 @@ public class MessagesConstant {
@@ -52,7 +52,7 @@ public class MessagesConstant {
|
|
|
|
|
String msg=en_msg; |
|
|
|
|
ServerHttpRequest request = exchange.getRequest(); |
|
|
|
|
if (request.getHeaders().containsKey(MessagesConstant.HEADER_KEY)) { |
|
|
|
|
String zh = exchange.getRequest().getHeaders().getFirst(MessagesConstant.Language_ZH); |
|
|
|
|
String zh = exchange.getRequest().getHeaders().getFirst(MessagesConstant.HEADER_KEY); |
|
|
|
|
if (MessagesConstant.Language_ZH.equals(zh)) { |
|
|
|
|
msg = zh_msg; |
|
|
|
|
} else { |
|
|
|
|