알림/오디션 메시지 다국어 분리

알림/오디션 오류 응답 메시지를 키 기반 다국어로 분리
This commit is contained in:
2025-12-23 17:45:47 +09:00
parent 7ef654e89d
commit 58f7a8654b
10 changed files with 49 additions and 13 deletions

View File

@@ -42,6 +42,14 @@ class SodaMessageSource {
)
)
private val alarmMessages = mapOf(
"alarm.error.already_purchased" to mapOf(
Lang.KO to "이미 구매하셨습니다",
Lang.EN to "You have already purchased this",
Lang.JA to "すでに購入済みです"
)
)
private val auditionMessages = mapOf(
"admin.audition.invalid_request_retry" to mapOf(
Lang.KO to "잘못된 요청입니다.\n다시 시도해 주세요.",
@@ -114,6 +122,30 @@ class SodaMessageSource {
)
)
private val auditionClientMessages = mapOf(
"audition.error.invalid_request_retry" to mapOf(
Lang.KO to "잘못된 요청입니다.\n다시 시도해 주세요.",
Lang.EN to "Invalid request.\nPlease try again.",
Lang.JA to "不正なリクエストです。\nもう一度お試しください。"
)
)
private val auditionApplicantMessages = mapOf(
"audition.applicant.content_file_required" to mapOf(
Lang.KO to "녹음 파일을 확인해 주세요.",
Lang.EN to "Please check the recording file.",
Lang.JA to "録音ファイルを確認してください。"
)
)
private val auditionVoteMessages = mapOf(
"audition.vote.max_daily_reached" to mapOf(
Lang.KO to "오늘 응원은 여기까지!\n하루 최대 100회까지 응원이 가능합니다.\n내일 다시 이용해주세요.",
Lang.EN to "That's all for today!\nYou can vote up to 100 times per day.\nPlease try again tomorrow.",
Lang.JA to "今日はここまでです!\n1日に最大100回まで応援できます。\n明日またご利用ください。"
)
)
private val settlementRatioMessages = mapOf(
"admin.settlement_ratio.invalid_creator" to mapOf(
Lang.KO to "잘못된 크리에이터 입니다.",
@@ -1504,10 +1536,14 @@ class SodaMessageSource {
fun getMessage(key: String, lang: Lang): String? {
val messageGroups = listOf(
commonMessages,
alarmMessages,
auditionMessages,
auditionRequestMessages,
auditionNotificationMessages,
auditionRoleMessages,
auditionClientMessages,
auditionApplicantMessages,
auditionVoteMessages,
settlementRatioMessages,
adminCanMessages,
adminChatBannerMessages,