-
Notifications
You must be signed in to change notification settings - Fork 423
Open
Labels
in-progressA fix or resolution is in progressA fix or resolution is in progresstype: bugSomething isn't workingSomething isn't working
Description
Configuration
- Extension name: firestore-translate-text
- Extension version: 0.1.25
- Configuration values:
- Translation Provider: Gemini
Describe the problem
When using the extension to translate text, the original formatting is not preserved. Specifically, line breaks (newlines) are removed or collapsed into a single paragraph after translation.
common.ts:120 contains this code:
const sanitizedText = text
.replace(/\/g, "\\")
.replace(/"/g, '\"')
.replace(/\n/g, " ");
which probably causes this issue.
Steps to reproduce:
- Select or input text containing multiple lines / paragraphs
- Use the extension to translate the text
- Observe the translated output
Expected result
The translated text should preserve the original formatting.
Actual result
All line breaks are removed, and the translated text is returned as a single block of text.
Metadata
Metadata
Assignees
Labels
in-progressA fix or resolution is in progressA fix or resolution is in progresstype: bugSomething isn't workingSomething isn't working