Files
oh-my-opencode/src/locales/en.ts
T
leeyazhou 9dc9d77904 feat(i18n): add toast i18n with en/zh locale and plugin config support
- Add src/locales/ with en baseline and zh overrides (Partial<Record> fallback)
- Add src/shared/i18n.ts with initI18n/t/setLocale/getLocale (LANG env auto-detect)
- Add I18nConfigSchema with locale field to plugin config
- Internationalize 13 hardcoded strings in task-toast-manager
- Add 18 unit tests for i18n module
- Pin manager tests to en locale for determinism
2026-05-19 14:31:13 +08:00

20 lines
894 B
TypeScript

const locales = {
"toast.new_background_task": "New Background Task",
"toast.new_task_executed": "New Task Executed",
"toast.task_completed": "Task Completed",
"toast.task_completion_message": "\"{{description}}\" finished in {{duration}}",
"toast.task_completion_remaining": "Still running: {{running}} | Queued: {{queued}}",
"toast.status_queued": "Queued",
"toast.task_list_running": "Running ({{count}}):",
"toast.task_list_queued": "Queued ({{count}}):",
"toast.task_list_new": " ← NEW",
"toast.fallback_prefix": "[FALLBACK] Model: {{model}}{{suffix}}",
"toast.fallback_inherited": " (inherited from parent)",
"toast.fallback_system_default": " (system default fallback)",
"toast.fallback_runtime": " (runtime fallback)",
"toast.concurrency_info": " [{{total}}/{{limit}}]",
} as const
export type TranslationKey = keyof typeof locales
export default locales