검색 입력 플레이스홀더 현지화 추가
This commit is contained in:
@@ -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,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(
|
||||||
|
|||||||
Reference in New Issue
Block a user