Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 06b51ab

Browse files
committed
Внесены мелкие правки
1 parent fe64060 commit 06b51ab

File tree

2 files changed

+63
-2
lines changed

2 files changed

+63
-2
lines changed

Yandex Music/AppDelegate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ import FirebaseCore
8181

8282
guard
8383
let path = Bundle.main.path(forResource: "GoogleService-Info", ofType: "plist"),
84-
let existingKeys = NSDictionary(contentsOfFile: path)?.allKeys.compactMap({ $0 as? String }),
85-
secretDataKeys.allSatisfy({ existingKeys.contains($0) })
84+
let availableKeys = NSDictionary(contentsOfFile: path)?.allKeys.compactMap({ $0 as? String }),
85+
secretDataKeys.allSatisfy({ availableKeys.contains($0) })
8686
else {
8787
return
8888
}

Yandex Music/Framework/LocalizedString.swift

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,67 @@ enum LocalizedString {
5050
}
5151
}
5252

53+
enum MainMenu {
54+
55+
static let app = NSLocalizedString("MainMenu.App", comment: "")
56+
57+
enum App {
58+
59+
static let about = NSLocalizedString("MainMenu.App.About", comment: "")
60+
static let preferences = NSLocalizedString("MainMenu.App.Preferences", comment: "")
61+
static let services = NSLocalizedString("MainMenu.App.Services", comment: "")
62+
static let hide = NSLocalizedString("MainMenu.App.Hide", comment: "")
63+
static let hideOthers = NSLocalizedString("MainMenu.App.HideOthers", comment: "")
64+
static let showAll = NSLocalizedString("MainMenu.App.ShowAll", comment: "")
65+
static let quit = NSLocalizedString("MainMenu.App.Quit", comment: "")
66+
67+
}
68+
69+
static let edit = NSLocalizedString("MainMenu.Edit", comment: "")
70+
71+
enum Edit {
72+
73+
static let undo = NSLocalizedString("MainMenu.Edit.Undo", comment: "")
74+
static let redo = NSLocalizedString("MainMenu.Edit.Redo", comment: "")
75+
static let cut = NSLocalizedString("MainMenu.Edit.Cut", comment: "")
76+
static let copy = NSLocalizedString("MainMenu.Edit.Copy", comment: "")
77+
static let paste = NSLocalizedString("MainMenu.Edit.Paste", comment: "")
78+
static let delete = NSLocalizedString("MainMenu.Edit.Delete", comment: "")
79+
static let selectAll = NSLocalizedString("MainMenu.Edit.SelectAll", comment: "")
80+
81+
}
82+
83+
static let view = NSLocalizedString("MainMenu.View", comment: "")
84+
85+
enum View {
86+
87+
static let back = NSLocalizedString("MainMenu.View.Back", comment: "")
88+
static let forward = NSLocalizedString("MainMenu.View.Forward", comment: "")
89+
static let home = NSLocalizedString("MainMenu.View.Home", comment: "")
90+
static let reloadPage = NSLocalizedString("MainMenu.View.ReloadPage", comment: "")
91+
static let enterFullScreen = NSLocalizedString("MainMenu.View.EnterFullScreen", comment: "")
92+
93+
}
94+
95+
static let window = NSLocalizedString("MainMenu.Window", comment: "")
96+
97+
enum Window {
98+
99+
static let close = NSLocalizedString("MainMenu.Window.Close", comment: "")
100+
static let minimize = NSLocalizedString("MainMenu.Window.Minimize", comment: "")
101+
static let zoom = NSLocalizedString("MainMenu.Window.Zoom", comment: "")
102+
static let bringAllToFront = NSLocalizedString("MainMenu.Window.BringAllToFront", comment: "")
103+
104+
}
105+
106+
static let help = NSLocalizedString("MainMenu.Help", comment: "")
107+
108+
enum Help {
109+
static let codeRepository = NSLocalizedString("MainMenu.Help.CodeRepository", comment: "")
110+
}
111+
112+
}
113+
53114
enum DockMenu {
54115

55116
static let playPause = NSLocalizedString("DockMenu.PlayPause", comment: "")

0 commit comments

Comments
 (0)