Skip to content

Commit f74ddbc

Browse files
committed
fix(app): preserve English model capability summaries
Signed-off-by: Chao Wang <[email protected]>
1 parent 00044e1 commit f74ddbc

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/app/component-tests/tooltip.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ story("separates model capabilities in the Simplified Chinese flyout", async ({
77
await page.mouse.move(0, 0)
88
await dialog.locator('[data-option-key="openai:gpt-5.6-sol"]').hover()
99
const flyout = page.locator('[data-slot="model-dialog-flyout"]')
10-
await expect(flyout.getByText("Text、Image和Tools", { exact: true })).toBeVisible()
10+
await expect(flyout.getByText("Text、Image、Tools", { exact: true })).toBeVisible()
1111
})
1212

1313
story("opens a neighbouring tooltip without the open delay", async ({ mount, page }) => {

‎packages/app/src/providers/models/details.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ export function ModelDetails(props: {
3636

3737
const label = (type: Input) => language.t(`model.details.input.${type}`)
3838

39+
// Narrow conjunction separates labels in Chinese and preserves the comma-only English list.
3940
const summary = () =>
40-
new Intl.ListFormat(language.intl(), { style: "short", type: "conjunction" }).format([
41+
new Intl.ListFormat(language.intl(), { style: "narrow", type: "conjunction" }).format([
4142
...input().map(label),
4243
...(props.model.capabilities.toolcall ? [language.t("model.details.tools")] : []),
4344
])

0 commit comments

Comments
 (0)