Skip to content

feat(runtime-utils): support useI18n in mount + render helpers#1477

Merged
danielroe merged 1 commit intonuxt:mainfrom
yamachi4416:feat/support-useI18n-in-mount-render-helpers
Nov 3, 2025
Merged

feat(runtime-utils): support useI18n in mount + render helpers#1477
danielroe merged 1 commit intonuxt:mainfrom
yamachi4416:feat/support-useI18n-in-mount-render-helpers

Conversation

@yamachi4416
Copy link
Copy Markdown
Collaborator

@yamachi4416 yamachi4416 commented Nov 2, 2025

🔗 Linked issue

resolves #743 #1152

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

the i18n plugin is installed on nuxt.vueApp however, useI18n requires appContext.app.__VUE_I18N_SYMBOL__ to be set, which isn't configured on a vueApp created via mount or render, causing useI18n to fail.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Nov 2, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/test-utils@1477

commit: 9ac9851

@yamachi4416 yamachi4416 marked this pull request as ready for review November 2, 2025 23:17
@yamachi4416 yamachi4416 force-pushed the feat/support-useI18n-in-mount-render-helpers branch from 063e4cb to 9ac9851 Compare November 3, 2025 02:58
Copy link
Copy Markdown
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

you are on fire!

@danielroe danielroe merged commit dc46354 into nuxt:main Nov 3, 2025
7 checks passed
@github-actions github-actions bot mentioned this pull request Oct 31, 2025
@yamachi4416 yamachi4416 deleted the feat/support-useI18n-in-mount-render-helpers branch November 3, 2025 22:04
@github-actions github-actions bot mentioned this pull request Dec 4, 2025
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.

@nuxt/test-utils is not working with useI18n from @nuxtjs/i18n

2 participants