Skip to content

Commit

Permalink
🌐 Shorten Japanese and English translation of product count label
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteHyun committed May 20, 2024
1 parent 0e7f736 commit 6e21126
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 48 deletions.
63 changes: 16 additions & 47 deletions PyeonHaeng-iOS/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@
}
}
},
"%lld products total!" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "合計%lld商品"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "총 %lld개의 상품이 있어요!"
}
}
}
},
"• 검색어의 단어 수를 줄이거나," : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -868,53 +884,6 @@
}
}
},
"총 %lld개의 상품이 있어요!" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"variations" : {
"plural" : {
"one" : {
"stringUnit" : {
"state" : "translated",
"value" : "There is a total of %lld product!"
}
},
"other" : {
"stringUnit" : {
"state" : "translated",
"value" : "There are a total of %lld product!"
}
}
}
}
},
"ja" : {
"variations" : {
"plural" : {
"other" : {
"stringUnit" : {
"state" : "translated",
"value" : "合計%lld個の商品があります!"
}
}
}
}
},
"ko" : {
"variations" : {
"plural" : {
"other" : {
"stringUnit" : {
"state" : "translated",
"value" : "총 %lld개의 상품이 있어요!"
}
}
}
}
}
}
},
"편의점 브랜드 선택" : {
"localizations" : {
"en" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct HomeProductSorterView<ViewModel>: View where ViewModel: HomeViewModelRepr

private extension HomeProductSorterView {
var productCountString: AttributedString {
var string = AttributedString(localized: "\(viewModel.state.totalCount)개의 상품이 있어요!")
var string = AttributedString(localized: "\(viewModel.state.totalCount) products total!")

if let range = string.range(of: "\(viewModel.state.totalCount.formatted())") {
string[range].foregroundColor = .pyeonHaengPrimary
Expand Down

0 comments on commit 6e21126

Please sign in to comment.