fix(locale): keep settings constants private

This commit is contained in:
Yichen Jiang
2026-08-07 19:30:22 +08:00
parent 1dd2252d16
commit e9f6d82b12
2 changed files with 3 additions and 4 deletions

View File

@@ -29,9 +29,7 @@ export type { LanguageRowComponentProps, LanguageRowInjected } from './LanguageR
export type { LanguageOptionRow, LanguageRowState } from './settings-store.ts' export type { LanguageOptionRow, LanguageRowState } from './settings-store.ts'
export type { SettingsGeneralItemOwnerProps } from './settings-contract.ts' export type { SettingsGeneralItemOwnerProps } from './settings-contract.ts'
export type { CommonKey } from '../locales/index.ts' export type { CommonKey } from '../locales/index.ts'
export { export type { LocaleId } from '../locale-settings.ts'
LOCALE_IDS, LOCALE_PREFERENCE_FIELD, LOCALE_SETTINGS_NAMESPACE, type LocaleId,
} from '../locale-settings.ts'
// The translate currency lives in ui-slots (the render machinery synthesizes // The translate currency lives in ui-slots (the render machinery synthesizes
// the seat); re-exported here so dictionary owners import one package. // the seat); re-exported here so dictionary owners import one package.

View File

@@ -5,9 +5,10 @@ import { Context } from 'cordis'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { SlotsService } from '@deepseek-ai/dsh-client-runtime/client' import { SlotsService } from '@deepseek-ai/dsh-client-runtime/client'
import { import {
apply, inject, LOCALE_SETTINGS_NAMESPACE, SETTINGS_NS, apply, inject, SETTINGS_NS,
} from '@deepseek-ai/dsh-client-locale/client' } from '@deepseek-ai/dsh-client-locale/client'
import type { LanguageRowInjected, LocaleService } from '@deepseek-ai/dsh-client-locale/client' import type { LanguageRowInjected, LocaleService } from '@deepseek-ai/dsh-client-locale/client'
import { LOCALE_SETTINGS_NAMESPACE } from '../src/locale-settings.ts'
import { LanguageRow } from '../src/client/LanguageRow.tsx' import { LanguageRow } from '../src/client/LanguageRow.tsx'
import type { createLanguageRowStore } from '../src/client/settings-store.ts' import type { createLanguageRowStore } from '../src/client/settings-store.ts'