<i18n>
block works in view but not in component
#1872
Labels
Status: Review Needed
Request for review comments
<i18n>
block works in view but not in component
#1872
Reporting a bug?
Vite is configured as stated in the docs: https://vue-i18n.intlify.dev/guide/advanced/sfc.html. My default locale is 'de-DE'.
Put the reproduction code into a view (aka SFC in the 'views' directory) and it will display the localized string as expected.
Put the exact same code into a component (aka SFC in the 'components' directory) that is then used inside a view and it will throw the following errors:
So apparently the scope is based on the view?
If I leave the
<i18n>
block in the view and use the<template>
in the component that is inside the view, it works. But to use the block that way doesn't make any sense.Expected behavior
The
<i18n>
block should work in a component the same way it does in a view.If the fact, that it does not, is by design, this should be explained in the docs.
Reproduction
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: