resolved conflicts
This commit is contained in:
@@ -22,4 +22,9 @@ public class Translator {
|
||||
Locale locale = LocaleContextHolder.getLocale();
|
||||
return messageSource.getMessage(msgCode, null, locale);
|
||||
}
|
||||
|
||||
public static String toLocale(String key, Object... args) {
|
||||
return messageSource.getMessage(key, args, LocaleContextHolder.getLocale());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user