refactor: 国际化 not support key 显示具体的key

This commit is contained in:
Captain.B 2020-12-29 10:54:08 +08:00
parent 711c787f8d
commit c52fddbe19
1 changed files with 1 additions and 1 deletions

View File

@ -17,6 +17,6 @@ public class Translator {
* 单Key翻译
*/
public static String get(String key) {
return messageSource.getMessage(key, null, "Not Support Key", LocaleContextHolder.getLocale());
return messageSource.getMessage(key, null, "Not Support Key: " + key, LocaleContextHolder.getLocale());
}
}