Skip to content

Commit 69acbba

Browse files
committed
feat: '업데이트' 어순을 언어에 맞게 수정
1 parent e3d739c commit 69acbba

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

DevLog/Resource/Localizable.xcstrings

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,23 @@
16401640
}
16411641
}
16421642
},
1643+
"relative_time_updated_format" : {
1644+
"extractionState" : "manual",
1645+
"localizations" : {
1646+
"en" : {
1647+
"stringUnit" : {
1648+
"state" : "translated",
1649+
"value" : "Updated %1$@"
1650+
}
1651+
},
1652+
"ko" : {
1653+
"stringUnit" : {
1654+
"state" : "translated",
1655+
"value" : "%1$@ 업데이트"
1656+
}
1657+
}
1658+
}
1659+
},
16431660
"root_network_disconnected_message" : {
16441661
"extractionState" : "manual",
16451662
"localizations" : {

DevLog/UI/Common/Component/RelativeTimeText.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ struct RelativeTimeText: View {
1414

1515
var body: some View {
1616
TimelineView(.periodic(from: .now, by: 1.0)) { context in
17-
Text(relativeTimeText(from: date, now: context.date) + String(localized: "relative_time_updated_suffix"))
17+
Text(
18+
String.localizedStringWithFormat(
19+
String(localized: "relative_time_updated_format"),
20+
relativeTimeText(from: date, now: context.date)
21+
)
22+
)
1823
.font(bodyFont)
1924
.foregroundStyle(bodyColor)
2025
}

0 commit comments

Comments
 (0)