From ee4b7c9a798e5ad8a440ac8b157dde05287ebdc3 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 19 Dec 2025 18:53:24 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=80=EC=83=89=20=EC=9E=85=EB=A0=A5=20?= =?UTF-8?q?=ED=94=8C=EB=A0=88=EC=9D=B4=EC=8A=A4=ED=99=80=EB=8D=94=20?= =?UTF-8?q?=ED=98=84=EC=A7=80=ED=99=94=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/CustomView/FocusedTextField.swift | 2 +- SodaLive/Sources/I18n/I18n.swift | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/SodaLive/Sources/CustomView/FocusedTextField.swift b/SodaLive/Sources/CustomView/FocusedTextField.swift index 6a8c618..01d205b 100644 --- a/SodaLive/Sources/CustomView/FocusedTextField.swift +++ b/SodaLive/Sources/CustomView/FocusedTextField.swift @@ -37,7 +37,7 @@ struct FocusedTextField: UIViewRepresentable { textField.autocapitalizationType = .none textField.autocorrectionType = .no - let placeholder = "검색어를 2글자 이상 입력하세요" + let placeholder = I18n.Search.placeholderMin2 textField.placeholder = placeholder textField.attributedPlaceholder = NSAttributedString( string: placeholder, diff --git a/SodaLive/Sources/I18n/I18n.swift b/SodaLive/Sources/I18n/I18n.swift index db0c647..2707a46 100644 --- a/SodaLive/Sources/I18n/I18n.swift +++ b/SodaLive/Sources/I18n/I18n.swift @@ -11,6 +11,17 @@ import Foundation // String Catalog를 사용하지 않는 컨텍스트에서 사용할 하드코딩 맵 기반 i18n. // 기준 언어 선택은 LanguageHeaderProvider.current("ko"|"en"|"ja"). enum I18n { + // 검색 관련 문자열 + enum Search { + // 검색 입력 플레이스홀더: 2글자 이상 안내 + static var placeholderMin2: String { + pick( + ko: "검색어를 2글자 이상 입력하세요", + en: "Enter at least 2 characters", + ja: "2文字以上で入力してください" + ) + } + } enum ContentDetail { static var creatorOtherContents: String { pick(