The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): move catalog copy into i18n *_catalog siblings
Austin Pickettf90af6364929
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex ced8f16e73a..64551a1bf2e 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -4,6 +4,7 @@ import { enAppTour } from './en_app_tour'import { enAuxTasks } from './en_aux_tasks'import { enBilling } from './en_billing'import { enBoot } from './en_boot'+import { enCatalog, enSkillDeepLink } from './en_catalog'import { enCatalogInstall } from './en_catalog_install'import { enClarify } from './en_clarify'import { enConnectorAccounts } from './en_connector_accounts'@@ -38,65 +39,7 @@ export const en: Translations = {intro: { stock: {}, custom: () => [] },connectors: enConnectorCard,- catalog: {- add: 'Add',- added: 'Added',- discover: 'Discover',- featured: 'Featured',- explorePlugins: 'Explore plugins',- exploreSkills: 'Explore skills',- mostStarred: 'Most starred',- newest: 'Newest',- recentlyUpdated: 'Recently updated',- alphabetical: 'Name',- sortBy: 'Sort by',- seeAll: 'See all',- related: 'More like this',- tags: 'Tags',- screenshots: 'Screenshots',- listView: 'List view',- cardView: 'Card view',- installTitle: (name: string) => `Install “${name}”?`,- installDescription: 'This skill will be available in new sessions. Only install sources you trust.',- installTo: 'Install to',- thisComputer: 'This computer',- installing: 'Installing…',- installComplete: (name: string) => `“${name}” installed`,- destinationChanged: 'The destination changed. Close this dialog and open the install link again.',- installed: 'Installed',- searchSkills: 'Search skills',- searchPlugins: 'Search plugins',- allSources: 'All sources',- allCategories: 'All categories',- about: 'About',- author: 'Author',- source: 'Source',- category: 'Category',- version: 'Version',- platforms: 'Platforms',- requires: 'Requires',- tools: 'Tools',- hooks: 'Hooks',- middleware: 'Middleware',- commands: 'Commands',- license: 'License',- addedDate: 'Added',- updatedDate: 'Updated',- repository: 'Repository',- documentation: 'Documentation',- noResults: 'No matches',- tryAnother: 'Try another search or clear your filters.',- clearFilters: 'Clear filters',- filters: 'Filters',- loadFailed: 'Could not load the catalog',- retry: 'Try again',- more: 'Show more',- pinned: 'Reviewed commit',- snapshotHint: 'From the Hermes catalog. Browsing never contacts source repositories.',- installHint: 'Review the source before installing. Changes apply to new sessions.',- results: (count: number) => `${count.toLocaleString()} result${count === 1 ? '' : 's'}`,- back: 'Back to results'- },+ catalog: enCatalog,// `connectors.*` above stays the onboarding and chat vocabulary; these are the page's own, and the two are not shared.connectorsPage: {title: 'Connectors',@@ -2162,17 +2105,7 @@ export const en: Translations = {}},- skillDeepLink: {- installTitle: (name: string) => `Install “${name}”?`,- installDescription: 'This skill will be available in new sessions. Only install sources you trust.',- installTo: 'Install to',- thisComputer: 'This computer',- installing: 'Installing…',- installComplete: (name: string) => `“${name}” installed`,- destinationChanged: 'The destination changed. Close this dialog and open the install link again.',- installed: 'Installed',- source: 'Source'- },+ skillDeepLink: enSkillDeepLink,skills: {tabSkills: 'Skills',tabToolsets: 'Tools',diff --git a/apps/desktop/src/i18n/en_catalog.ts b/apps/desktop/src/i18n/en_catalog.tsnew file mode 100644index 00000000000..2d4d4fbda34--- /dev/null+++ b/apps/desktop/src/i18n/en_catalog.ts@@ -0,0 +1,73 @@+import type { CatalogTranslations, SkillDeepLinkTranslations } from './types_catalog'++export const enCatalog: CatalogTranslations = {+ add: 'Add',+ added: 'Added',+ discover: 'Discover',+ featured: 'Featured',+ explorePlugins: 'Explore plugins',+ exploreSkills: 'Explore skills',+ mostStarred: 'Most starred',+ newest: 'Newest',+ recentlyUpdated: 'Recently updated',+ alphabetical: 'Name',+ sortBy: 'Sort by',+ seeAll: 'See all',+ related: 'More like this',+ tags: 'Tags',+ screenshots: 'Screenshots',+ listView: 'List view',+ cardView: 'Card view',+ installTitle: (name: string) => `Install “${name}”?`,+ installDescription: 'This skill will be available in new sessions. Only install sources you trust.',+ installTo: 'Install to',+ thisComputer: 'This computer',+ installing: 'Installing…',+ installComplete: (name: string) => `“${name}” installed`,+ destinationChanged: 'The destination changed. Close this dialog and open the install link again.',+ installed: 'Installed',+ searchSkills: 'Search skills',+ searchPlugins: 'Search plugins',+ allSources: 'All sources',+ allCategories: 'All categories',+ about: 'About',+ author: 'Author',+ source: 'Source',+ category: 'Category',+ version: 'Version',+ platforms: 'Platforms',+ requires: 'Requires',+ tools: 'Tools',+ hooks: 'Hooks',+ middleware: 'Middleware',+ commands: 'Commands',+ license: 'License',+ addedDate: 'Added',+ updatedDate: 'Updated',+ repository: 'Repository',+ documentation: 'Documentation',+ noResults: 'No matches',+ tryAnother: 'Try another search or clear your filters.',+ clearFilters: 'Clear filters',+ filters: 'Filters',+ loadFailed: 'Could not load the catalog',+ retry: 'Try again',+ more: 'Show more',+ pinned: 'Reviewed commit',+ snapshotHint: 'From the Hermes catalog. Browsing never contacts source repositories.',+ installHint: 'Review the source before installing. Changes apply to new sessions.',+ results: (count: number) => `${count.toLocaleString()} result${count === 1 ? '' : 's'}`,+ back: 'Back to results'+}++export const enSkillDeepLink: SkillDeepLinkTranslations = {+ installTitle: (name: string) => `Install “${name}”?`,+ installDescription: 'This skill will be available in new sessions. Only install sources you trust.',+ installTo: 'Install to',+ thisComputer: 'This computer',+ installing: 'Installing…',+ installComplete: (name: string) => `“${name}” installed`,+ destinationChanged: 'The destination changed. Close this dialog and open the install link again.',+ installed: 'Installed',+ source: 'Source'+}diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex 3c31ebfbaaf..e82eb317b7d 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -4,6 +4,7 @@ import { defineLocale, type TranslationOverrides } from './define-locale'import { introJa } from './intro-ja'import { jaAuxTasks } from './ja_aux_tasks'import { jaBoot } from './ja_boot'+import { jaCatalog, jaSkillDeepLink } from './ja_catalog'import { jaClarify } from './ja_clarify'import { jaConnectors } from './ja_connectors'import { jaFirstRun } from './ja_first_run'@@ -19,67 +20,7 @@ import { jaUpdateChannel } from './ja_update_channel'export const jaOverrides = {- catalog: {- add: '追加',- added: '追加済み',- discover: '見つける',- featured: 'おすすめ',- explorePlugins: 'プラグインを探す',- exploreSkills: 'スキルを探す',- mostStarred: 'スターが多い順',- newest: '新着',- recentlyUpdated: '最近の更新',- alphabetical: '名前',- sortBy: '並べ替え',- seeAll: 'すべて表示',- related: '類似の項目',- tags: 'タグ',- screenshots: 'スクリーンショット',- listView: 'リスト表示',- cardView: 'カード表示',- installTitle: (name: string) => `「${name}」をインストールしますか?`,- installDescription:- 'このスキルは新しいセッションで利用できます。信頼できる提供元からのみインストールしてください。',- installTo: 'インストール先',- thisComputer: 'このコンピューター',- installing: 'インストール中…',- installComplete: (name: string) => `「${name}」をインストールしました`,- destinationChanged:- 'インストール先が変更されました。このダイアログを閉じ、インストールリンクを開き直してください。',- installed: 'インストール済み',- searchSkills: 'スキルを検索',- searchPlugins: 'プラグインを検索',- allSources: 'すべての提供元',- allCategories: 'すべてのカテゴリ',- about: '概要',- author: '作者',- source: '提供元',- category: 'カテゴリ',- version: 'バージョン',- platforms: '対応プラットフォーム',- requires: '必要なもの',- tools: 'ツール',- hooks: 'フック',- middleware: 'ミドルウェア',- commands: 'コマンド',- license: 'ライセンス',- addedDate: '追加日',- updatedDate: '更新日',- repository: 'リポジトリ',- documentation: 'ドキュメント',- noResults: '一致する項目がありません',- tryAnother: '別の検索を試すか、フィルターをクリアしてください。',- clearFilters: 'フィルターをクリア',- filters: 'フィルター',- loadFailed: 'カタログを読み込めませんでした',- retry: '再試行',- more: 'さらに表示',- pinned: 'レビュー済みコミット',- snapshotHint: 'Hermesカタログの情報です。閲覧時に提供元のリポジトリへ接続することはありません。',- installHint: 'インストール前にソースを確認してください。変更は新しいセッションに適用されます。',- results: (count: number) => `${count.toLocaleString('ja')}件の結果`,- back: '結果に戻る'- },+ catalog: jaCatalog,connectors: jaConnectors.connectors,externalOpenFailed: {title: 'このリンクを開けませんでした',@@ -1440,19 +1381,7 @@ export const jaOverrides = {}},- skillDeepLink: {- installTitle: (name: string) => `「${name}」をインストールしますか?`,- installDescription:- 'このスキルは新しいセッションで利用できます。信頼できる提供元からのみインストールしてください。',- installTo: 'インストール先',- thisComputer: 'このコンピューター',- installing: 'インストール中…',- installComplete: (name: string) => `「${name}」をインストールしました`,- destinationChanged:- 'インストール先が変更されました。このダイアログを閉じ、インストールリンクを開き直してください。',- installed: 'インストール済み',- source: '提供元'- },+ skillDeepLink: jaSkillDeepLink,skills: {plugins: {pageBlurb:diff --git a/apps/desktop/src/i18n/ja_catalog.ts b/apps/desktop/src/i18n/ja_catalog.tsnew file mode 100644index 00000000000..946b602b42b--- /dev/null+++ b/apps/desktop/src/i18n/ja_catalog.ts@@ -0,0 +1,77 @@+import type { TranslationOverrides } from './define-locale'++export const jaCatalog = {+ add: '追加',+ added: '追加済み',+ discover: '見つける',+ featured: 'おすすめ',+ explorePlugins: 'プラグインを探す',+ exploreSkills: 'スキルを探す',+ mostStarred: 'スターが多い順',+ newest: '新着',+ recentlyUpdated: '最近の更新',+ alphabetical: '名前',+ sortBy: '並べ替え',+ seeAll: 'すべて表示',+ related: '類似の項目',+ tags: 'タグ',+ screenshots: 'スクリーンショット',+ listView: 'リスト表示',+ cardView: 'カード表示',+ installTitle: (name: string) => `「${name}」をインストールしますか?`,+ installDescription:+ 'このスキルは新しいセッションで利用できます。信頼できる提供元からのみインストールしてください。',+ installTo: 'インストール先',+ thisComputer: 'このコンピューター',+ installing: 'インストール中…',+ installComplete: (name: string) => `「${name}」をインストールしました`,+ destinationChanged:+ 'インストール先が変更されました。このダイアログを閉じ、インストールリンクを開き直してください。',+ installed: 'インストール済み',+ searchSkills: 'スキルを検索',+ searchPlugins: 'プラグインを検索',+ allSources: 'すべての提供元',+ allCategories: 'すべてのカテゴリ',+ about: '概要',+ author: '作者',+ source: '提供元',+ category: 'カテゴリ',+ version: 'バージョン',+ platforms: '対応プラットフォーム',+ requires: '必要なもの',+ tools: 'ツール',+ hooks: 'フック',+ middleware: 'ミドルウェア',+ commands: 'コマンド',+ license: 'ライセンス',+ addedDate: '追加日',+ updatedDate: '更新日',+ repository: 'リポジトリ',+ documentation: 'ドキュメント',+ noResults: '一致する項目がありません',+ tryAnother: '別の検索を試すか、フィルターをクリアしてください。',+ clearFilters: 'フィルターをクリア',+ filters: 'フィルター',+ loadFailed: 'カタログを読み込めませんでした',+ retry: '再試行',+ more: 'さらに表示',+ pinned: 'レビュー済みコミット',+ snapshotHint: 'Hermesカタログの情報です。閲覧時に提供元のリポジトリへ接続することはありません。',+ installHint: 'インストール前にソースを確認してください。変更は新しいセッションに適用されます。',+ results: (count: number) => `${count.toLocaleString('ja')}件の結果`,+ back: '結果に戻る'+} satisfies TranslationOverrides['catalog']++export const jaSkillDeepLink = {+ installTitle: (name: string) => `「${name}」をインストールしますか?`,+ installDescription:+ 'このスキルは新しいセッションで利用できます。信頼できる提供元からのみインストールしてください。',+ installTo: 'インストール先',+ thisComputer: 'このコンピューター',+ installing: 'インストール中…',+ installComplete: (name: string) => `「${name}」をインストールしました`,+ destinationChanged:+ 'インストール先が変更されました。このダイアログを閉じ、インストールリンクを開き直してください。',+ installed: 'インストール済み',+ source: '提供元'+} satisfies TranslationOverrides['skillDeepLink']diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.tsindex 3b972aa67aa..f422da7a637 100644--- a/apps/desktop/src/i18n/ru.ts+++ b/apps/desktop/src/i18n/ru.ts@@ -3,6 +3,7 @@ import { defineFieldCopy } from '@/app/settings/field-copy'import { defineLocale, type TranslationOverrides } from './define-locale'import { ruAuxTasks } from './ru_aux_tasks'import { ruBoot } from './ru_boot'+import { ruCatalog, ruSkillDeepLink } from './ru_catalog'import { ruClarify } from './ru_clarify'import { ruConnectors } from './ru_connectors'import { ruFirstRun } from './ru_first_run'@@ -38,66 +39,7 @@ const RU_NOUN = (count: number | string, one: string, few: string, many: string)export const ruOverrides = {- catalog: {- add: 'Добавить',- added: 'Добавлено',- discover: 'Открывайте новое',- featured: 'Рекомендуемые',- explorePlugins: 'Обзор плагинов',- exploreSkills: 'Обзор навыков',- mostStarred: 'Больше всего звёзд',- newest: 'Новинки',- recentlyUpdated: 'Недавно обновлённые',- alphabetical: 'Название',- sortBy: 'Сортировать по',- seeAll: 'Показать все',- related: 'Похожие',- tags: 'Теги',- screenshots: 'Снимки экрана',- listView: 'Список',- cardView: 'Карточки',- installTitle: (name: string) => `Установить «${name}»?`,- installDescription: 'Навык будет доступен в новых сессиях. Устанавливайте только из источников, которым доверяете.',- installTo: 'Установить в',- thisComputer: 'Этот компьютер',- installing: 'Установка…',- installComplete: (name: string) => `«${name}» установлен`,- destinationChanged: 'Место установки изменилось. Закройте диалог и снова откройте ссылку установки.',- installed: 'Установленные',- searchSkills: 'Поиск навыков',- searchPlugins: 'Поиск плагинов',- allSources: 'Все источники',- allCategories: 'Все категории',- about: 'Описание',- author: 'Автор',- source: 'Источник',- category: 'Категория',- version: 'Версия',- platforms: 'Платформы',- requires: 'Требования',- tools: 'Инструменты',- hooks: 'Хуки',- middleware: 'Промежуточное ПО',- commands: 'Команды',- license: 'Лицензия',- addedDate: 'Добавлено',- updatedDate: 'Обновлено',- repository: 'Репозиторий',- documentation: 'Документация',- noResults: 'Совпадений нет',- tryAnother: 'Попробуйте другой запрос или сбросьте фильтры.',- clearFilters: 'Сбросить фильтры',- filters: 'Фильтры',- loadFailed: 'Не удалось загрузить каталог',- retry: 'Попробовать снова',- more: 'Показать ещё',- pinned: 'Проверенный коммит',- snapshotHint: 'Из каталога Hermes. При просмотре нет обращений к исходным репозиториям.',- installHint: 'Проверьте исходный код перед установкой. Изменения применяются к новым сессиям.',- results: (count: number) =>- `${count.toLocaleString('ru')} ${RU_PLURAL(count, 'результат', 'результата', 'результатов')}`,- back: 'Назад к результатам'- },+ catalog: ruCatalog,connectors: ruConnectors.connectors,sharedMetrics: ruSharedMetrics,firstRun: ruFirstRun,@@ -1565,17 +1507,7 @@ export const ruOverrides = {}}},- skillDeepLink: {- installTitle: (name: string) => `Установить «${name}»?`,- installDescription: 'Навык будет доступен в новых сессиях. Устанавливайте только из источников, которым доверяете.',- installTo: 'Установить в',- thisComputer: 'Этот компьютер',- installing: 'Установка…',- installComplete: (name: string) => `«${name}» установлен`,- destinationChanged: 'Место установки изменилось. Закройте диалог и снова откройте ссылку установки.',- installed: 'Установленные',- source: 'Источник'- },+ skillDeepLink: ruSkillDeepLink,skills: {plugins: {pageBlurb: 'Плагин может расширять приложение, агента или оба сразу — у каждой части свой переключатель.'diff --git a/apps/desktop/src/i18n/ru_catalog.ts b/apps/desktop/src/i18n/ru_catalog.tsnew file mode 100644index 00000000000..cb9b8233dfd--- /dev/null+++ b/apps/desktop/src/i18n/ru_catalog.ts@@ -0,0 +1,81 @@+import type { TranslationOverrides } from './define-locale'++const resultWord = (count: number) => {+ const n = Math.abs(count) % 10+ const nn = Math.abs(count) % 100++ return n === 1 && nn !== 11 ? 'результат' : n >= 2 && n <= 4 && (nn < 12 || nn > 14) ? 'результата' : 'результатов'+}++export const ruCatalog = {+ add: 'Добавить',+ added: 'Добавлено',+ discover: 'Открывайте новое',+ featured: 'Рекомендуемые',+ explorePlugins: 'Обзор плагинов',+ exploreSkills: 'Обзор навыков',+ mostStarred: 'Больше всего звёзд',+ newest: 'Новинки',+ recentlyUpdated: 'Недавно обновлённые',+ alphabetical: 'Название',+ sortBy: 'Сортировать по',+ seeAll: 'Показать все',+ related: 'Похожие',+ tags: 'Теги',+ screenshots: 'Снимки экрана',+ listView: 'Список',+ cardView: 'Карточки',+ installTitle: (name: string) => `Установить «${name}»?`,+ installDescription: 'Навык будет доступен в новых сессиях. Устанавливайте только из источников, которым доверяете.',+ installTo: 'Установить в',+ thisComputer: 'Этот компьютер',+ installing: 'Установка…',+ installComplete: (name: string) => `«${name}» установлен`,+ destinationChanged: 'Место установки изменилось. Закройте диалог и снова откройте ссылку установки.',+ installed: 'Установленные',+ searchSkills: 'Поиск навыков',+ searchPlugins: 'Поиск плагинов',+ allSources: 'Все источники',+ allCategories: 'Все категории',+ about: 'Описание',+ author: 'Автор',+ source: 'Источник',+ category: 'Категория',+ version: 'Версия',+ platforms: 'Платформы',+ requires: 'Требования',+ tools: 'Инструменты',+ hooks: 'Хуки',+ middleware: 'Промежуточное ПО',+ commands: 'Команды',+ license: 'Лицензия',+ addedDate: 'Добавлено',+ updatedDate: 'Обновлено',+ repository: 'Репозиторий',+ documentation: 'Документация',+ noResults: 'Совпадений нет',+ tryAnother: 'Попробуйте другой запрос или сбросьте фильтры.',+ clearFilters: 'Сбросить фильтры',+ filters: 'Фильтры',+ loadFailed: 'Не удалось загрузить каталог',+ retry: 'Попробовать снова',+ more: 'Показать ещё',+ pinned: 'Проверенный коммит',+ snapshotHint: 'Из каталога Hermes. При просмотре нет обращений к исходным репозиториям.',+ installHint: 'Проверьте исходный код перед установкой. Изменения применяются к новым сессиям.',+ results: (count: number) =>+ `${count.toLocaleString('ru')} ${resultWord(count)}`,+ back: 'Назад к результатам'+} satisfies TranslationOverrides['catalog']++export const ruSkillDeepLink = {+ installTitle: (name: string) => `Установить «${name}»?`,+ installDescription: 'Навык будет доступен в новых сессиях. Устанавливайте только из источников, которым доверяете.',+ installTo: 'Установить в',+ thisComputer: 'Этот компьютер',+ installing: 'Установка…',+ installComplete: (name: string) => `«${name}» установлен`,+ destinationChanged: 'Место установки изменилось. Закройте диалог и снова откройте ссылку установки.',+ installed: 'Установленные',+ source: 'Источник'+} satisfies TranslationOverrides['skillDeepLink']diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex baac9bd090d..c7890f431bf 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -12,6 +12,7 @@ import type { AppTourTranslations } from './types_app_tour'import type { AuxTaskCopyMap } from './types_aux_tasks'import type { BillingTranslations } from './types_billing'import type { BootTranslations } from './types_boot'+import type { CatalogTranslations, SkillDeepLinkTranslations } from './types_catalog'import type { CatalogInstallTranslations } from './types_catalog_install'import type { ClarifyCopy } from './types_clarify'import type { ConnectorAccountsTranslations, ConnectorCardTranslations } from './types_connectors'@@ -97,65 +98,7 @@ export interface Translations extends NoticeTranslations {custom: (label: string) => string[]}connectors: ConnectorCardTranslations-catalog: {- add: string- added: string- discover: string- featured: string- explorePlugins: string- exploreSkills: string- mostStarred: string- newest: string- recentlyUpdated: string- alphabetical: string- sortBy: string- seeAll: string- related: string- tags: string- screenshots: string- listView: string- cardView: string- installTitle: (name: string) => string- installDescription: string- installTo: string- thisComputer: string- installing: string- installComplete: (name: string) => string- destinationChanged: string- installed: string- searchSkills: string- searchPlugins: string- allSources: string- allCategories: string- about: string- author: string- source: string- category: string- version: string- platforms: string- requires: string- tools: string- hooks: string- middleware: string- commands: string- license: string- addedDate: string- updatedDate: string- repository: string- documentation: string- noResults: string- tryAnother: string- clearFilters: string- filters: string- loadFailed: string- retry: string- more: string- pinned: string- snapshotHint: string- installHint: string- results: (count: number) => string- back: string- }+catalog: CatalogTranslationsconnectorsPage: {title: stringsearchPlaceholder: (count: number) => string@@ -1946,17 +1889,7 @@ catalog: {}}- skillDeepLink: {- installTitle: (name: string) => string- installDescription: string- installTo: string- thisComputer: string- installing: string- installComplete: (name: string) => string- destinationChanged: string- installed: string- source: string- }+ skillDeepLink: SkillDeepLinkTranslationsskills: {tabSkills: stringtabToolsets: stringdiff --git a/apps/desktop/src/i18n/types_catalog.ts b/apps/desktop/src/i18n/types_catalog.tsnew file mode 100644index 00000000000..48113b43780--- /dev/null+++ b/apps/desktop/src/i18n/types_catalog.ts@@ -0,0 +1,71 @@+export interface CatalogTranslations {+ add: string+ added: string+ discover: string+ featured: string+ explorePlugins: string+ exploreSkills: string+ mostStarred: string+ newest: string+ recentlyUpdated: string+ alphabetical: string+ sortBy: string+ seeAll: string+ related: string+ tags: string+ screenshots: string+ listView: string+ cardView: string+ installTitle: (name: string) => string+ installDescription: string+ installTo: string+ thisComputer: string+ installing: string+ installComplete: (name: string) => string+ destinationChanged: string+ installed: string+ searchSkills: string+ searchPlugins: string+ allSources: string+ allCategories: string+ about: string+ author: string+ source: string+ category: string+ version: string+ platforms: string+ requires: string+ tools: string+ hooks: string+ middleware: string+ commands: string+ license: string+ addedDate: string+ updatedDate: string+ repository: string+ documentation: string+ noResults: string+ tryAnother: string+ clearFilters: string+ filters: string+ loadFailed: string+ retry: string+ more: string+ pinned: string+ snapshotHint: string+ installHint: string+ results: (count: number) => string+ back: string+}++export interface SkillDeepLinkTranslations {+ installTitle: (name: string) => string+ installDescription: string+ installTo: string+ thisComputer: string+ installing: string+ installComplete: (name: string) => string+ destinationChanged: string+ installed: string+ source: string+}diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex 8c02d1a5c4f..0a19ce000f8 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -3,6 +3,7 @@ import { defineFieldCopy } from '@/app/settings/field-copy'import { defineLocale, type TranslationOverrides } from './define-locale'import { introZh } from './intro-zh'import { zhAuxTasks } from './zh_aux_tasks'+import { zhCatalog, zhSkillDeepLink } from './zh_catalog'import { zhClarify } from './zh_clarify'import { zhConnectorCard } from './zh_connector_card'import { zhFirstRun } from './zh_first_run'@@ -17,65 +18,7 @@ import { zhUpdateChannel } from './zh_update_channel'export const zhOverrides = {- catalog: {- add: '添加',- added: '已添加',- discover: '发现',- featured: '精选',- explorePlugins: '探索插件',- exploreSkills: '探索技能',- mostStarred: '星标最多',- newest: '最新发布',- recentlyUpdated: '最近更新',- alphabetical: '名称',- sortBy: '排序方式',- seeAll: '查看全部',- related: '类似推荐',- tags: '标签',- screenshots: '截图',- listView: '列表视图',- cardView: '卡片视图',- installTitle: (name: string) => `安装“${name}”?`,- installDescription: '此技能将在新会话中可用。请仅安装可信来源的内容。',- installTo: '安装到',- thisComputer: '此电脑',- installing: '正在安装…',- installComplete: (name: string) => `已安装“${name}”`,- destinationChanged: '安装目标已更改。请关闭此对话框并重新打开安装链接。',- installed: '已安装',- searchSkills: '搜索技能',- searchPlugins: '搜索插件',- allSources: '所有来源',- allCategories: '所有分类',- about: '简介',- author: '作者',- source: '来源',- category: '分类',- version: '版本',- platforms: '支持的平台',- requires: '依赖项',- tools: '工具',- hooks: '钩子',- middleware: '中间件',- commands: '命令',- license: '许可证',- addedDate: '添加日期',- updatedDate: '更新日期',- repository: '代码仓库',- documentation: '文档',- noResults: '没有匹配项',- tryAnother: '请尝试其他搜索或清除筛选条件。',- clearFilters: '清除筛选条件',- filters: '筛选条件',- loadFailed: '无法加载目录',- retry: '重试',- more: '显示更多',- pinned: '已审核的提交',- snapshotHint: '内容来自 Hermes 目录。浏览时不会连接来源代码仓库。',- installHint: '安装前请检查源代码。更改将在新会话中生效。',- results: (count: number) => `${count.toLocaleString('zh')} 个结果`,- back: '返回结果'- },+ catalog: zhCatalog,externalOpenFailed: {title: '无法打开此链接',message: '没有注册用于打开此地址的浏览器。请复制链接并手动打开。',@@ -2130,17 +2073,7 @@ export const zhOverrides = {}},- skillDeepLink: {- installTitle: (name: string) => `安装“${name}”?`,- installDescription: '此技能将在新会话中可用。请仅安装可信来源的内容。',- installTo: '安装到',- thisComputer: '此电脑',- installing: '正在安装…',- installComplete: (name: string) => `已安装“${name}”`,- destinationChanged: '安装目标已更改。请关闭此对话框并重新打开安装链接。',- installed: '已安装',- source: '来源'- },+ skillDeepLink: zhSkillDeepLink,skills: {tabSkills: '技能',tabToolsets: '工具集',diff --git a/apps/desktop/src/i18n/zh_catalog.ts b/apps/desktop/src/i18n/zh_catalog.tsnew file mode 100644index 00000000000..7553d4af9e6--- /dev/null+++ b/apps/desktop/src/i18n/zh_catalog.ts@@ -0,0 +1,73 @@+import type { TranslationOverrides } from './define-locale'++export const zhCatalog = {+ add: '添加',+ added: '已添加',+ discover: '发现',+ featured: '精选',+ explorePlugins: '探索插件',+ exploreSkills: '探索技能',+ mostStarred: '星标最多',+ newest: '最新发布',+ recentlyUpdated: '最近更新',+ alphabetical: '名称',+ sortBy: '排序方式',+ seeAll: '查看全部',+ related: '类似推荐',+ tags: '标签',+ screenshots: '截图',+ listView: '列表视图',+ cardView: '卡片视图',+ installTitle: (name: string) => `安装“${name}”?`,+ installDescription: '此技能将在新会话中可用。请仅安装可信来源的内容。',+ installTo: '安装到',+ thisComputer: '此电脑',+ installing: '正在安装…',+ installComplete: (name: string) => `已安装“${name}”`,+ destinationChanged: '安装目标已更改。请关闭此对话框并重新打开安装链接。',+ installed: '已安装',+ searchSkills: '搜索技能',+ searchPlugins: '搜索插件',+ allSources: '所有来源',+ allCategories: '所有分类',+ about: '简介',+ author: '作者',+ source: '来源',+ category: '分类',+ version: '版本',+ platforms: '支持的平台',+ requires: '依赖项',+ tools: '工具',+ hooks: '钩子',+ middleware: '中间件',+ commands: '命令',+ license: '许可证',+ addedDate: '添加日期',+ updatedDate: '更新日期',+ repository: '代码仓库',+ documentation: '文档',+ noResults: '没有匹配项',+ tryAnother: '请尝试其他搜索或清除筛选条件。',+ clearFilters: '清除筛选条件',+ filters: '筛选条件',+ loadFailed: '无法加载目录',+ retry: '重试',+ more: '显示更多',+ pinned: '已审核的提交',+ snapshotHint: '内容来自 Hermes 目录。浏览时不会连接来源代码仓库。',+ installHint: '安装前请检查源代码。更改将在新会话中生效。',+ results: (count: number) => `${count.toLocaleString('zh')} 个结果`,+ back: '返回结果'+} satisfies TranslationOverrides['catalog']++export const zhSkillDeepLink = {+ installTitle: (name: string) => `安装“${name}”?`,+ installDescription: '此技能将在新会话中可用。请仅安装可信来源的内容。',+ installTo: '安装到',+ thisComputer: '此电脑',+ installing: '正在安装…',+ installComplete: (name: string) => `已安装“${name}”`,+ destinationChanged: '安装目标已更改。请关闭此对话框并重新打开安装链接。',+ installed: '已安装',+ source: '来源'+} satisfies TranslationOverrides['skillDeepLink']