mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-13 20:11:00 +00:00
27 lines
899 B
Swift
27 lines
899 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import ViewModels
|
|
|
|
extension ProfileCollection {
|
|
func title(statusWord: AppPreferences.StatusWord) -> String {
|
|
switch self {
|
|
case .statuses:
|
|
switch statusWord {
|
|
case .toot:
|
|
return NSLocalizedString("account.statuses.toot", comment: "")
|
|
case .post:
|
|
return NSLocalizedString("account.statuses.post", comment: "")
|
|
}
|
|
case .statusesAndReplies:
|
|
switch statusWord {
|
|
case .toot:
|
|
return NSLocalizedString("account.statuses-and-replies.toot", comment: "")
|
|
default:
|
|
return NSLocalizedString("account.statuses-and-replies.post", comment: "")
|
|
}
|
|
case .media:
|
|
return NSLocalizedString("account.media", comment: "")
|
|
}
|
|
}
|
|
}
|