Commit Graph

15 Commits

Author SHA1 Message Date
ph1r3754r73r dc379434bb added themes, updated title and meta for seo and bump to v4.0 2026-06-13 17:06:14 -07:00
Dustin Farley dcfb1f1dd3 ported Jason Haddix's additions, added transform settings 2026-03-21 00:44:16 -07:00
Dustin Farley 8ff45957c8 Sync upstream and refine Translate/PromptCraft/Glitch UI
Made-with: Cursor
2026-03-20 22:57:14 -07:00
Claude afe00b3534 Fix OpenRouter API key not working for translation and improve error handling
- API key retrieval now trims whitespace (pasted keys with spaces caused auth failures)
- Fallback to Vue data property if localStorage is empty (covers forgot-to-save case)
- Auto-saves key to localStorage when found only in Vue data
- HTTP-level error handling (401/402/403) with clear user-facing messages
- Changed HTTP-Referer from window.location.origin to window.location.href
  (origin returns "null" for file:// URLs, breaking OpenRouter requests)
- Handle non-JSON error responses gracefully
- Handle string-type error responses from OpenRouter
- Added missing else branch for empty API responses
- Updated README with AI Translation, PromptCraft, and OpenRouter key setup docs

https://claude.ai/code/session_01DjqbQB8WcZoGVe78sjvh72
2026-03-21 02:11:28 +00:00
pliny 2eefb913ea Update TranslateTool.js 2026-03-20 18:31:22 -07:00
pliny 6144c568f5 Update TranslateTool.js 2026-03-20 18:20:34 -07:00
pliny 9c11572f97 Add files via upload 2026-03-20 18:16:57 -07:00
pliny 43116ba23a Fix formatting in TranslateTool.js 2026-03-20 17:51:38 -07:00
pliny 6a72161544 Update TranslateTool.js 2026-03-20 17:51:25 -07:00
pliny 472a25b7a3 Fix emoji flag for Portugal in TranslateTool.js 2026-03-20 17:47:17 -07:00
pliny 67c2fa9a47 Update TranslateTool.js 2026-03-20 17:46:30 -07:00
pliny 8ebe61cad3 Update TranslateTool.js 2026-03-20 17:44:16 -07:00
pliny 42884083fb Update TranslateTool.js 2026-03-20 17:43:33 -07:00
pliny 50f17b44e2 Update TranslateTool.js 2026-03-20 17:40:06 -07:00
pliny b56e419bca Add files via upload 2026-03-20 17:02:44 -07:00