feat(locale): add content translation operations
CI / Typecheck, test & build (push) Successful in 54s
CI / Deploy to Cloudflare Workers (push) Successful in 59s

This commit is contained in:
2026-09-21 05:52:56 +08:00
parent a2c1394946
commit 0fdb8a4b2e
7 changed files with 247 additions and 12 deletions
+20
View File
@@ -937,3 +937,23 @@ export interface ResumeImportItem {
metrics?: Record<string, number> | null
result?: Record<string, unknown> | null
}
export interface ContentTranslation {
kind: 'content_translation'
id: number
content_type: 'filex' | 'comment'
entity_id: number
source_locale: string | null
target_locale: string
source_hash: string
status: 'pending' | 'ready' | 'failed' | 'stale' | 'skipped'
translation_type: 'machine' | 'human' | null
provider: string | null
model: string | null
attempts: number
last_error: string | null
next_retry_at: string | null
completed_at: string | null
created_at: string
updated_at: string
}