2022-12-22 10:21:57 +01:00
// s w i f t l i n t : d i s a b l e a l l
// G e n e r a t e d u s i n g S w i f t G e n — h t t p s : / / g i t h u b . c o m / S w i f t G e n / S w i f t G e n
import Foundation
// s w i f t l i n t : d i s a b l e s u p e r f l u o u s _ d i s a b l e _ c o m m a n d f i l e _ l e n g t h i m p l i c i t _ r e t u r n p r e f e r _ s e l f _ i n _ s t a t i c _ r e f e r e n c e s
// MARK: - S t r i n g s
// s w i f t l i n t : d i s a b l e e x p l i c i t _ t y p e _ i n t e r f a c e f u n c t i o n _ p a r a m e t e r _ c o u n t i d e n t i f i e r _ n a m e l i n e _ l e n g t h
// s w i f t l i n t : d i s a b l e n e s t i n g t y p e _ b o d y _ l e n g t h t y p e _ n a m e v e r t i c a l _ w h i t e s p a c e _ o p e n i n g _ b r a c e s
internal enum L10n {
2023-01-16 21:23:16 +01:00
internal enum Action {
// / C l o s e
internal static let close = L10n . tr ( " Localizable " , " Action.close " , fallback : " Close " )
// / G e n e r a l A c t i o n s
internal static let done = L10n . tr ( " Localizable " , " Action.done " , fallback : " Done " )
}
2022-12-24 21:06:28 -07:00
internal enum AddSourceView {
// / C o n t i n u e
internal static let ` continue ` = L10n . tr ( " Localizable " , " AddSourceView.continue " , fallback : " Continue " )
// / A d d S o u r c e V i e w
internal static let sourceURL = L10n . tr ( " Localizable " , " AddSourceView.sourceURL " , fallback : " Source URL " )
// / P l e a s e e n t e r t h e s o u r c e u r l h e r e . T h e n , t a p c o n t i n u e t o v a l i d a t e a n d a d d t h e s o u r c e i n t h e n e x t s t e p .
internal static let sourceWarning = L10n . tr ( " Localizable " , " AddSourceView.sourceWarning " , fallback : " Please enter the source url here. Then, tap continue to validate and add the source in the next step. " )
// / B e c a r e f u l w i t h u n v a l i d a t e d t h i r d - p a r t y s o u r c e s ! M a k e s u r e t o o n l y a d d s o u r c e s t h a t y o u t r u s t .
internal static let sourceWarningContinued = L10n . tr ( " Localizable " , " AddSourceView.sourceWarningContinued " , fallback : " Be careful with unvalidated third-party sources! Make sure to only add sources that you trust. " )
// / A d d S o u r c e
internal static let title = L10n . tr ( " Localizable " , " AddSourceView.title " , fallback : " Add Source " )
}
internal enum AppAction {
// / A c t i v a t e
internal static let activate = L10n . tr ( " Localizable " , " AppAction.activate " , fallback : " Activate " )
// / B a c k u p
internal static let backup = L10n . tr ( " Localizable " , " AppAction.backup " , fallback : " Backup " )
// / C u s t o m i z e i c o n
internal static let chooseCustomIcon = L10n . tr ( " Localizable " , " AppAction.chooseCustomIcon " , fallback : " Customize icon " )
// / D e a c t i v a t e
internal static let deactivate = L10n . tr ( " Localizable " , " AppAction.deactivate " , fallback : " Deactivate " )
// / A c t i v a t e J I T
internal static let enableJIT = L10n . tr ( " Localizable " , " AppAction.enableJIT " , fallback : " Activate JIT " )
// / E x p o r t b a c k u p
internal static let exportBackup = L10n . tr ( " Localizable " , " AppAction.exportBackup " , fallback : " Export backup " )
// / A p p A c t i o n
internal static let install = L10n . tr ( " Localizable " , " AppAction.install " , fallback : " Install " )
// / O p e n
internal static let ` open ` = L10n . tr ( " Localizable " , " AppAction.open " , fallback : " Open " )
// / R e f r e s h
internal static let refresh = L10n . tr ( " Localizable " , " AppAction.refresh " , fallback : " Refresh " )
// / R e m o v e
internal static let remove = L10n . tr ( " Localizable " , " AppAction.remove " , fallback : " Remove " )
// / R e s e t i c o n
internal static let resetIcon = L10n . tr ( " Localizable " , " AppAction.resetIcon " , fallback : " Reset icon " )
// / R e s t o r e b a c k u p
internal static let restoreBackup = L10n . tr ( " Localizable " , " AppAction.restoreBackup " , fallback : " Restore backup " )
}
internal enum AppDetailView {
2023-01-31 22:38:42 +01:00
// /
internal static let information = L10n . tr ( " Localizable " , " AppDetailView.information " , fallback : " " )
2023-01-16 21:23:16 +01:00
// / M o r e . . .
2022-12-24 21:06:28 -07:00
internal static let more = L10n . tr ( " Localizable " , " AppDetailView.more " , fallback : " More... " )
// / T h e a p p r e q u i r e s n o p e r m i s s i o n s .
internal static let noPermissions = L10n . tr ( " Localizable " , " AppDetailView.noPermissions " , fallback : " The app requires no permissions. " )
2023-01-31 22:38:42 +01:00
// / N o s c r e e n s h o t s a v a i l a b l e f o r t h i s a p p .
internal static let noScreenshots = L10n . tr ( " Localizable " , " AppDetailView.noScreenshots " , fallback : " No screenshots available for this app. " )
2022-12-24 21:06:28 -07:00
// / N o v e r s i o n i n f o r m a t i o n
internal static let noVersionInformation = L10n . tr ( " Localizable " , " AppDetailView.noVersionInformation " , fallback : " No version information " )
// / P e r m i s s i o n s
internal static let permissions = L10n . tr ( " Localizable " , " AppDetailView.permissions " , fallback : " Permissions " )
2023-01-31 22:38:42 +01:00
// / R a t i n g s & R e v i e w s
internal static let reviews = L10n . tr ( " Localizable " , " AppDetailView.reviews " , fallback : " Ratings & Reviews " )
// / V e r s i o n % @
internal static func version ( _ p1 : Any ) -> String {
return L10n . tr ( " Localizable " , " AppDetailView.version " , String ( describing : p1 ) , fallback : " Version %@ " )
}
2022-12-24 21:06:28 -07:00
// / W h a t ' s N e w
internal static let whatsNew = L10n . tr ( " Localizable " , " AppDetailView.whatsNew " , fallback : " What's New " )
2023-01-16 21:23:16 +01:00
internal enum Badge {
// / A p p D e t a i l V i e w
internal static let official = L10n . tr ( " Localizable " , " AppDetailView.Badge.official " , fallback : " Official App " )
// / F r o m T r u s t e d S o u r c e
internal static let trusted = L10n . tr ( " Localizable " , " AppDetailView.Badge.trusted " , fallback : " From Trusted Source " )
}
2023-01-31 22:38:42 +01:00
internal enum Information {
// / C o m p a t i b i l i t y
internal static let compatibility = L10n . tr ( " Localizable " , " AppDetailView.Information.compatibility " , fallback : " Compatibility " )
// / R e q u i r e s i O S % @ o r h i g h e r
internal static func compatibilityAtLeast ( _ p1 : Any ) -> String {
return L10n . tr ( " Localizable " , " AppDetailView.Information.compatibilityAtLeast " , String ( describing : p1 ) , fallback : " Requires iOS %@ or higher " )
}
// / R e q u i r e s i O S % @ o r l o w e r
internal static func compatibilityOrLower ( _ p1 : Any ) -> String {
return L10n . tr ( " Localizable " , " AppDetailView.Information.compatibilityOrLower " , String ( describing : p1 ) , fallback : " Requires iOS %@ or lower " )
}
// / U n k n o w n
internal static let compatibilityUnknown = L10n . tr ( " Localizable " , " AppDetailView.Information.compatibilityUnknown " , fallback : " Unknown " )
// / D e v e l o p e r
internal static let developer = L10n . tr ( " Localizable " , " AppDetailView.Information.developer " , fallback : " Developer " )
// / L a t e s t V e r s i o n
internal static let latestVersion = L10n . tr ( " Localizable " , " AppDetailView.Information.latestVersion " , fallback : " Latest Version " )
// / S i z e
internal static let size = L10n . tr ( " Localizable " , " AppDetailView.Information.size " , fallback : " Size " )
// / S o u r c e
internal static let source = L10n . tr ( " Localizable " , " AppDetailView.Information.source " , fallback : " Source " )
}
internal enum Reviews {
// / o u t o f % d
internal static func outOf ( _ p1 : Int ) -> String {
return L10n . tr ( " Localizable " , " AppDetailView.Reviews.outOf " , p1 , fallback : " out of %d " )
}
// / % d R a t i n g s
internal static func ratings ( _ p1 : Int ) -> String {
return L10n . tr ( " Localizable " , " AppDetailView.Reviews.ratings " , p1 , fallback : " %d Ratings " )
}
// / S e e A l l
internal static let seeAll = L10n . tr ( " Localizable " , " AppDetailView.Reviews.seeAll " , fallback : " See All " )
}
internal enum WhatsNew {
// / S h o w p r o j e c t o n G i t H u b
internal static let showOnGithub = L10n . tr ( " Localizable " , " AppDetailView.WhatsNew.showOnGithub " , fallback : " Show project on GitHub " )
// / V e r s i o n H i s t o r y
internal static let versionHistory = L10n . tr ( " Localizable " , " AppDetailView.WhatsNew.versionHistory " , fallback : " Version History " )
}
2023-01-16 21:23:16 +01:00
}
internal enum AppIDsView {
// / E a c h a p p a n d a p p e x t e n s i o n i n s t a l l e d w i t h S i d e S t o r e m u s t r e g i s t e r a n A p p I D w i t h A p p l e .
// /
// / A p p I D s f o r p a i d d e v e l o p e r a c c o u n t s n e v e r e x p i r e , a n d t h e r e i s n o l i m i t t o h o w m a n y y o u c a n c r e a t e .
internal static let description = L10n . tr ( " Localizable " , " AppIDsView.description " , fallback : " Each app and app extension installed with SideStore must register an App ID with Apple. \n \n App IDs for paid developer accounts never expire, and there is no limit to how many you can create. " )
// / A p p I D s V i e w
internal static let title = L10n . tr ( " Localizable " , " AppIDsView.title " , fallback : " App IDs " )
2022-12-24 21:06:28 -07:00
}
internal enum AppPermissionGrid {
// / A p p P e r m i s s i o n G r i d
internal static let usageDescription = L10n . tr ( " Localizable " , " AppPermissionGrid.usageDescription " , fallback : " Usage Description " )
}
internal enum AppPillButton {
// / A p p P i l l B u t t o n
internal static let free = L10n . tr ( " Localizable " , " AppPillButton.free " , fallback : " Free " )
// / O p e n
internal static let ` open ` = L10n . tr ( " Localizable " , " AppPillButton.open " , fallback : " Open " )
}
2023-01-16 21:23:16 +01:00
internal enum AppRowView {
// / A p p R o w V i e w
internal static let sideloaded = L10n . tr ( " Localizable " , " AppRowView.sideloaded " , fallback : " Sideloaded " )
}
2022-12-22 10:29:57 +01:00
internal enum BrowseView {
// / S e a r c h
internal static let search = L10n . tr ( " Localizable " , " BrowseView.search " , fallback : " Search " )
// / B r o w s e V i e w
internal static let title = L10n . tr ( " Localizable " , " BrowseView.title " , fallback : " Browse " )
internal enum Actions {
// / S o u r c e s
internal static let sources = L10n . tr ( " Localizable " , " BrowseView.Actions.sources " , fallback : " Sources " )
}
2022-12-24 21:06:28 -07:00
internal enum Categories {
// / G a m e s a n d
// / E m u l a t o r s
internal static let gamesAndEmulators = L10n . tr ( " Localizable " , " BrowseView.Categories.gamesAndEmulators " , fallback : " Games and \n Emulators " )
}
2023-01-16 21:23:16 +01:00
internal enum Hints {
internal enum NoApps {
// / A d d S o u r c e
internal static let addSource = L10n . tr ( " Localizable " , " BrowseView.Hints.NoApps.addSource " , fallback : " Add Source " )
// / A p p s a r e p r o v i d e d b y " s o u r c e s " . T h e s p e c i f i c a t i o n f o r t h e m i s a n o p e n s t a n d a r d , s o e v e r y o n e c a n c r e a t e t h e i r o w n s o u r c e . T o g e t y o u s t a r t e d , w e h a v e c o m p i l e d a l i s t o f " T r u s t e d S o u r c e s " w h i c h y o u c a n c h e c k o u t b y t a p p i n g t h e b u t t o n b e l o w .
internal static let text = L10n . tr ( " Localizable " , " BrowseView.Hints.NoApps.text " , fallback : " Apps are provided by \" sources \" . The specification for them is an open standard, so everyone can create their own source. To get you started, we have compiled a list of \" Trusted Sources \" which you can check out by tapping the button below. " )
// / Y o u d o n ' t h a v e a n y a p p s y e t .
internal static let title = L10n . tr ( " Localizable " , " BrowseView.Hints.NoApps.title " , fallback : " You don't have any apps yet. " )
}
}
2022-12-22 10:29:57 +01:00
internal enum Section {
internal enum AllApps {
// / A l l A p p s
internal static let title = L10n . tr ( " Localizable " , " BrowseView.Section.AllApps.title " , fallback : " All Apps " )
}
internal enum PromotedCategories {
// / S h o w a l l
internal static let showAll = L10n . tr ( " Localizable " , " BrowseView.Section.PromotedCategories.showAll " , fallback : " Show all " )
// / P r o m o t e d C a t e g o r i e s
internal static let title = L10n . tr ( " Localizable " , " BrowseView.Section.PromotedCategories.title " , fallback : " Promoted Categories " )
}
}
}
2022-12-24 21:06:28 -07:00
internal enum ConfirmAddSourceView {
// / A d d S o u r c e
internal static let addSource = L10n . tr ( " Localizable " , " ConfirmAddSourceView.addSource " , fallback : " Add Source " )
// / C o n f i r m A d d S o u r c e V i e w
internal static let apps = L10n . tr ( " Localizable " , " ConfirmAddSourceView.apps " , fallback : " Apps " )
// / N e w s I t e m s
internal static let newsItems = L10n . tr ( " Localizable " , " ConfirmAddSourceView.newsItems " , fallback : " News Items " )
// / S o u r c e C o n t e n t s
internal static let sourceContents = L10n . tr ( " Localizable " , " ConfirmAddSourceView.sourceContents " , fallback : " Source Contents " )
// / S o u r c e I d e n t i f i e r
internal static let sourceIdentifier = L10n . tr ( " Localizable " , " ConfirmAddSourceView.sourceIdentifier " , fallback : " Source Identifier " )
// / S o u r c e I n f o r m a t i o n
internal static let sourceInfo = L10n . tr ( " Localizable " , " ConfirmAddSourceView.sourceInfo " , fallback : " Source Information " )
// / S o u r c e U R L
internal static let sourceURL = L10n . tr ( " Localizable " , " ConfirmAddSourceView.sourceURL " , fallback : " Source URL " )
}
internal enum ConnectAppleIDView {
// / A p p l e I D
internal static let appleID = L10n . tr ( " Localizable " , " ConnectAppleIDView.appleID " , fallback : " Apple ID " )
// / C a n c e l
internal static let cancel = L10n . tr ( " Localizable " , " ConnectAppleIDView.cancel " , fallback : " Cancel " )
// / C o n n e c t Y o u r A p p l e I D
internal static let connectYourAppleID = L10n . tr ( " Localizable " , " ConnectAppleIDView.connectYourAppleID " , fallback : " Connect Your Apple ID " )
// / F a i l e d t o S i g n I n
internal static let failedToSignIn = L10n . tr ( " Localizable " , " ConnectAppleIDView.failedToSignIn " , fallback : " Failed to Sign In " )
// / Y o u r A p p l e I D i s u s e d t o c o n f i g u r e a p p s s o t h e y c a n b e i n s t a l l e d o n t h i s d e v i c e . Y o u r c r e d e n t i a l s w i l l b e s t o r e d s e c u r e l y i n t h i s d e v i c e ' s K e y c h a i n a n d s e n t o n l y t o A p p l e f o r a u t h e n t i c a t i o n .
internal static let footer = L10n . tr ( " Localizable " , " ConnectAppleIDView.footer " , fallback : " Your Apple ID is used to configure apps so they can be installed on this device. Your credentials will be stored securely in this device's Keychain and sent only to Apple for authentication. " )
// / P a s s w o r d
internal static let password = L10n . tr ( " Localizable " , " ConnectAppleIDView.password " , fallback : " Password " )
// / S i g n I n
internal static let signIn = L10n . tr ( " Localizable " , " ConnectAppleIDView.signIn " , fallback : " Sign In " )
// / C o n n e c t A p p l e I D V i e w
internal static let startWithSignIn = L10n . tr ( " Localizable " , " ConnectAppleIDView.startWithSignIn " , fallback : " Sign in with your Apple ID to get started. " )
// / W h y d o w e n e e d t h i s ?
internal static let whyDoWeNeedThis = L10n . tr ( " Localizable " , " ConnectAppleIDView.whyDoWeNeedThis " , fallback : " Why do we need this? " )
}
internal enum MyAppsView {
// / M y A p p s V i e w
internal static let active = L10n . tr ( " Localizable " , " MyAppsView.active " , fallback : " Active " )
// / A p p I D s R e m a i n i n g
internal static let appIDsRemaining = L10n . tr ( " Localizable " , " MyAppsView.appIDsRemaining " , fallback : " App IDs Remaining " )
// / a p p s
internal static let apps = L10n . tr ( " Localizable " , " MyAppsView.apps " , fallback : " apps " )
// / F a i l e d t o r e f r e s h
internal static let failedToRefresh = L10n . tr ( " Localizable " , " MyAppsView.failedToRefresh " , fallback : " Failed to refresh " )
// / M y A p p s
internal static let myApps = L10n . tr ( " Localizable " , " MyAppsView.myApps " , fallback : " My Apps " )
// / R e f r e s h A l l
internal static let refreshAll = L10n . tr ( " Localizable " , " MyAppsView.refreshAll " , fallback : " Refresh All " )
// / S i d e l o a d i n g i n p r o g r e s s . . .
internal static let sideloading = L10n . tr ( " Localizable " , " MyAppsView.sideloading " , fallback : " Sideloading in progress... " )
// / K e e p t h i s l o w e r c a s e
internal static let viewAppIDs = L10n . tr ( " Localizable " , " MyAppsView.viewAppIDs " , fallback : " View App IDs " )
2023-01-16 21:23:16 +01:00
internal enum Hints {
internal enum NoUpdates {
// / D i s m i s s f o r n o w
internal static let dismissForNow = L10n . tr ( " Localizable " , " MyAppsView.Hints.NoUpdates.dismissForNow " , fallback : " Dismiss for now " )
// / D o n ' t s h o w t h i s a g a i n
internal static let dontShowAgain = L10n . tr ( " Localizable " , " MyAppsView.Hints.NoUpdates.dontShowAgain " , fallback : " Don't show this again " )
// / Y o u w i l l b e n o t i f i e d o n c e u p d a t e s f o r y o u r a p p s a r e a v a i l a b l e . T h e u p d a t e s w i l l t h e n b e s h o w n h e r e .
internal static let text = L10n . tr ( " Localizable " , " MyAppsView.Hints.NoUpdates.text " , fallback : " You will be notified once updates for your apps are available. The updates will then be shown here. " )
// / A l l A p p s a r e U p T o D a t e
internal static let title = L10n . tr ( " Localizable " , " MyAppsView.Hints.NoUpdates.title " , fallback : " All Apps are Up To Date " )
}
}
2022-12-24 21:06:28 -07:00
}
2022-12-22 10:29:57 +01:00
internal enum NewsView {
// / N e w s V i e w
internal static let title = L10n . tr ( " Localizable " , " NewsView.title " , fallback : " News " )
internal enum Section {
internal enum FromSources {
// / F r o m y o u r S o u r c e s
internal static let title = L10n . tr ( " Localizable " , " NewsView.Section.FromSources.title " , fallback : " From your Sources " )
}
}
}
2022-12-24 21:06:28 -07:00
internal enum RootView {
// / B r o w s e
internal static let browse = L10n . tr ( " Localizable " , " RootView.browse " , fallback : " Browse " )
// / M y A p p s
internal static let myApps = L10n . tr ( " Localizable " , " RootView.myApps " , fallback : " My Apps " )
// / R o o t V i e w
internal static let news = L10n . tr ( " Localizable " , " RootView.news " , fallback : " News " )
// / S e t t i n g s
internal static let settings = L10n . tr ( " Localizable " , " RootView.settings " , fallback : " Settings " )
}
internal enum SettingsView {
// / A d d t o S i r i . . .
internal static let addToSiri = L10n . tr ( " Localizable " , " SettingsView.addToSiri " , fallback : " Add to Siri... " )
// / B a c k g r o u n d R e f r e s h
internal static let backgroundRefresh = L10n . tr ( " Localizable " , " SettingsView.backgroundRefresh " , fallback : " Background Refresh " )
// / C o n n e c t y o u r A p p l e I D
internal static let connectAppleID = L10n . tr ( " Localizable " , " SettingsView.connectAppleID " , fallback : " Connect your Apple ID " )
// / C r e d i t s
internal static let credits = L10n . tr ( " Localizable " , " SettingsView.credits " , fallback : " Credits " )
// / D e b u g
internal static let debug = L10n . tr ( " Localizable " , " SettingsView.debug " , fallback : " Debug " )
// / R e f r e s h i n g A p p s
internal static let refreshingApps = L10n . tr ( " Localizable " , " SettingsView.refreshingApps " , fallback : " Refreshing Apps " )
// / E n a b l e B a c k g r o u n d R e f r e s h t o a u t o m a t i c a l l y r e f r e s h a p p s i n t h e b a c k g r o u n d w h e n c o n n e c t e d t o W i F i a n d w i t h W i r e g u a r d a c t i v e .
internal static let refreshingAppsFooter = L10n . tr ( " Localizable " , " SettingsView.refreshingAppsFooter " , fallback : " Enable Background Refresh to automatically refresh apps in the background when connected to WiFi and with Wireguard active. " )
// / R e s e t I m a g e C a c h e
internal static let resetImageCache = L10n . tr ( " Localizable " , " SettingsView.resetImageCache " , fallback : " Reset Image Cache " )
// / S w i f t U I R e d e s i g n
internal static let swiftUIRedesign = L10n . tr ( " Localizable " , " SettingsView.swiftUIRedesign " , fallback : " SwiftUI Redesign " )
// / S w i t c h t o U I K i t
internal static let switchToUIKit = L10n . tr ( " Localizable " , " SettingsView.switchToUIKit " , fallback : " Switch to UIKit " )
// / S e t t i n g s
internal static let title = L10n . tr ( " Localizable " , " SettingsView.title " , fallback : " Settings " )
internal enum ConnectedAppleID {
// / E - M a i l
internal static let eMail = L10n . tr ( " Localizable " , " SettingsView.ConnectedAppleID.eMail " , fallback : " E-Mail " )
// / S e t t i n g s V i e w
internal static let name = L10n . tr ( " Localizable " , " SettingsView.ConnectedAppleID.name " , fallback : " Name " )
// / S i g n O u t
internal static let signOut = L10n . tr ( " Localizable " , " SettingsView.ConnectedAppleID.signOut " , fallback : " Sign Out " )
// / C o n n e c t e d A p p l e I D
internal static let text = L10n . tr ( " Localizable " , " SettingsView.ConnectedAppleID.text " , fallback : " Connected Apple ID " )
// / T y p e
internal static let type = L10n . tr ( " Localizable " , " SettingsView.ConnectedAppleID.type " , fallback : " Type " )
internal enum Footer {
// / Y o u r A p p l e I D i s r e q u i r e d t o s i g n t h e a p p s y o u i n s t a l l w i t h S i d e S t o r e .
internal static let p1 = L10n . tr ( " Localizable " , " SettingsView.ConnectedAppleID.Footer.p1 " , fallback : " Your Apple ID is required to sign the apps you install with SideStore. " )
// / Y o u r c r e d e n t i a l s a r e o n l y s e n t t o A p p l e ' s s e r v e r s a n d a r e n o t a c c e s s i b l e b y t h e S i d e S t o r e T e a m . O n c e s u c c e s s f u l l y l o g g e d i n , t h e l o g i n d e t a i l s a r e s t o r e d s e c u r e l y o n y o u r d e v i c e .
internal static let p2 = L10n . tr ( " Localizable " , " SettingsView.ConnectedAppleID.Footer.p2 " , fallback : " Your credentials are only sent to Apple's servers and are not accessible by the SideStore Team. Once successfully logged in, the login details are stored securely on your device. " )
}
}
}
internal enum SourcesView {
// / D o n e
internal static let done = L10n . tr ( " Localizable " , " SourcesView.done " , fallback : " Done " )
// / R e m o v e
internal static let remove = L10n . tr ( " Localizable " , " SourcesView.remove " , fallback : " Remove " )
// / S i d e S t o r e h a s r e v i e w e d t h e s e s o u r c e s t o m a k e s u r e t h e y m e e t o u r s a f e t y s t a n d a r d s .
internal static let reviewedText = L10n . tr ( " Localizable " , " SourcesView.reviewedText " , fallback : " SideStore has reviewed these sources to make sure they meet our safety standards. " )
// / S o u r c e s
internal static let sources = L10n . tr ( " Localizable " , " SourcesView.sources " , fallback : " Sources " )
// / S o u r c e s V i e w
internal static let sourcesDescription = L10n . tr ( " Localizable " , " SourcesView.sourcesDescription " , fallback : " Sources control what apps are available to download through SideStore. " )
// / T r u s t e d S o u r c e s
internal static let trustedSources = L10n . tr ( " Localizable " , " SourcesView.trustedSources " , fallback : " Trusted Sources " )
}
2022-12-22 10:21:57 +01:00
}
// s w i f t l i n t : e n a b l e e x p l i c i t _ t y p e _ i n t e r f a c e f u n c t i o n _ p a r a m e t e r _ c o u n t i d e n t i f i e r _ n a m e l i n e _ l e n g t h
// s w i f t l i n t : e n a b l e n e s t i n g t y p e _ b o d y _ l e n g t h t y p e _ n a m e v e r t i c a l _ w h i t e s p a c e _ o p e n i n g _ b r a c e s
// MARK: - I m p l e m e n t a t i o n D e t a i l s
extension L10n {
private static func tr ( _ table : String , _ key : String , _ args : CVarArg . . . , fallback value : String ) -> String {
let format = BundleToken . bundle . localizedString ( forKey : key , value : value , table : table )
return String ( format : format , locale : Locale . current , arguments : args )
}
}
// s w i f t l i n t : d i s a b l e c o n v e n i e n c e _ t y p e
private final class BundleToken {
static let bundle : Bundle = {
#if SWIFT_PACKAGE
return Bundle . module
#else
return Bundle ( for : BundleToken . self )
#endif
} ( )
}
// s w i f t l i n t : e n a b l e c o n v e n i e n c e _ t y p e