mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
fix(ci): localize the chat font family search keywords (#33715)
#33687 added English-only search keywords and a code sample to the chat font setting, which fails main's localization coverage check.
This commit is contained in:
@@ -96,5 +96,12 @@
|
||||
"text": "fixtures · files named *.fixture.tsx under src/renderer/src",
|
||||
"dynamic": false,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"filePath": "src/renderer/src/components/settings/ChatFontFamilySetting.tsx",
|
||||
"kind": "jsx-text",
|
||||
"text": "fontFamily",
|
||||
"dynamic": false,
|
||||
"count": 1
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import { createLocalizedCatalog } from '@/i18n/localized-catalog'
|
||||
import { translateSearchKeyword } from './settings-search-keywords'
|
||||
import type { SettingsSearchEntry } from './settings-search'
|
||||
import { formatPrimaryShortcutLabel } from '@/hooks/useShortcutLabel'
|
||||
|
||||
@@ -53,7 +54,12 @@ const getChatAppearanceCatalog = createLocalizedCatalog(
|
||||
'settings.appearance.chat.fontFamilyDescription',
|
||||
'Font used for messages, activity, and the message box.'
|
||||
),
|
||||
keywords: ['chat', 'font', 'family', 'typeface', 'typography']
|
||||
keywords: [
|
||||
...translateSearchKeyword('settings.appearance.chat.title', 'Chat'),
|
||||
...translateSearchKeyword('settings.appearance.chat.fontFamily', 'Font family'),
|
||||
...translateSearchKeyword('settings.appearance.chat.fontKeywordTypeface', 'typeface'),
|
||||
...translateSearchKeyword('settings.appearance.chat.fontKeywordTypography', 'typography')
|
||||
]
|
||||
},
|
||||
textSize: {
|
||||
targetSectionId: 'chat-text-size',
|
||||
|
||||
@@ -362,6 +362,8 @@
|
||||
"chat": {
|
||||
"fontFamily": "Font family",
|
||||
"fontFamilyDescription": "Font used for messages, activity, and the message box.",
|
||||
"fontKeywordTypeface": "typeface",
|
||||
"fontKeywordTypography": "typography",
|
||||
"inheritFont": "Same as IDE font",
|
||||
"fontPreviewLabel": "Chat font preview",
|
||||
"fontPreview": "The quick brown fox jumps over the lazy dog.",
|
||||
|
||||
Reference in New Issue
Block a user