Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Name what an extension plugs into as System Settings does

Țugui Dragoșbea78976fe7a
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstrings
index cf5ba2d5..2823ca19 100644
--- a/Localization/Peel/Localizable.xcstrings
+++ b/Localization/Peel/Localizable.xcstrings
@@ -14286,6 +14286,112 @@
}
}
},
+ "Actions" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Akce"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Aktionen"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Acciones"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Actions"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Azioni"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "アクション"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "동작"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Taken"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Czynności"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ações"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Acțiuni"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Действия"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Åtgärder"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Eylemler"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Дії"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "操作"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "動作"
+ }
+ }
+ }
+ },
"Add App" : {
"localizations" : {
"cs" : {
@@ -45075,6 +45181,112 @@
}
}
},
+ "File Providers" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Poskytovatelé souborů"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Dateianbieter"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Proveedores de archivos"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Fournisseurs de fichiers"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Provider di file"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "ファイルプロバイダ"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "파일 제공자"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Bestandsaanbieders"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Dostawcy pliku"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Provedores de Arquivo"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Furnizori fișier"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Источники файлов"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Filleverantörer"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Dosya Sağlayıcılar"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Постачальники файлу"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "文件提供程序"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "檔案供應商"
+ }
+ }
+ }
+ },
"File Search" : {
"localizations" : {
"cs" : {
@@ -146873,108 +147085,108 @@
}
}
},
- "Photos" : {
+ "Photos Editing" : {
"localizations" : {
"cs" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Fotky"
+ "value" : "Úpravy fotek"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Fotos"
+ "value" : "Fotos-Bearbeitung"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Fotos"
+ "value" : "Edición de fotos"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Photos"
+ "value" : "Modification de photos"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Foto"
+ "value" : "Modifiche foto"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
- "value" : "写真"
+ "value" : "写真編集"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
- "value" : "사진"
+ "value" : "사진 편집"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Foto's"
+ "value" : "Fotobewerking"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Zdjęcia"
+ "value" : "Edycja w Zdjęciach"
}
},
"pt" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Fotos"
+ "value" : "Edição de Fotos"
}
},
"ro" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Poze"
+ "value" : "Editare poze"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Фото"
+ "value" : "Редактирование в Фото"
}
},
"sv" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Bilder"
+ "value" : "Redigering i Bilder"
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Fotoğraflar"
+ "value" : "Fotoğraflar’da Düzenleme"
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Фотографії"
+ "value" : "Редагування фотографій"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "照片"
+ "value" : "照片编辑"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
- "value" : "照片"
+ "value" : "照片編輯"
}
}
}
@@ -151383,112 +151595,6 @@
}
}
},
- "Quick Actions" : {
- "localizations" : {
- "cs" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Rychlé akce"
- }
- },
- "de" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Schnellaktionen"
- }
- },
- "es" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Acciones rápidas"
- }
- },
- "fr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Actions rapides"
- }
- },
- "it" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Azioni rapide"
- }
- },
- "ja" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "クイックアクション"
- }
- },
- "ko" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "빠른 동작"
- }
- },
- "nl" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Snelle taken"
- }
- },
- "pl" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Szybkie czynności"
- }
- },
- "pt" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Ações Rápidas"
- }
- },
- "ro" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Acțiuni rapide"
- }
- },
- "ru" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Быстрые действия"
- }
- },
- "sv" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Snabbåtgärder"
- }
- },
- "tr" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Hızlı Eylemler"
- }
- },
- "uk" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Швидкі дії"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "快速操作"
- }
- },
- "zh-Hant" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "快速動作"
- }
- }
- }
- },
"Quick Look" : {
"localizations" : {
"cs" : {
@@ -171512,320 +171618,320 @@
}
}
},
- "Share menu" : {
+ "Shared Folder" : {
"localizations" : {
"cs" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Nabídka Sdílení"
+ "value" : "Sdílená složka"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Menü „Teilen“"
+ "value" : "Geteilter Ordner"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Menú Compartir"
+ "value" : "Carpeta compartida"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Menu Partager"
+ "value" : "Dossier partagé"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Menu Condividi"
+ "value" : "Cartella condivisa"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
- "value" : "共有メニュー"
+ "value" : "“共有”フォルダ"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
- "value" : "공유 메뉴"
+ "value" : "공유 폴더"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Deel-menu"
+ "value" : "Gedeelde map"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Menu Udostępnij"
+ "value" : "Folder Wspólne"
}
},
"pt" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Menu Compartilhar"
+ "value" : "Pasta Compartilhada"
}
},
"ro" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Meniul Partajare"
+ "value" : "Dosar partajat"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Меню «Поделиться»"
+ "value" : "Общая папка"
}
},
"sv" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Menyn Dela"
+ "value" : "Delad mapp"
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Paylaş menüsü"
+ "value" : "Paylaşılan Klasör"
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Меню поширення"
+ "value" : "Спільна папка"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "共享菜单"
+ "value" : "共享文件夹"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
- "value" : "分享選單"
+ "value" : "共享的檔案夾"
}
}
}
},
- "Shared Folder" : {
+ "Shares storage" : {
"localizations" : {
"cs" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Sdílená složka"
+ "value" : "Sdílené místo"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Geteilter Ordner"
+ "value" : "Teilt Speicherplatz"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Carpeta compartida"
+ "value" : "Almacenamiento compartido"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Dossier partagé"
+ "value" : "Stockage partagé"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Cartella condivisa"
+ "value" : "Spazio condiviso"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
- "value" : "“共有”フォルダ"
+ "value" : "ストレージを共有"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
- "value" : "공유 폴더"
+ "value" : "저장 공간 공유"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Gedeelde map"
+ "value" : "Deelt opslag"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Folder Wspólne"
+ "value" : "Współdzielą miejsce"
}
},
"pt" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Pasta Compartilhada"
+ "value" : "Armazenamento compartilhado"
}
},
"ro" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Dosar partajat"
+ "value" : "Stocare partajată"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Общая папка"
+ "value" : "Общее пространство"
}
},
"sv" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Delad mapp"
+ "value" : "Delar lagring"
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Paylaşılan Klasör"
+ "value" : "Aynı alanı paylaşıyor"
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Спільна папка"
+ "value" : "Спільне сховище"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "共享文件夹"
+ "value" : "共享储存空间"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
- "value" : "共享的檔案夾"
+ "value" : "共用儲存空間"
}
}
}
},
- "Shares storage" : {
+ "Sharing" : {
"localizations" : {
"cs" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Sdílené místo"
+ "value" : "Sdílení"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Teilt Speicherplatz"
+ "value" : "Teilen"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Almacenamiento compartido"
+ "value" : "Uso compartido"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Stockage partagé"
+ "value" : "Partage"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Spazio condiviso"
+ "value" : "Condivisione"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
- "value" : "ストレージを共有"
+ "value" : "共有"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
- "value" : "저장 공간 공유"
+ "value" : "공유"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Deelt opslag"
+ "value" : "Delen"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Współdzielą miejsce"
+ "value" : "Udostępnianie"
}
},
"pt" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Armazenamento compartilhado"
+ "value" : "Compartilhamento"
}
},
"ro" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Stocare partajată"
+ "value" : "Partajare"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Общее пространство"
+ "value" : "Общий доступ"
}
},
"sv" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Delar lagring"
+ "value" : "Delning"
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Aynı alanı paylaşıyor"
+ "value" : "Paylaşma"
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Спільне сховище"
+ "value" : "Поширення"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "共享储存空间"
+ "value" : "共享"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
- "value" : "共用儲存空間"
+ "value" : "分享"
}
}
}
diff --git a/Peel/Views/Extensions/ExtensionText.swift b/Peel/Views/Extensions/ExtensionText.swift
index b974eb82..e28a1ff7 100644
--- a/Peel/Views/Extensions/ExtensionText.swift
+++ b/Peel/Views/Extensions/ExtensionText.swift
@@ -30,13 +30,14 @@ extension AppExtension {
/// purpose: Xcode's string extraction can miss the words of a switch expression assigned to a local `let`, and
/// those words would then stay English in every language.
private enum ExtensionPoint {
- case finder, share, widgets, quickLook, safari, shortcuts, notifications, spotlight, photos, messages, network,
- audio, quickActions, passwords, xcode, photoProjects, smartCards, services
+ case finder, fileProviders, sharing, widgets, quickLook, safari, shortcuts, notifications, spotlight, photos,
+ messages, network, audio, quickActions, passwords, xcode, photoProjects, smartCards, services
init?(_ identifier: String) {
switch identifier {
- case "com.apple.FinderSync", "com.apple.fileprovider-nonui", "com.apple.fileprovider-actionsui": self = .finder
- case "com.apple.share-services": self = .share
+ case "com.apple.FinderSync": self = .finder
+ case "com.apple.fileprovider-nonui", "com.apple.fileprovider-actionsui": self = .fileProviders
+ case "com.apple.share-services": self = .sharing
case "com.apple.widgetkit-extension": self = .widgets
case "com.apple.quicklook.preview", "com.apple.quicklook.thumbnail": self = .quickLook
case "com.apple.Safari.web-extension", "com.apple.Safari.extension", "com.apple.Safari.content-blocker":
@@ -63,8 +64,10 @@ private enum ExtensionPoint {
var word: LocalizedStringResource {
switch self {
+ // System Settings' own names for the categories it lists extensions under.
case .finder: "Finder"
- case .share: "Share menu"
+ case .fileProviders: "File Providers"
+ case .sharing: "Sharing"
case .widgets: "Widgets"
// The feature's name, under a key of its own: the Duplicates page uses "Quick Look" as a command, and
// some languages write the two differently (Swedish: Överblick for the feature, Överblicka for the command).
@@ -73,13 +76,13 @@ private enum ExtensionPoint {
case .shortcuts: "Shortcuts and Siri"
case .notifications: "Notifications"
case .spotlight: "Spotlight"
- case .photos: "Photos"
+ case .photos: "Photos Editing"
case .messages: "Messages"
case .network: "Network"
case .audio: "Audio apps"
- case .quickActions: "Quick Actions"
- // System Settings' own names for these categories of extensions. Services has a key of its own, since some
- // languages name the category apart from the Services folder the Plug-ins page lists (Ukrainian: Сервіси).
+ case .quickActions: "Actions"
+ // Services has a key of its own, since some languages name the category apart from the Services folder the
+ // Plug-ins page lists (Ukrainian: Сервіси).
case .passwords: "Password AutoFill"
case .xcode: "Xcode Source Editor"
case .photoProjects: "Photos Projects"
diff --git a/PeelTests/ExtensionTextTests.swift b/PeelTests/ExtensionTextTests.swift
index 6a927d18..4c9ed53d 100644
--- a/PeelTests/ExtensionTextTests.swift
+++ b/PeelTests/ExtensionTextTests.swift
@@ -32,6 +32,16 @@ struct ExtensionTextTests {
#expect(blocker.pointName == String(localized: "Safari"))
#expect(passwords.pointName == String(localized: "Password AutoFill"))
+ for (point, word) in [
+ ("com.apple.FinderSync", String(localized: "Finder")),
+ ("com.apple.fileprovider-nonui", String(localized: "File Providers")),
+ ("com.apple.fileprovider-actionsui", String(localized: "File Providers")),
+ ("com.apple.share-services", String(localized: "Sharing")),
+ ("com.apple.photo-editing", String(localized: "Photos Editing")),
+ ("com.apple.ui-services", String(localized: "Actions")),
+ ] {
+ #expect(part(name: "Part", owner: "Example", point: point).pointName == word)
+ }
}
@Test func findsAPartByTheWordItsPageShows() throws {