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:
Neil
2026-10-25 17:54:29 -07:00
committed by GitHub
parent 4833b736f7
commit 5dfaee07b1
3 changed files with 16 additions and 1 deletions
@@ -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',
+2
View File
@@ -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.",