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 {
124 detail(product).font(.subheadline).foregroundStyle(.secondary) 124 detail(product).font(.subheadline).foregroundStyle(.secondary)
125 } 125 }
126 Spacer() 126 Spacer()
127 Text(product.displayPrice + period(product)) 127 Text(price(product))
128 .font(.headline) 128 .font(.headline)
129 .monospacedDigit() 129 .monospacedDigit()
130 .foregroundStyle(Color.accentColor) 130 .foregroundStyle(Color.accentColor)
@@ -159,11 +159,12 @@ struct ProScreen: View {
159 } 159 }
160 } 160 }
161 161
162 private func period(_ product: Product) -> String { 162 /// The price, and the period a subscription bills for.
163 private func price(_ product: Product) -> String {
163 switch product.subscription?.subscriptionPeriod.unit { 164 switch product.subscription?.subscriptionPeriod.unit {
164 case .month: " / month" 165 case .month: String(localized: "\(product.displayPrice) / month")
165 case .year: " / year" 166 case .year: String(localized: "\(product.displayPrice) / year")
166 default: "" 167 default: product.displayPrice
167 } 168 }
168 } 169 }
169} 170}
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