Applied validation in PUT api of form

This commit is contained in:
rajesh
2024-09-18 20:48:34 +05:30
parent d03f5ad653
commit 3525cf01ad
12 changed files with 107 additions and 25 deletions

View File

@@ -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());
}
}