mirror of
https://github.com/stablyai/orca.git
synced 2026-09-28 08:02:43 +00:00
fix(pi): register configured-model reset localization
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { translateSearchKeyword } from './settings-search-keywords'
|
||||
import { PiConfiguredModelReset } from './PiConfiguredModelReset'
|
||||
import { getConnectionIdFromState } from '@/lib/connection-context'
|
||||
import { useRef } from 'react'
|
||||
@@ -226,7 +227,12 @@ export function CommitMessageAiPane({
|
||||
matchesSettingsSearch(searchQuery, {
|
||||
title: translate('settings.piConfiguredModelReset.title', 'Saved Pi model choices'),
|
||||
description: translate('settings.piConfiguredModelReset.action', 'Use Pi’s configured model'),
|
||||
keywords: ['pi', 'model', 'copilot']
|
||||
keywords: [
|
||||
...translateSearchKeyword('settings.piConfiguredModelReset.keywords.pi', 'pi'),
|
||||
...translateSearchKeyword('settings.piConfiguredModelReset.keywords.model', 'model'),
|
||||
...translateSearchKeyword('settings.piConfiguredModelReset.keywords.copilot', 'copilot'),
|
||||
...translateSearchKeyword('settings.piConfiguredModelReset.keywords.reset', 'reset')
|
||||
]
|
||||
})
|
||||
) {
|
||||
sections.push(
|
||||
|
||||
@@ -6,7 +6,12 @@ export const getCommitMessageAiPaneSearchEntries = createLocalizedCatalog(() =>
|
||||
{
|
||||
title: translate('settings.piConfiguredModelReset.title', 'Saved Pi model choices'),
|
||||
description: translate('settings.piConfiguredModelReset.action', 'Use Pi’s configured model'),
|
||||
keywords: ['pi', 'model', 'copilot', 'reset']
|
||||
keywords: [
|
||||
...translateSearchKeyword('settings.piConfiguredModelReset.keywords.pi', 'pi'),
|
||||
...translateSearchKeyword('settings.piConfiguredModelReset.keywords.model', 'model'),
|
||||
...translateSearchKeyword('settings.piConfiguredModelReset.keywords.copilot', 'copilot'),
|
||||
...translateSearchKeyword('settings.piConfiguredModelReset.keywords.reset', 'reset')
|
||||
]
|
||||
},
|
||||
{
|
||||
title: translate(
|
||||
|
||||
@@ -118,6 +118,15 @@
|
||||
"retrying": "Retrying…"
|
||||
},
|
||||
"settings": {
|
||||
"piConfiguredModelReset": {
|
||||
"keywords": { "pi": "pi", "model": "model", "copilot": "copilot", "reset": "reset" },
|
||||
"success": "Pi now uses its configured model on this host.",
|
||||
"error": "Could not reset saved Pi model choices.",
|
||||
"title": "Saved Pi model choices",
|
||||
"description": "Reset saved Pi model choices for commit messages, pull requests, and branch names on this host. Models in recipe CLI arguments still apply.",
|
||||
"host": "Host: {{host}}",
|
||||
"action": "Use Pi’s configured model"
|
||||
},
|
||||
"appearance": {
|
||||
"language": {
|
||||
"title": "Language",
|
||||
|
||||
Reference in New Issue
Block a user