fix(gift): 선물 상세 라벨을 보정한다

This commit is contained in:
2026-10-08 15:57:57 +09:00
parent e67f9f960a
commit 27e94dcdbe
5 changed files with 15 additions and 8 deletions
@@ -273,12 +273,19 @@ class GiftDetailViewModelTest {
setLocale(Locale.KOREAN)
}
)
listOf(Locale.KOREAN, Locale.ENGLISH, Locale.JAPANESE).forEach { locale ->
mapOf(
Locale.KOREAN to Triple("크리에이터", "취소 완료", "받는 사서함"),
Locale.ENGLISH to Triple("Creator", "Cancellation complete", "Receiving mailbox"),
Locale.JAPANESE to Triple("クリエイター", "キャンセル完了", "受取私書箱")
).forEach { (locale, expected) ->
val localized = context.createConfigurationContext(
Configuration(context.resources.configuration).apply {
setLocale(locale)
}
)
assertEquals(expected.first, localized.getString(R.string.gift_detail_counterpart))
assertEquals(expected.second, localized.resolveGiftDetailText(GiftDetailText.Key.CANCELED_LABEL))
assertEquals(expected.third, localized.getString(R.string.gift_tracking_destination))
GiftDetailText.Key.entries.forEach { key ->
val text = localized.resolveGiftDetailText(key)
assertTrue(text.isNotBlank())