forked from baron/baron-sso
i18n 누락 정리 및 하드코딩 텍스트 치환
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
const Map<String, String> internalErrorWhitelistMessages = {
|
||||
'settings_disabled': '현재 계정 설정 화면은 준비 중입니다.',
|
||||
'invalid_session': '세션이 만료되었습니다. 다시 로그인해 주세요.',
|
||||
'verification_required': '추가 인증이 필요합니다. 안내에 따라 진행해 주세요.',
|
||||
'recovery_expired': '재설정 링크가 만료되었습니다. 다시 요청해 주세요.',
|
||||
'recovery_invalid': '재설정 링크가 유효하지 않습니다.',
|
||||
'rate_limited': '요청이 많습니다. 잠시 후 다시 시도해 주세요.',
|
||||
'not_found': '요청한 페이지를 찾을 수 없습니다.',
|
||||
'bad_request': '입력값을 확인해 주세요.',
|
||||
'password_or_email_mismatch': '이메일 혹은 비밀번호가 일치하지 않습니다.',
|
||||
'tenant_not_allowed': '허용되지 않은 테넌트입니다.',
|
||||
const Map<String, String> internalErrorWhitelistMessageKeys = {
|
||||
'settings_disabled': 'msg.userfront.error.whitelist.settings_disabled',
|
||||
'invalid_session': 'msg.userfront.error.whitelist.invalid_session',
|
||||
'verification_required': 'msg.userfront.error.whitelist.verification_required',
|
||||
'recovery_expired': 'msg.userfront.error.whitelist.recovery_expired',
|
||||
'recovery_invalid': 'msg.userfront.error.whitelist.recovery_invalid',
|
||||
'rate_limited': 'msg.userfront.error.whitelist.rate_limited',
|
||||
'not_found': 'msg.userfront.error.whitelist.not_found',
|
||||
'bad_request': 'msg.userfront.error.whitelist.bad_request',
|
||||
'password_or_email_mismatch':
|
||||
'msg.userfront.error.whitelist.password_or_email_mismatch',
|
||||
'tenant_not_allowed': 'msg.userfront.error.whitelist.tenant_not_allowed',
|
||||
};
|
||||
|
||||
const Set<String> oryBypassErrorCodes = {
|
||||
|
||||
@@ -65,7 +65,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.password_policy_fetch',
|
||||
'비밀번호 정책을 불러오지 못했습니다.',
|
||||
'Failed to load the password policy.',
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -84,7 +84,7 @@ class AuthProxyService {
|
||||
}
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.profile_load',
|
||||
'프로필을 불러오지 못했습니다: {{error}}',
|
||||
'Failed to load the profile: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
} finally {
|
||||
@@ -110,7 +110,7 @@ class AuthProxyService {
|
||||
}
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.profile_load',
|
||||
'프로필을 불러오지 못했습니다: {{error}}',
|
||||
'Failed to load the profile: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
} finally {
|
||||
@@ -144,7 +144,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.tenant_info_fetch',
|
||||
'테넌트 정보를 불러오지 못했습니다.',
|
||||
'Failed to load tenant information.',
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -180,7 +180,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.login_init',
|
||||
'로그인 초기화에 실패했습니다: {{error}}',
|
||||
'Failed to initialize login: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -205,7 +205,7 @@ class AuthProxyService {
|
||||
}
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.login_poll',
|
||||
'로그인 상태 확인에 실패했습니다: {{error}}',
|
||||
'Failed to check login status: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -227,7 +227,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.verify_failed',
|
||||
'검증에 실패했습니다: {{error}}',
|
||||
'Verification failed: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -261,7 +261,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.verify_failed',
|
||||
'검증에 실패했습니다: {{error}}',
|
||||
'Verification failed: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -281,7 +281,7 @@ class AuthProxyService {
|
||||
if (response.statusCode != 200) {
|
||||
throw _error(
|
||||
'err.userfront.dashboard.sessions.revoke',
|
||||
'세션 종료에 실패했습니다: {{error}}',
|
||||
'Failed to revoke the session: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -304,7 +304,7 @@ class AuthProxyService {
|
||||
if (response.statusCode != 200) {
|
||||
throw _error(
|
||||
'err.userfront.dashboard.sessions.load',
|
||||
'활성 세션을 불러오지 못했습니다: {{error}}',
|
||||
'Failed to load the active sessions: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -342,7 +342,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.verify_failed',
|
||||
'검증에 실패했습니다: {{error}}',
|
||||
'Verification failed: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -568,7 +568,7 @@ class AuthProxyService {
|
||||
if (response.statusCode != 200) {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.sms_send',
|
||||
'SMS 전송에 실패했습니다: {{error}}',
|
||||
'Failed to send SMS: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -591,7 +591,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.code_verify',
|
||||
'인증 코드 확인에 실패했습니다: {{error}}',
|
||||
'Failed to verify the code: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -609,7 +609,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.qr_init',
|
||||
'QR 로그인을 시작하지 못했습니다: {{error}}',
|
||||
'Failed to start QR login: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -631,7 +631,7 @@ class AuthProxyService {
|
||||
}
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.qr_poll',
|
||||
'QR 상태 확인에 실패했습니다: {{error}}',
|
||||
'Failed to check QR status: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -669,7 +669,7 @@ class AuthProxyService {
|
||||
if (response.statusCode != 200) {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.qr_approve',
|
||||
'QR 승인에 실패했습니다: {{error}}',
|
||||
'Failed to approve QR login: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -720,7 +720,7 @@ class AuthProxyService {
|
||||
if (response.statusCode != 200) {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.user_create',
|
||||
'사용자 생성에 실패했습니다: {{error}}',
|
||||
'Failed to create the user: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -749,7 +749,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.user_list',
|
||||
'사용자 목록 조회에 실패했습니다: {{error}}',
|
||||
'Failed to load the user list: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -770,7 +770,7 @@ class AuthProxyService {
|
||||
if (response.statusCode != 200) {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.user_delete',
|
||||
'사용자 삭제에 실패했습니다: {{error}}',
|
||||
'Failed to delete the user: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -796,7 +796,7 @@ class AuthProxyService {
|
||||
if (response.statusCode != 200) {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.user_status_update',
|
||||
'상태 업데이트에 실패했습니다: {{error}}',
|
||||
'Failed to update the user status: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -829,7 +829,7 @@ class AuthProxyService {
|
||||
if (response.statusCode != 200) {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.user_update',
|
||||
'사용자 수정에 실패했습니다: {{error}}',
|
||||
'Failed to update the user: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
@@ -855,7 +855,7 @@ class AuthProxyService {
|
||||
} else {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.linked_apps_load',
|
||||
'연동된 앱 목록을 불러오지 못했습니다.',
|
||||
'Failed to load linked applications.',
|
||||
);
|
||||
}
|
||||
} finally {
|
||||
@@ -1043,7 +1043,7 @@ class AuthProxyService {
|
||||
if (response.statusCode != 200) {
|
||||
throw _error(
|
||||
'err.userfront.auth_proxy.phone_code_send',
|
||||
'인증 코드 전송에 실패했습니다: {{error}}',
|
||||
'Failed to send the verification code: {{error}}',
|
||||
detail: response.body,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user