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(