mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2883] [Feature]: Customizable translation prompt presets #1466
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1466
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qvazzar on GitHub (Jun 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2883
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
The current translator in Marinara Engine uses a hardcoded system prompt with no way to customize it. Users who want to:
…have no way to do this without modifying the source code.
This was previously requested in issue #525, which was closed as
scope-risk. This implementation addresses the scope concerns by keeping the change backward-compatible and limiting scope to prompt customization only — no sampler controls, no model changes, no reasoning visibility.Proposed solution
Add a Translation Prompt Preset system, modeled after the existing impersonation prompt UI (as suggested in the original issue).
Presets
translation_promptstable stores named preset templates.Template variables (Handlebars)
{{text}}{{language}}{{sourceLanguage}}{{charName}}{{userName}}{{chat}}Where custom prompts apply
UI (Chat Settings → Translation, AI mode)
Dropdown with preset list, create/rename/delete buttons, editable textarea (debounced auto-save), filter code block checkbox, chat context count. System preset shown in read-only mode.
Alternatives considered
Server-side template rendering — renders Handlebars on the server instead of the client. Rejected because it requires sending chat context in the translate request, which the client already has.
Single per-chat override field — a single textarea override without presets. Rejected because presets are reusable across chats and provide better UX.
Extending the existing translate endpoint with hardcoded options — rejected because it doesn't scale (each new variation would require code changes).
Additional context
pnpm checkpassesImplementation ready — the feature is fully implemented and tested on a local fork. A draft PR against
stagingcan be opened once the direction is agreed upon.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 27, 2026):
Sure, I'll add the prompt to edit in the Translation section of Chat Settings in any mode. Will make it so the new prompt replaces the default one, but you will have an option to restore the original.
@SpicyMarinara commented on GitHub (Jun 27, 2026):
Implemented the AI translation prompt override in Chat Settings.
What changed:
Validation: