Skip to content

Add an intermediate experience during dev#377

Draft
K1DV5 wants to merge 2 commits into
mainfrom
hmr-to-dev
Draft

Add an intermediate experience during dev#377
K1DV5 wants to merge 2 commits into
mainfrom
hmr-to-dev

Conversation

@K1DV5
Copy link
Copy Markdown
Collaborator

@K1DV5 K1DV5 commented May 20, 2026

As it currently stands, there are two supported involvement levels of wuchale as a vite plugin: either fully working doing the extraction, transformation and writing of catalog files etc. or disabled and doing none of those, as if it wasn't installed at all. And that feels like the choice is all-or-nothing.

This proposes a third middle level where code that uses messages that are already in the catalog is transformed to use them, but new messages are not extracted and pass through with no modification. It essentially acts in a sort of read-only mode and no catalog modification happens. (This is the standard behavior of Lingui and other tools where you need to run some command to "detect" new messages.)

Therefore the config surface will change: hmr is renamed to dev and accepts 'full' | 'read' | false.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 20, 2026

⚠️ No Changeset found

Latest commit: f165bd9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Stadly
Copy link
Copy Markdown
Contributor

Stadly commented May 20, 2026

You might want to take #376 into consideration too. Might be useful with an option that does not mark strings as obsolete? Or maybe you can think of a better solution :)

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