Skip to content

feat: set up any project, with the javascript snippet when it is not a react app - #1

Merged
floranpagliai merged 2 commits into
mainfrom
feat/any-project
Dec 4, 2026
Merged

floranpagliai merged 2 commits into
mainfrom
feat/any-project

Conversation

@floranpagliai

@floranpagliai floranpagliai commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Summary

  • init no longer refuses a project it does not recognise (Astro, a static site…): it creates an Other sandbox and prints the <script src="https://cdn.weglot.com/weglot.min.js?init=<public key>"> snippet to add to the <head>.
  • The React package is only offered to a React app on Next.js, Vite or webpack, not on Astro (where React only renders islands).
  • --technology React|Other forces the choice.
  • claim recognises an already claimed project by the API's 409 (already_claimed) instead of a 422 without violations. A second claim with the same email gets the 422 "already invited", shown as is.

@floranpagliai
floranpagliai marked this pull request as ready for review December 4, 2026 08:38
floranpagliai and others added 2 commits December 4, 2026 09:47
…a react app

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@floranpagliai
floranpagliai merged commit edd9f81 into main Dec 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants