Skip to content

buildTranslationPrompt

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/l10n/translation-format.ts

The translation prompt. Output contract: first line TITLE: <translated title>, then a blank line, then ONLY the translated markdown. parseTranslationOutput tolerates a model that forgets the title line (title falls back to the source).

Signature

ts
function buildTranslationPrompt(input: TranslationPromptInput): string

Parameters

NameType
inputTranslationPromptInput

Returns: string

Was this page helpful?

Download as PDF