BO/API 메시지 처리
BO 메시지 처리 방식 가이드
allLangs 설정
export const allLangs = [
{
value: 'en',
label: 'English',
countryCode: 'GB',
adapterLocale: 'en',
numberFormat: { code: 'en-US', currency: 'USD' },
systemValue: { components: { /* 영어 설정 */ } },
},
{
value: 'ko',
label: 'Korea',
countryCode: 'KR',
adapterLocale: 'ko',
numberFormat: { code: 'ko', currency: 'WON' },
systemValue: { components: { /* 한국어 설정 */ } },
},
]useTranslate Hook
메시지 JSON 작성
페이지 및 컴포넌트에서의 사용 예시
API 메시지 처리 방식 가이드
MessageResolver.class
ApiError Class 파일 작성
message properties 파일 작성
비즈니스 로직에서 사용 예시
마지막 업데이트