Appearance
다국어 지원
YouViCo API는 Accept-Language 헤더로 응답 언어를 결정해요.
Accept-Language 헤더
http
Accept-Language: ko지원 언어는 ko, en, ja예요.
지원하지 않는 언어이거나 헤더가 없으면 en을 기본 언어로 사용해요.
적용 범위
에러 메시지와 이메일, 초대 메시지처럼 서버에서 문구를 생성하는 기능에 언어가 적용돼요.
code 같은 식별자는 언어와 관계없이 동일하게 유지돼요.
bash
curl -X POST 'https://api.youvico.com/auth/provider.local/sign-up.verification' \
-H 'Accept-Language: ko' \
-H 'Content-Type: application/json' \
-d '{
"email": "user@example.com"
}'