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

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

View File

@@ -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,

View File

@@ -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(