// Locale namespace = the plugin's cordis id (kebab). DSH flat namespace keys // (settings + locale) use the internal id `model-router`; the scoped npm // package name is reserved for package-bound identifiers (exported `name`, // module-loader id, the /plugins//… route base). export const LOCALE_NS = 'model-router' export const zh = { settingsTitle: '模型路由', sectionSub: '模型聚合、提供商切换与优先级顺序', readOnly: '本部署的设置为只读。', loading: '加载中…', loadFailed: '加载失败:{message}', retry: '重试', refresh: '刷新', empty: '没有可路由的提供商或模型,请先在设置中添加提供商。', modelsCount: '共 {count} 个模型', activeBadge: '当前', noCredential: '未配置 API 密钥,不可选', dragHint: '拖拽调整优先级顺序', switchFailed: '切换失败:{message}', reorderFailed: '排序失败:{message}', providerCount: '{count} 个提供商', seatLabel: '模型选择(含提供商切换)', menuAria: '模型、提供商与推理等级', menuModel: '模型', menuProvider: '提供商', menuEffort: '推理等级', triggerFallback: '选择模型', triggerSelectAria: '选择模型', triggerAria: '选择模型,当前 {model}', triggerAriaEffort: '选择模型,当前 {model},推理等级 {effort}', effortProviderDefault: 'Default', statusLoading: '正在刷新模型列表…', errorAction: '模型操作失败:{message}', actionReload: '重新加载', warningGroupLoad: '{name} 加载失败:{message}', emptyModels: '没有可用的模型。', emptyEfforts: '当前模型未提供推理等级。', routeMenuTitle: '{model} · 选择提供商', routeLoading: '加载路由…', noCredentialShort: '未配置凭据', globalRouteHint: '切换后对所有会话的后续请求生效', showQuickSwitchLabel: '在模型选择菜单中显示提供商切换', showQuickSwitchDescription: '开启后,当当前模型是 model-router 路由时,模型选择弹出菜单会显示提供商列表入口,可直接切换该模型的激活提供商。', ignorePrefixLabel: '匹配时忽略模型 ID 前缀', ignorePrefixDescription: '开启后,deepseek/deepseek-v4-flash 与 deepseek-v4-flash 视为同一模型,统一显示不带前缀的模型 id(默认开启)。', sortTitle: '模型显示顺序', sortDescription: '模型选择列表中 model-router 分组内模型的排列方式。', sortModeCustom: '自定义', sortModeName: '按名称', sortModeRecent: '最近使用', sortModeDescCustom: '按下方拖拽的手动顺序排列', sortModeDescName: '按模型名称排序(数字感知)', sortModeDescRecent: '最近用过的模型排在最前', sortCustomHint: '拖拽调整模型在模型选择列表中的显示顺序', sortFailed: '排序设置失败:{message}', } export const en: Record = { settingsTitle: 'Model Router', sectionSub: 'Model aggregation, provider switching and preference order', readOnly: 'This deployment stores settings read-only.', loading: 'Loading…', loadFailed: 'Load failed: {message}', retry: 'Retry', refresh: 'Refresh', empty: 'No routable providers or models yet — add providers in settings first.', modelsCount: '{count} models', activeBadge: 'active', noCredential: 'No API key configured — not selectable', dragHint: 'Drag to adjust preference order', switchFailed: 'Switch failed: {message}', reorderFailed: 'Reorder failed: {message}', providerCount: '{count} providers', seatLabel: 'Model selection (with provider switching)', menuAria: 'Model, provider and reasoning effort', menuModel: 'Model', menuProvider: 'Provider', menuEffort: 'Effort', triggerFallback: 'Select model', triggerSelectAria: 'Select model', triggerAria: 'Select model, current {model}', triggerAriaEffort: 'Select model, current {model}, reasoning effort {effort}', effortProviderDefault: 'Default', statusLoading: 'Refreshing model list…', errorAction: 'Model operation failed: {message}', actionReload: 'Reload', warningGroupLoad: '{name} failed to load: {message}', emptyModels: 'No models available.', emptyEfforts: 'This model provides no reasoning effort levels.', routeMenuTitle: '{model} · Choose provider', routeLoading: 'Loading routes…', noCredentialShort: 'No credentials', globalRouteHint: 'Changes apply to subsequent requests in all sessions', showQuickSwitchLabel: 'Show provider switching in the model picker', showQuickSwitchDescription: 'When enabled, the model picker menu shows a provider list entry that switches the active provider, for model-router routes.', ignorePrefixLabel: 'Ignore model ID prefix when matching', ignorePrefixDescription: 'When enabled, deepseek/deepseek-v4-flash and deepseek-v4-flash are treated as the same model and shown without the prefix (on by default).', sortTitle: 'Model display order', sortDescription: 'How models inside the model-router group are ordered in the model picker.', sortModeCustom: 'Custom', sortModeName: 'By name', sortModeRecent: 'Recently used', sortModeDescCustom: 'Manual order via drag below', sortModeDescName: 'Sort by model name (numeric-aware)', sortModeDescRecent: 'Most recently used models first', sortCustomHint: 'Drag to reorder models in the model picker', sortFailed: 'Sort setting failed: {message}', }