탐색 커뮤니티 다국어 메시지 분리
This commit is contained in:
@@ -988,6 +988,159 @@ class SodaMessageSource {
|
||||
)
|
||||
)
|
||||
|
||||
private val explorerSectionMessages = mapOf(
|
||||
"explorer.section.creator_rank.title" to mapOf(
|
||||
Lang.KO to "인기 크리에이터",
|
||||
Lang.EN to "Top creators",
|
||||
Lang.JA to "人気クリエイター"
|
||||
),
|
||||
"explorer.section.creator_rank.colored_title" to mapOf(
|
||||
Lang.KO to "인기",
|
||||
Lang.EN to "Top",
|
||||
Lang.JA to "人気"
|
||||
),
|
||||
"explorer.section.new_creators.title" to mapOf(
|
||||
Lang.KO to "새로 시작",
|
||||
Lang.EN to "New creators",
|
||||
Lang.JA to "新規クリエイター"
|
||||
),
|
||||
"explorer.section.new_creators.colored_title" to mapOf(
|
||||
Lang.KO to "새로",
|
||||
Lang.EN to "New",
|
||||
Lang.JA to "新規"
|
||||
),
|
||||
"explorer.section.male_creators.title" to mapOf(
|
||||
Lang.KO to "남자 크리에이터",
|
||||
Lang.EN to "Male creators",
|
||||
Lang.JA to "男性クリエイター"
|
||||
),
|
||||
"explorer.section.male_creators.colored_title" to mapOf(
|
||||
Lang.KO to "남자",
|
||||
Lang.EN to "Male",
|
||||
Lang.JA to "男性"
|
||||
),
|
||||
"explorer.section.female_creators.title" to mapOf(
|
||||
Lang.KO to "여자 크리에이터",
|
||||
Lang.EN to "Female creators",
|
||||
Lang.JA to "女性クリエイター"
|
||||
),
|
||||
"explorer.section.female_creators.colored_title" to mapOf(
|
||||
Lang.KO to "여자",
|
||||
Lang.EN to "Female",
|
||||
Lang.JA to "女性"
|
||||
)
|
||||
)
|
||||
|
||||
private val explorerDateMessages = mapOf(
|
||||
"explorer.date.creator_rank.start_format" to mapOf(
|
||||
Lang.KO to "yyyy년 MM월 dd일",
|
||||
Lang.EN to "MMM dd, yyyy",
|
||||
Lang.JA to "yyyy年MM月dd日"
|
||||
),
|
||||
"explorer.date.creator_rank.end_format" to mapOf(
|
||||
Lang.KO to "MM월 dd일",
|
||||
Lang.EN to "MMM dd",
|
||||
Lang.JA to "MM月dd日"
|
||||
),
|
||||
"explorer.date.live_room.datetime_format" to mapOf(
|
||||
Lang.KO to "yyyy년 MM월 dd일 (E) a hh시 mm분",
|
||||
Lang.EN to "EEE, MMM dd, yyyy h:mm a",
|
||||
Lang.JA to "yyyy年MM月dd日(E) a hh時 mm分"
|
||||
),
|
||||
"explorer.date.cheers.format" to mapOf(
|
||||
Lang.KO to "yyyy.MM.dd E hh:mm a",
|
||||
Lang.EN to "MMM dd, yyyy E hh:mm a",
|
||||
Lang.JA to "yyyy.MM.dd E hh:mm a"
|
||||
)
|
||||
)
|
||||
|
||||
private val explorerResponseMessages = mapOf(
|
||||
"explorer.cheers.created" to mapOf(
|
||||
Lang.KO to "등록되었습니다.",
|
||||
Lang.EN to "Registered.",
|
||||
Lang.JA to "登録されました。"
|
||||
),
|
||||
"explorer.cheers.updated" to mapOf(
|
||||
Lang.KO to "수정되었습니다.",
|
||||
Lang.EN to "Updated.",
|
||||
Lang.JA to "更新されました。"
|
||||
),
|
||||
"explorer.notice.saved" to mapOf(
|
||||
Lang.KO to "공지사항이 저장되었습니다.",
|
||||
Lang.EN to "Notice has been saved.",
|
||||
Lang.JA to "お知らせが保存されました。"
|
||||
),
|
||||
"explorer.notice.fcm.message" to mapOf(
|
||||
Lang.KO to "새 글이 등록되었습니다.",
|
||||
Lang.EN to "A new post has been added.",
|
||||
Lang.JA to "新しい投稿が登録されました。"
|
||||
)
|
||||
)
|
||||
|
||||
private val explorerValidationMessages = mapOf(
|
||||
"explorer.search.channel.min_length" to mapOf(
|
||||
Lang.KO to "두 글자 이상 입력 하셔야 합니다.",
|
||||
Lang.EN to "Please enter at least 2 characters.",
|
||||
Lang.JA to "2文字以上入力してください。"
|
||||
)
|
||||
)
|
||||
|
||||
private val explorerAccessMessages = mapOf(
|
||||
"explorer.creator.blocked_access" to mapOf(
|
||||
Lang.KO to "%s님의 요청으로 채널 접근이 제한됩니다.",
|
||||
Lang.EN to "Channel access is restricted at %s's request.",
|
||||
Lang.JA to "%sさんの要請によりチャンネルへのアクセスが制限されています。"
|
||||
),
|
||||
"explorer.creator.blocked_cheers" to mapOf(
|
||||
Lang.KO to "%s님의 요청으로 팬토크 작성이 제한됩니다.",
|
||||
Lang.EN to "Fan talk posting is restricted at %s's request.",
|
||||
Lang.JA to "%sさんの要請によりファントークの投稿が制限されています。"
|
||||
)
|
||||
)
|
||||
|
||||
private val creatorCommunityMessages = mapOf(
|
||||
"creator.community.paid_post_image_required" to mapOf(
|
||||
Lang.KO to "유료 게시글 등록을 위해서는 이미지가 필요합니다.",
|
||||
Lang.EN to "An image is required to post paid content.",
|
||||
Lang.JA to "有料投稿を登録するには画像が必要です。"
|
||||
),
|
||||
"creator.community.audio_post_image_required" to mapOf(
|
||||
Lang.KO to "오디오 등록을 위해서는 이미지가 필요합니다.",
|
||||
Lang.EN to "An image is required to upload audio.",
|
||||
Lang.JA to "オーディオを登録するには画像が必要です。"
|
||||
),
|
||||
"creator.community.fcm.new_post" to mapOf(
|
||||
Lang.KO to "새 글이 등록되었습니다.",
|
||||
Lang.EN to "A new post has been added.",
|
||||
Lang.JA to "新しい投稿が登録されました。"
|
||||
),
|
||||
"creator.community.invalid_request_retry" to mapOf(
|
||||
Lang.KO to "잘못된 요청입니다.\n다시 시도해 주세요.",
|
||||
Lang.EN to "Invalid request.\nPlease try again.",
|
||||
Lang.JA to "不正なリクエストです。\nもう一度お試しください。"
|
||||
),
|
||||
"creator.community.invalid_post_retry" to mapOf(
|
||||
Lang.KO to "잘못된 게시물 입니다.\n다시 시도해 주세요.",
|
||||
Lang.EN to "Invalid post.\nPlease try again.",
|
||||
Lang.JA to "不正な投稿です。\nもう一度お試しください。"
|
||||
),
|
||||
"creator.community.secret_comment_purchase_required" to mapOf(
|
||||
Lang.KO to "게시글을 구매 후 비밀댓글을 등록할 수 있습니다.",
|
||||
Lang.EN to "You can post a secret comment after purchasing the post.",
|
||||
Lang.JA to "投稿を購入した後に秘密コメントを登録できます。"
|
||||
),
|
||||
"creator.community.invalid_access_retry" to mapOf(
|
||||
Lang.KO to "잘못된 접근 입니다.\n확인 후 다시 시도해 주세요.",
|
||||
Lang.EN to "Invalid access.\nPlease check and try again.",
|
||||
Lang.JA to "不正なアクセスです。\n確認して再度お試しください。"
|
||||
),
|
||||
"creator.community.blocked_access" to mapOf(
|
||||
Lang.KO to "%s님의 요청으로 접근이 제한됩니다.",
|
||||
Lang.EN to "Access is restricted at %s's request.",
|
||||
Lang.JA to "%sさんの要請によりアクセスが制限されています。"
|
||||
)
|
||||
)
|
||||
|
||||
fun getMessage(key: String, lang: Lang): String? {
|
||||
val messageGroups = listOf(
|
||||
commonMessages,
|
||||
@@ -1026,7 +1179,13 @@ class SodaMessageSource {
|
||||
liveRoomMessages,
|
||||
liveRoomMenuMessages,
|
||||
memberProviderMessages,
|
||||
memberGenderMessages
|
||||
memberGenderMessages,
|
||||
explorerSectionMessages,
|
||||
explorerDateMessages,
|
||||
explorerResponseMessages,
|
||||
explorerValidationMessages,
|
||||
explorerAccessMessages,
|
||||
creatorCommunityMessages
|
||||
)
|
||||
for (messages in messageGroups) {
|
||||
val translations = messages[key] ?: continue
|
||||
|
||||
Reference in New Issue
Block a user