// The sentences the three ChatFind screens say in THREE OR MORE places — // `/messages/search`, `/messages/starred` and `/messages/import`. // // Copy lives at its call site. A sentence earns a place here only by being said // in three places or more, where two spellings of one fact would be the drift // this file exists to prevent; everything a screen says once or twice is a // literal where it is read. "Search" and "Try again" are said across several // lanes, so both live once in `Strings.swift` rather than twice here. // // Taken VERBATIM from the `.tsx` each one ports, so the catalogue keys are the // sentences the Expo app already shipped and nothing reads differently after // the cutover. The two the unreadable state needs are the exception and are // marked as such: the Expo screens have no "the read refused" state at all — // TanStack retried behind them, and the model here has a `failed` flag that // must say something honest. // // Every symbol here is prefixed `chat…` so it can never collide with another // lane's. import Foundation extension CottonStrings { // ── Both lists ──────────────────────────────────────────────────────── /// The read refused and there is nothing to show. NOT an Expo sentence: /// those screens draw their empty state on a failure, which says "nothing /// starred yet" over a read that never answered. // ── What one line of a chat SAYS in a list ──────────────────────────── // // `crates/cotton-core/src/messages/preview.rs` (and the server's own copy, // `crates/cotton-server/src/messages/preview.rs`) holds these as plain // English rather than as catalogue entries, because neither side has a // catalogue. Up here they go through the catalogue like every // other sentence — same words, one place. public static var chatMediaPhoto: String { ShellLines.line("words", "chat_media_photo") } public static var chatMediaVideo: String { ShellLines.line("words", "chat_media_video") } public static var chatMediaAudio: String { ShellLines.line("words", "chat_media_audio") } public static var chatMediaDocument: String { ShellLines.line("words", "chat_media_document") } }