- Create String+Localization extension with .localized property - Add LabelUtils for consistent label splitting and deduplication logic - Implement Legal & Privacy settings section with Privacy Policy and Legal Notice views - Add German/English localization for all navigation states and settings sections - Fix navigationDestination placement warning in PadSidebarView - Unify label input handling across main app and share extension - Support for space-separated label input in share extension Navigation & Settings now fully localized: - All/Unread/Favorites/Archive → Alle/Ungelesen/Favoriten/Archiv - Font/Appearance/Cache/General/Server Settings → German equivalents - Legal section with GitHub issue reporting and email support contact
13 lines
378 B
Swift
13 lines
378 B
Swift
import Foundation
|
|
|
|
extension String {
|
|
/// Returns a localized version of the string using NSLocalizedString
|
|
var localized: String {
|
|
return NSLocalizedString(self, comment: "")
|
|
}
|
|
|
|
/// Returns a localized version of the string with comment
|
|
func localized(comment: String) -> String {
|
|
return NSLocalizedString(self, comment: comment)
|
|
}
|
|
} |