Skip to content
New issue

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

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

Already on GitHub? # to your account

[intlify] 'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead with v11 #2056

Closed
4 tasks done
pzgz opened this issue Dec 25, 2024 · 1 comment · Fixed by #2057
Closed
4 tasks done
Labels
Status: Review Needed Request for review comments

Comments

@pzgz
Copy link

pzgz commented Dec 25, 2024

Reporting a bug?

After upgraded to v11, getting following warning in console, event v-t was not used, checked source codes, looks like there's no way to disable this output. Maybe an option to opt-out the directive registration?

[intlify] 'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead with v11

Expected behavior

A way to bypass the warning in console for disturbing or disable the v-t registration before it's removed.

Reproduction

https://stackblitz.com/edit/vitejs-vite-7mewe8xx?file=package.json

System Info

macOS 15.3
vuye 3.5.13

Screenshot

CleanShot 2024-12-25 at 17 40 51@2x

Additional context

No response

Validations

@pzgz pzgz added the Status: Review Needed Request for review comments label Dec 25, 2024
@oleynikyurij
Copy link

similar problem, intlify/unplugin-vue-i18n: 6.0.2, vue-i18n: 11.0.0, nuxt: 3.15.0
`import { createI18n } from 'vue-i18n'
import en from '../locale/en.json'
import de from '../locale/de.json'
import uk from '../locale/uk.json'

export default defineNuxtPlugin(({ vueApp }) => {
const i18n = createI18n({
legacy: false,
globalInjection: true,
locale: 'uk',
messages: {
en, uk, de
}
})
vueApp.use(i18n)
})`

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants