Commit ca0b053c5c

ca0b053c5c58be2be63308705f16dca0b0aab417

parent: 6fa43a3d81

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-25 23:53 UTC

iOS: plural variants in the string catalog: orgstar+ prices

The monthly and yearly prices use the catalog's "%@ / month" and
"%@ / year", as the Mac's store view does, instead of English suffixes.

Ref #224

Layout: unified · split

Sources/OrgstarMobile/ProScreen.swift +6 −5 · view
@@ -124,7 +124,7 @@ struct ProScreen: View {
124124 detail(product).font(.subheadline).foregroundStyle(.secondary)
125125 }
126126 Spacer()
127 Text(product.displayPrice + period(product))
127 Text(price(product))
128128 .font(.headline)
129129 .monospacedDigit()
130130 .foregroundStyle(Color.accentColor)
@@ -159,11 +159,12 @@ struct ProScreen: View {
159159 }
160160 }
161161
162 private func period(_ product: Product) -> String {
162 /// The price, and the period a subscription bills for.
163 private func price(_ product: Product) -> String {
163164 switch product.subscription?.subscriptionPeriod.unit {
164 case .month: " / month"
165 case .year: " / year"
166 default: ""
165 case .month: String(localized: "\(product.displayPrice) / month")
166 case .year: String(localized: "\(product.displayPrice) / year")
167 default: product.displayPrice
167168 }
168169 }
169170}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form