Russian UI: settings, notch views, agent steps, errors; visible success after installing hooks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -35,9 +35,9 @@ final class NotionPoller: @unchecked Sendable {
|
||||
let code = (response as? HTTPURLResponse)?.statusCode ?? 0
|
||||
if code != 200 {
|
||||
let msg: String
|
||||
if code == 401 { msg = "Invalid API key (401)" }
|
||||
else if code == 0 { msg = error?.localizedDescription ?? "No connection" }
|
||||
else { msg = "API error \(code)" }
|
||||
if code == 401 { msg = "Неверный API-ключ (401)" }
|
||||
else if code == 0 { msg = error?.localizedDescription ?? "Нет соединения" }
|
||||
else { msg = "Ошибка API \(code)" }
|
||||
DispatchQueue.main.async { AppState.shared.notionError = msg }
|
||||
return
|
||||
}
|
||||
@@ -58,7 +58,7 @@ final class NotionPoller: @unchecked Sendable {
|
||||
guard let id = obj["id"] as? String else { return nil }
|
||||
let objType = obj["object"] as? String ?? "page"
|
||||
|
||||
var title = "Untitled"
|
||||
var title = "Без названия"
|
||||
if objType == "database" {
|
||||
if let arr = obj["title"] as? [[String: Any]],
|
||||
let text = arr.first?["plain_text"] as? String, !text.isEmpty {
|
||||
|
||||
Reference in New Issue
Block a user