Skip to content

parseTranslationOutput

reference
1 min readUpdated

Kind: Function

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

Parse the model output: strip a single wrapping code fence if the model added one anyway, lift the TITLE: first line when present, return the rest as the translated body.

Signature

ts
function parseTranslationOutput(raw: string): ParsedTranslationOutput

Parameters

NameType
rawstring

Returns: ParsedTranslationOutput

Was this page helpful?

Download as PDF