mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
13 lines
473 B
TypeScript
13 lines
473 B
TypeScript
import type { LocaleFace } from '@deepseek-ai/dsh-client-ui-slots'
|
|
|
|
/** Static locale face for renderer tests that do not exercise locale switching. */
|
|
export const locale = {
|
|
bind: () => key => key === 'brand.localBuild' ? 'DSH Local Build' : key,
|
|
getSnapshot: () => ({
|
|
active: 'en' as const,
|
|
locales: [{ id: 'zh' as const, label: '中文' }, { id: 'en' as const, label: 'English' }],
|
|
revision: 0,
|
|
}),
|
|
subscribe: () => () => {},
|
|
} satisfies LocaleFace
|