[translator] Epic: translation style controls — glossary, tone & brand voice

Đang mở
#142 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
localization

Hướng nghiên cứu

Bắt đầu bằng cách đọc trình xây dựng system-prompt bất đồng bộ trong #109 và abstraction của provider được tham chiếu trong issue. Phạm vi được cố ý giữ ở mức cao, vì vậy epic này trước tiên nên được tinh chỉnh thành các sub-issues xác định mô hình dữ liệu, chiến lược enforcement, giao diện editor hoặc cấu hình và các tiêu chí validation trước khi bắt đầu triển khai.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement epic high priority translator

Summary

Add first-class, structured control over how content is translated — a glossary, tone/voice, and protected (do-not-translate) terms — instead of relying only on a free-form system prompt.

Motivation

Comparable tools (e.g. Sanity AI Translations) expose brand-voice controls as structured, maintainable settings rather than prompt text:

  • a glossary of preferred/forbidden term translations per locale, with a do-not-translate flag;
  • a style guide for formality and tone/voice;
  • protected phrases the model must never translate (brand names, product names, set terms).

Today our plugin can only influence this through the system prompt, which is hard to maintain, not per-term, and not enforceable. This epic closes the most significant capability gap versus Sanity.

Scope (high-level — to be refined)

  • Glossary: preferred and forbidden translations per term, per target locale; a do-not-translate flag.
  • Tone / style: formality and voice guidance applied consistently to translation requests.
  • Protected terms/phrases: a hard constraint so listed terms are passed through untranslated.
  • Make these editable and maintainable (config and/or editor-facing) and feed them into the translation prompt automatically.
  • Consider hard (rule-based) vs soft (prompt-level) enforcement, and how quality is validated.

Notes

  • Data model, enforcement strategy and UX to be defined in follow-up sub-issues.
  • Relates to the async system-prompt builder (#109) and the provider abstraction.

Priority: High. Details are intentionally high-level for now; sub-issues will follow.

Ngôn ngữ chính
TypeScript
Star
34
Fork
5
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của focusreactive/payload-plugins

Tất cả issue của focusreactive/payload-plugins

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.