검색 입력 플레이스홀더 현지화 추가

This commit is contained in:
Yu Sung
2025-12-19 18:53:24 +09:00
parent 321d97bf4d
commit ee4b7c9a79
2 changed files with 12 additions and 1 deletions
@@ -37,7 +37,7 @@ struct FocusedTextField: UIViewRepresentable {
textField.autocapitalizationType = .none textField.autocapitalizationType = .none
textField.autocorrectionType = .no textField.autocorrectionType = .no
let placeholder = "검색어를 2글자 이상 입력하세요" let placeholder = I18n.Search.placeholderMin2
textField.placeholder = placeholder textField.placeholder = placeholder
textField.attributedPlaceholder = NSAttributedString( textField.attributedPlaceholder = NSAttributedString(
string: placeholder, string: placeholder,
+11
View File
@@ -11,6 +11,17 @@ import Foundation
// String Catalog를 사용하지 않는 컨텍스트에서 사용할 하드코딩 맵 기반 i18n. // String Catalog를 사용하지 않는 컨텍스트에서 사용할 하드코딩 맵 기반 i18n.
// 기준 언어 선택은 LanguageHeaderProvider.current("ko"|"en"|"ja"). // 기준 언어 선택은 LanguageHeaderProvider.current("ko"|"en"|"ja").
enum I18n { enum I18n {
// 검색 관련 문자열
enum Search {
// 검색 입력 플레이스홀더: 2글자 이상 안내
static var placeholderMin2: String {
pick(
ko: "검색어를 2글자 이상 입력하세요",
en: "Enter at least 2 characters",
ja: "2文字以上で入力してください"
)
}
}
enum ContentDetail { enum ContentDetail {
static var creatorOtherContents: String { static var creatorOtherContents: String {
pick( pick(