- BookmarkDetail: All user-facing texts and error messages in BookmarkDetailView, BookmarkDetailViewModel, BookmarkLabelsView, and BookmarkLabelsViewModel translated to English. - Bookmarks: All UI strings, swipe actions, and error messages in BookmarkCardView, BookmarksView, BookmarksViewModel, and related enums translated to English. - Labels: All UI and error messages in LabelsView and LabelsViewModel translated to English. - Menu: All sidebar/tab names, navigation titles, and queue texts in BookmarkState, PhoneTabView, PlayerQueueResumeButton, SidebarTab updated to English. - Settings: All section headers, toggle labels, button texts, and error/success messages in FontSettingsView, FontSettingsViewModel, SettingsContainerView, SettingsGeneralView, SettingsGeneralViewModel, SettingsServerView, SettingsServerViewModel translated to English. - SpeechPlayer: All player UI texts, progress, and queue messages in SpeechPlayerView translated to English. This commit unifies the app language to English for all user-facing areas.
43 lines
1.2 KiB
Swift
43 lines
1.2 KiB
Swift
//
|
|
// SidebarTab.swift
|
|
// readeck
|
|
//
|
|
// Created by Ilyas Hallak on 01.07.25.
|
|
//
|
|
|
|
enum SidebarTab: Hashable, CaseIterable, Identifiable {
|
|
case search, all, unread, favorite, archived, article, videos, pictures, tags, settings
|
|
|
|
var id: Self { self }
|
|
|
|
var label: String {
|
|
switch self {
|
|
case .all: return "All"
|
|
case .unread: return "Unread"
|
|
case .favorite: return "Favorites"
|
|
case .archived: return "Archive"
|
|
case .search: return "Search"
|
|
case .settings: return "Settings"
|
|
case .article: return "Articles"
|
|
case .videos: return "Videos"
|
|
case .pictures: return "Pictures"
|
|
case .tags: return "Tags"
|
|
}
|
|
}
|
|
|
|
var systemImage: String {
|
|
switch self {
|
|
case .unread: return "house"
|
|
case .favorite: return "heart"
|
|
case .archived: return "archivebox"
|
|
case .search: return "magnifyingglass"
|
|
case .settings: return "gear"
|
|
case .all: return "list.bullet"
|
|
case .article: return "doc.plaintext"
|
|
case .videos: return "film"
|
|
case .pictures: return "photo"
|
|
case .tags: return "tag"
|
|
}
|
|
}
|
|
}
|