Fix remaining manual-plural i18n anti-patterns app-wide

Three pre-existing spots used count == 1 ? "" : "s" instead of the
inflect syntax CLAUDE.md documents: GitSyncManualFixSheet's step()
helper (also switched String -> LocalizedStringKey, another documented
anti-pattern), PaperlessService.testConnection(), and
AnytypeMCPService.testConnection().
This commit is contained in:
2026-08-26 12:59:42 +02:00
parent aaeaeddafb
commit ae29240d75
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ class AnytypeMCPService {
let result = try await request(endpoint: "/v1/spaces", method: "GET", body: nil)
if let spaces = result["data"] as? [[String: Any]] {
isConnected = true
return .success("Connected (\(spaces.count) space\(spaces.count == 1 ? "" : "s"))")
return .success(String(localized: "Connected (^[\(spaces.count) space](inflect: true))"))
} else {
isConnected = true
return .success("Connected to Anytype")