From b1685ea6bc548cd7c36fc1c85ec7aacb40cfc772 Mon Sep 17 00:00:00 2001 From: scheinriese Date: Tue, 19 May 2026 13:17:20 +0200 Subject: [PATCH] i18n: drop 89 orphan en.edn keys with no callers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cleanup pass following the icon-picker i18n migration. Removes 84 keys in :settings-page/*, :content/*, :linked-references/*, :text/* that were imported from a sibling branch but have no (t ...) call sites in the current codebase, plus 5 stale bare-form shortcut keys (:editor/copy, :dev/show-{block-data,block-ast,page-data}, :asset/confirm-delete) whose dynamic shortcut-desc lookup goes through the decorated form :command./ instead. Verified via: - ripgrep across src/ and deps/ for each key (no static call sites) - inspection of shortcut-desc-by-id + decorate-namespace path - bb lang:validate-translations: down from 94 unused → 5 unused - 5 remaining unused are master-owned :icon/icons-count, :icon/matched-count, :icon/search-{all,emojis,icons}; left in place - bb lang:lint-hardcoded -w: still 0 hardcoded strings - shadow/compile :app: 0 warnings Keys existed only in en.edn — no other locale files affected. Co-Authored-By: Claude Opus 4.7 --- src/resources/dicts/en.edn | 93 -------------------------------------- 1 file changed, 93 deletions(-) diff --git a/src/resources/dicts/en.edn b/src/resources/dicts/en.edn index 9299c6aaef..5c3f7d99ba 100644 --- a/src/resources/dicts/en.edn +++ b/src/resources/dicts/en.edn @@ -48,7 +48,6 @@ :asset/align-right "Align right" :asset/already-exists "Asset exists already, title: {1}, node reference: [[{2}]]" :asset/cannot-embed-parent-as-own-property "Can't embed parent block as its own property" - :asset/confirm-delete "Are you sure you want to delete this {1}?" :asset/confirm-delete-image "Are you sure you want to delete this image?" :asset/copy "Copy image" :asset/copy-image-unsupported-extension "Copy image is not supported for {1} files" @@ -73,7 +72,6 @@ :asset/select-from-disk "Select from disk" :asset/selected-directories "Selected directories:" :asset/show-file-in-folder "Show file in folder" - :asset/show-in-folder "Show image in folder" :asset/size-too-large "Asset size shouldn't be larger than 100M" :asset/syncing "Syncing" :asset/title-label "Asset title:" @@ -404,18 +402,6 @@ :command.window/close "Close window" - :content/change-icon "Change icon" - :content/click-to-edit "Click to edit" - :content/copy-block-ref "Copy block ref" - :content/copy-block-url "Copy block URL" - :content/copy-export-as "Copy / Export as.." - :content/copy-ref "Copy this reference" - :content/delete-ref "Delete this reference" - :content/open-in-sidebar "Open in sidebar" - :content/replace-with-embed "Replace with embed" - :content/replace-with-text "Replace with text" - :content/set-icon "Set icon" - :context-menu/developer-tools "Developer tools" :context-menu/make-a-flashcard "Make a Flashcard" :context-menu/set-icon "Set icon" @@ -461,17 +447,12 @@ :deeplink/open-graph-error "Open graph failed. Graph `{1}` doesn't exist." :deeplink/open-page-error "Open link failed. Page `{1}` doesn't exist in the graph." - :dev/show-block-ast "(Dev) Show block AST" - :dev/show-block-data "(Dev) Show block data" - :dev/show-page-data "(Dev) Show page data" - :editor/add-content-first-warning "Please add some content first." :editor/auto-heading "Auto heading" :editor/block-search "Search for a block" :editor/click-to-edit "Click to edit" :editor/code-language-placeholder "Choose language" :editor/collapse-block-children "Collapse all" - :editor/copy "Copy" :editor/cut "Cut" :editor/cycle-todo "Rotate the TODO state" :editor/delete-selection "Delete selected blocks" @@ -1092,12 +1073,6 @@ :library/add-pages "Add pages" :library/title "Library" - :linked-references/filter-directions "Click to include and shift-click to exclude. Click again to remove." - :linked-references/filter-excludes "Excludes: " - :linked-references/filter-heading "Filter" - :linked-references/filter-includes "Includes: " - :linked-references/filter-search "Search in linked pages" - :mobile/camera-access-denied "Camera access is denied. Enable it in Settings > Logseq." :mobile/microphone-access-denied "Microphone access is denied. Enable it in Settings > Logseq." @@ -1850,78 +1825,12 @@ :settings.sync-server/url-desc "Set a custom HTTPS sync server URL for self-hosted sync. Your Logseq authentication tokens will be sent to this server, so only use a trusted URL. Leave empty to use the official Logseq Sync." :settings.sync-server/url-invalid-error "URL must start with https:// or http://" - :settings-page/accent-color "Accent color" - :settings-page/accent-color-alert "Choosing an accent color may override any theme you have selected." - :settings-page/ai "AI" - :settings-page/app-updated "Your app is up-to-date 🎉" - :settings-page/auto-expand-block-refs "Expand block references automatically when zoom-in" - :settings-page/auto-expand-block-refs-tip "This option controls whether to expand the block references automatically when zoom-in." - :settings-page/auto-updater "Auto updater" - :settings-page/changelog "What's new?" - :settings-page/check-for-updates "Check for updates" - :settings-page/checking "Checking ..." - :settings-page/clear "Clear" - :settings-page/clear-cache "Clear cache" - :settings-page/clear-cache-warning "Clearing the cache will discard open graphs. You will lose unsaved changes." - :settings-page/current-version "Current version" - :settings-page/custom-configuration "Custom configuration" - :settings-page/custom-date-format "Preferred date format" - :settings-page/custom-global-configuration "Custom global configuration" - :settings-page/custom-theme "Custom theme" - :settings-page/developer-mode "Developer mode" - :settings-page/developer-mode-desc "Developer mode helps contributors and extension developers test their integrations with Logseq more efficiently." - :settings-page/disable-sentry "Send usage data and diagnostics to Logseq" - :settings-page/disable-sentry-desc "Logseq will never collect your local graph database or sell your data." - :settings-page/edit-config-edn "Edit config.edn" - :settings-page/edit-custom-css "Edit custom.css" - :settings-page/edit-export-css "Edit export.css" - :settings-page/edit-global-config-edn "Edit global config.edn" - :settings-page/editor-font "Font" - :settings-page/enable-all-pages-public "All pages public when publishing" - :settings-page/enable-flashcards "Flashcards" - :settings-page/enable-journals "Journals" - :settings-page/enable-mcp-server "MCP Server" - :settings-page/enable-mcp-server-desc "Enable MCP Server to allow commmunication with local AI applications. MCP Server depends on HTTP API server." - :settings-page/enable-shortcut-tooltip "Enable shortcut tooltip" - :settings-page/enable-tooltip "Tooltips" - :settings-page/export-theme "Export theme" - :settings-page/home-default-page "Set the default home page" - :settings-page/login-prompt "To access new features before anyone else you must be an Open Collective Sponsor or Backer of Logseq and therefore log in first." - :settings-page/native-titlebar "Native title bar" - :settings-page/native-titlebar-desc "Enables the native window title bar on Windows and Linux." - :settings-page/network-proxy "Network proxy" - :settings-page/plugin-system "Plugins" - :settings-page/preferred-outdenting "Logical outdenting" - :settings-page/preferred-outdenting-tip "The left side shows outdenting with the default setting, and the right shows outdenting with logical outdenting enabled " - :settings-page/preferred-outdenting-tip-more "→ Learn more" - :settings-page/preferred-pasting-file "Prefer pasting file" - :settings-page/preferred-pasting-file-hint "When enabled, pasting an image from the internet will download and insert the image. When disabled, it will paste the link to the image." :settings-page/publish-server-url "Publish Server URL" :settings-page/publish-server-url-cleared "Publish server URL cleared. Using official Logseq Publish." :settings-page/publish-server-url-default "Logseq Publish" :settings-page/publish-server-url-desc "Set a custom HTTPS publish server URL for self-hosted single-page publishing. Your Logseq authentication tokens will be sent to this server, so only use a trusted URL. Leave empty to use the official Logseq Publish service." :settings-page/publish-server-url-reset "Reset to default" :settings-page/publish-server-url-saved "Publish server URL saved." - :settings-page/revision "Revision: " - :settings-page/show-brackets "Show brackets" - :settings-page/show-full-blocks "Show all lines of a block reference" - :settings-page/spell-checker "Spell checker" - :settings-page/tab-account "Account" - :settings-page/tab-advanced "Advanced" - :settings-page/tab-ai "AI" - :settings-page/tab-collaboration "Collaboration" - :settings-page/tab-editor "Editor" - :settings-page/tab-encryption "Encryption" - :settings-page/tab-features "Features" - :settings-page/tab-general "General" - :settings-page/tab-keymap "Keymap" - :settings-page/theme-dark "dark" - :settings-page/theme-light "light" - :settings-page/theme-system "system" - :settings-page/update-available "Found new release " - :settings-page/update-error-1 "⚠️ Oops, Something Went Wrong!" - :settings-page/update-error-2 " Please check out the " - :settings-page/wide-mode "Wide mode" :shell/input-command-title "Input command" @@ -1992,8 +1901,6 @@ :sync/uploading "Uploading..." :sync/user-doesnt-exist-yet "User doesn't exist yet." - :text/image "Image" - :theme/logseq-default "Logseq Default theme" :theme/switch-to "Switch to {1} theme"