-
-
Notifications
You must be signed in to change notification settings - Fork 379
fix: missing support for Vue3 vapor mode in the options API #2321
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
Conversation
WalkthroughThe Vue i18n mixin is refactored to migrate from DOM-element-based storage to instance-based storage for the VueI18n composer. The Changes
Sequence DiagramsequenceDiagram
participant Component
participant Lifecycle as Lifecycle Hooks
participant Instance as Component Instance
participant Emitter
Note over Component,Emitter: Old Flow (DOM-based)
Component->>Lifecycle: mounted
Lifecycle->>Instance: check this.$el.__VUE_I18N__
Lifecycle->>Instance: store on this.$el.__VUE_I18N__
Lifecycle->>Emitter: enable
Component->>Lifecycle: unmounted
Lifecycle->>Instance: remove this.$el.__VUE_I18N__
Lifecycle->>Emitter: cleanup & dispose
rect rgb(220, 240, 255)
Note over Component,Emitter: New Flow (instance-based)
Component->>Lifecycle: mounted
Lifecycle->>Instance: getCurrentInstance()
alt instance exists
Lifecycle->>Instance: store on instance.__VUE_I18N__
Lifecycle->>Emitter: enable
else instance is null
Lifecycle->>Lifecycle: runtime guard
end
Component->>Lifecycle: unmounted
Lifecycle->>Instance: getCurrentInstance()
alt instance exists
Lifecycle->>Instance: remove instance.__VUE_I18N__
Lifecycle->>Emitter: cleanup & dispose
end
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai |
|
@kazupon I'll review the changes in this PR right away! ✅ Actions performedReview triggered.
|
Deploying vue-i18n-next with
|
| Latest commit: |
8b98d0b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a6f82b67.vue-i18n-next.pages.dev |
| Branch Preview URL: | https://feat-vue3-vapor-for-v11-2.vue-i18n-next.pages.dev |
@intlify/core
@intlify/core-base
@intlify/devtools-types
@intlify/message-compiler
petite-vue-i18n
@intlify/shared
vue-i18n
@intlify/vue-i18n-core
commit: |
related #2320
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.