scribe-cms 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.cjs +10 -5
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +10 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/src/translate/prompts/translation-prompt.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.cjs
CHANGED
|
@@ -3364,10 +3364,10 @@ var LOCALE_NAMES = {
|
|
|
3364
3364
|
};
|
|
3365
3365
|
function defaultLocalizationPrompt(localeName, locale) {
|
|
3366
3366
|
return [
|
|
3367
|
-
`
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3367
|
+
`Write the content above in natural ${localeName} (${locale}), as if it had been originally authored by a native ${localeName} copywriter for that market.`,
|
|
3368
|
+
`Preserve the source tone and brand voice, but express every idea the way ${localeName} copy actually reads \u2014 never word-for-word.`,
|
|
3369
|
+
`Use native ${localeName} typographic conventions for quotation marks, apostrophes, and spacing around punctuation \u2014 not the source language's.`,
|
|
3370
|
+
`Before returning, re-read each ${localeName} sentence on its own: if it is ambiguous, unidiomatic, or reads like a translation, rewrite it.`
|
|
3371
3371
|
].join(" ");
|
|
3372
3372
|
}
|
|
3373
3373
|
function buildLocalizationPrompt(promptOverride, localeName, locale) {
|
|
@@ -3377,7 +3377,12 @@ function buildLocalizationPrompt(promptOverride, localeName, locale) {
|
|
|
3377
3377
|
|
|
3378
3378
|
${localeDirective}`;
|
|
3379
3379
|
}
|
|
3380
|
-
var TASK_FRAMING =
|
|
3380
|
+
var TASK_FRAMING = [
|
|
3381
|
+
"You are a native-speaker marketing copywriter producing the localized edition of the content below. The target language is specified at the end of this prompt.",
|
|
3382
|
+
"You are NOT translating a document. Each sentence in the source tells you the INTENT \u2014 what it must make the reader feel or understand. Write copy that accomplishes the same thing, the way a native copywriter would have written it from scratch.",
|
|
3383
|
+
"Never mirror the source sentence structure when the target language would naturally phrase the idea differently. Calqued syntax is the #1 failure mode.",
|
|
3384
|
+
"When the source uses wordplay, an idiom, or a punchy rhetorical device, recreate the effect rather than the words. If no natural equivalent exists, write a plain, confident line that carries the same message \u2014 never a literal rendering that sounds odd or ambiguous in the target language."
|
|
3385
|
+
].join("\n");
|
|
3381
3386
|
function buildOutputFormatLine(hasFrontmatter, slugStrategy) {
|
|
3382
3387
|
if (!hasFrontmatter) {
|
|
3383
3388
|
return slugStrategy === "localized" ? "`body` (string, full MDX body), `slug` (string)." : "`body` (string, full MDX body).";
|