dsh-tidy-display 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  import type { Context } from '@deepseek-ai/cordis';
2
2
  import type {} from './settings-slots.js';
3
- import { settingsCopyFor, zh, en } from './settings-copy.js';
3
+ import { settingsCopyFor, zh, en, fr, de, it, ru, es } from './settings-copy.js';
4
4
  import { SettingsSection, type BetterDisplaySettingsInjected, type OpenPrefs } from './SettingsSection.js';
5
5
  import { firstSessionId, skillsFromListResult, type SkillStatusProbe } from './skill-status.js';
6
6
  import type { HostSkillStatus } from '../skill-status.js';
7
7
 
8
8
  interface LocaleFace {
9
- register?: (ns: string, dicts: { zh: unknown; en: unknown }) => () => void;
9
+ register?: (ns: string, dicts: { zh: unknown; en: unknown } & Record<string, unknown>) => () => void;
10
10
  bind?: (ns: string) => (key: string) => string;
11
11
  getSnapshot?: () => { locale?: string; language?: string };
12
12
  }
@@ -53,7 +53,7 @@ function createSkillProbe(ctx: Context): SkillStatusProbe {
53
53
  export function installBetterDisplaySettings(ctx: Context, prefs: OpenPrefs): void {
54
54
  const locale = (ctx.get?.('locale') ?? (ctx as unknown as { locale?: LocaleFace }).locale) as LocaleFace | undefined;
55
55
  if (locale?.register) {
56
- ctx.effect(() => locale.register!('tidy-display', { zh, en }), 'dsh-tidy-display: settings copy');
56
+ ctx.effect(() => locale.register!('tidy-display', { zh, en, fr, de, it, ru, es }), 'dsh-tidy-display: settings copy');
57
57
  }
58
58
  const checkSkill = createSkillProbe(ctx);
59
59
  const injected = (): BetterDisplaySettingsInjected => ({