Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using module ID markers #79

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

brawaru
Copy link
Member

@brawaru brawaru commented Nov 14, 2023

Previously VIntl for Nuxt kept track of files that were used as locale
messages and matched module IDs based on them. This, however, was very
unreliable in certain environments.

With this change VIntl for Nuxt now uses 'markers', URL parameters added
to the end of imported module IDs. This allows it to very quickly test
whether a specific module is imported through a message file and should
be processed by the VIntl unplugin.

Previously VIntl for Nuxt kept track of files that were used as locale
messages and matched module IDs based on them. This, however, was very
unreliable in certain environments.

With this change VIntl for Nuxt now uses 'markers', URL parameters added
to the end of imported module IDs. This allows it to very quickly test
whether a specific module is imported through a message file and should
be processed by the VIntl unplugin.
Copy link

changeset-bot bot commented Nov 14, 2023

🦋 Changeset detected

Latest commit: 9d939c1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@vintl/nuxt Minor

Not sure what this means? Click here to learn what changesets are.

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

Copy link

netlify bot commented Nov 14, 2023

Deploy Preview for vintl-nuxt ready!

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/sites/vintl-nuxt/deploys/6552e46bb39d6b00835b8e39
😎 Deploy Preview https://deploy-preview-79--vintl-nuxt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@brawaru brawaru merged commit 9d939c1 into vintl-dev:main Nov 14, 2023
4 checks passed
@brawaru brawaru deleted the feat/id-markers branch November 14, 2023 03:11
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.

1 participant