krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

Commit 2d97f6396e

2d97f6396ef0db662d55ed2c6f26505ba2e8b537

parent: f32a37f048

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-02 03:19 UTC

Format the daily summary planet list with ListFormatStyle

ListFormatter is not in swift-corelibs-foundation. ListFormatStyle is
available on every platform and takes the summary's locale, like the
time format next to it.

Layout: unified · split

Packages/MoonriseKit/Sources/SkyEngine/DailySummary.swift +1 −1
@@ -41,7 +41,7 @@ public struct DailySummary: Sendable, Equatable {
4141 if planets.isEmpty {
4242 lines.append("No bright planets above 10° tonight.")
4343 } else {
44 lines.append("Up tonight: \(ListFormatter.localizedString(byJoining: planets)).")
44 lines.append("Up tonight: \(planets.formatted(.list(type: .and).locale(locale))).")
4545 }
4646
4747 if let pass = passes