package com.vci.ubcs.starter.web.util;
|
|
//
|
// Source code recreated from a .class file by IntelliJ IDEA
|
// (powered by FernFlower decompiler)
|
//
|
|
//package com.vci.starter.web.util;
|
|
import org.springframework.context.MessageSource;
|
import org.springframework.context.i18n.LocaleContextHolder;
|
import org.springframework.stereotype.Component;
|
|
@Component
|
public class MessageUtils {
|
private static MessageSource messageSource;
|
|
public MessageUtils(MessageSource messageSource) {
|
MessageUtils.messageSource = messageSource;
|
}
|
|
public static String get(String msgKey) {
|
try {
|
return messageSource.getMessage(msgKey, (Object[])null, LocaleContextHolder.getLocale());
|
} catch (Throwable var2) {
|
return msgKey;
|
}
|
}
|
|
public static String get(String msgKey, Object[] objects) {
|
try {
|
return messageSource.getMessage(msgKey, objects, LocaleContextHolder.getLocale());
|
} catch (Throwable var3) {
|
return msgKey;
|
}
|
}
|
}
|