Skip to content

Commit

Permalink
feat: 오류 메세지 보정
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Jan 30, 2024
1 parent 550ec93 commit 0cc83f8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ fun Resources.getErrorMessage(errorCode: String?): String {
"CM0002" -> getString(R.string.server_invalid_input)
"PO0001" -> getString(R.string.server_not_uploadable_time)
"PO0002" -> getString(R.string.server_already_uploaded)
else -> getString(R.string.server_unknown_error)
"AU0002" -> getString(R.string.server_no_permission)
"MB0001" -> getString(R.string.server_member_not_found)
"FM0002" -> getString(R.string.server_already_in_family)
"FM0001" -> getString(R.string.server_family_not_found)
"DL0001" -> getString(R.string.server_link_not_valid)
else -> getString(R.string.server_unknown_error, errorCode ?: "UN0001")
}
}
9 changes: 8 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,16 @@
<string name="snack_bar_alreday_accepted">이미 권한을 허용했어요</string>

<string name="server_already_uploaded">이미 오늘 게시물을 업로드했어요</string>
<string name="server_no_permission">그 작업을 할 권한이 없어요</string>
<string name="server_not_uploadable_time">업로드할 수 없는 시간이에요</string>
<string name="server_unknown_error">알 수 없는 오류가 발생했어요</string>
<string name="server_unknown_error">알 수 없는 오류가 발생했어요 (%1$s)</string>
<string name="server_invalid_input">입력값이 올바르지 않아요</string>
<string name="server_member_not_found">사용자 정보를 찾을 수 없어요</string>
<string name="server_post_not_found">게시물을 찾을 수 없어요</string>
<string name="server_already_in_family">이미 가족에 속해있어요</string>
<string name="server_family_not_found">가족을 찾을 수 없어요</string>
<string name="server_link_not_valid">유효하지 않은 링크에요</string>

<string name="calendar">추억 캘린더</string>
<string name="year">년</string>
<string name="month">월</string>
Expand Down

0 comments on commit 0cc83f8

Please sign in to comment.