-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathAppConstants.swift
44 lines (37 loc) · 2.15 KB
/
AppConstants.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import Foundation
import WordPressKit
/// - Warning:
/// This configuration class has a **Jetpack** counterpart in the Jetpack bundle.
/// Make sure to keep them in sync to avoid build errors when building the Jetpack target.
@objc class AppConstants: NSObject {
static let productTwitterHandle = "@WordPressiOS"
static let productTwitterURL = "https://twitter.com/WordPressiOS"
static let productBlogURL = "https://wordpress.org/news/"
static let productBlogDisplayURL = "wordpress.org/news"
static let zendeskSourcePlatform = "mobile_-_ios"
static let shareAppName: ShareAppName = .wordpress
static let mobileAnnounceAppId = "2"
@objc static let authKeychainServiceName = "public-api.wordpress.com"
}
// MARK: - Localized Strings
extension AppConstants {
struct AboutScreen {
static let blogName = NSLocalizedString("News", comment: "Title of a button that displays the WordPress.org blog")
static let workWithUs = NSLocalizedString("Contribute", comment: "Title of button that displays the WordPress.org contributor page")
static let workWithUsURL = "https://make.wordpress.org/mobile/handbook"
}
struct AppRatings {
static let prompt = NSLocalizedString("appRatings.wordpress.prompt", value: "What do you think about WordPress?", comment: "This is the string we display when prompting the user to review the WordPress app")
}
struct Settings {
static let aboutTitle: String = NSLocalizedString("About WordPress", comment: "Link to About screen for WordPress for iOS")
static let shareButtonTitle = NSLocalizedString("Share WordPress with a friend", comment: "Title for a button that recommends the app to others")
static let whatIsNewTitle = NSLocalizedString("What's New in WordPress", comment: "Opens the What's New / Feature Announcement modal")
}
struct Logout {
static let alertTitle = NSLocalizedString("Log out of WordPress?", comment: "LogOut confirmation text, whenever there are no local changes")
}
struct Zendesk {
static let ticketSubject = NSLocalizedString("WordPress for iOS Support", comment: "Subject of new Zendesk ticket.")
}
}