-
Notifications
You must be signed in to change notification settings - Fork 829
Open
Description
What's happening?
When using Gemini 2.5 flash lite, it will return an error like
Lingo.dev: [Failed Files]
❌ locales/en-GB/translation.json (nl-NL → en-GB)
Unexpected token 'O', "OK{"source"... is not valid JSON
My fix was adding this to the prompt: Return ONLY raw JSON. Do not include conversational filler, markdown formatting, or status messages like 'OK'.
Exact Reproduction Steps
- Setup Lingo
- "id": "google",
"model": "gemini-2.5-flash-lite" - Run translations
Expected
Correct translations file
Actual
Lingo.dev: [Failed Files]
❌ locales/en-GB/translation.json (nl-NL → en-GB)
Unexpected token 'O', "OK{"source"... is not valid JSON