<i18n-t> message scope resolution should start at current component #729
Labels
i18n-t
🔨 p3-minor-bug
Priority 3: a bug in an edge case that only affects very specific usage
Type: Bug
Bug or Bug fixes
Reporting a bug?
If a child component declares i18n messages, i18n-t will not find the parent messages.
It seems to stop searching in the hierarchy once it finds a component with i18n messages.
Example, in the C1 component below, the translation keys
hello
andworld
should use the component's i18n messages, even if C2 and C3 declare their own i18n messages.C1.vue:
C2.vue:
C3.vue:
However, in the block on the C1 component, the keys
hello
andworld
are not resolved, as they are not found in C2, and in the block on the C1 component, the keys resolve to the values found in the C3 component.Originally posted by @semiaddict in #708 (comment)
Expected behavior
In both cases, the
hello
andworld
should resolve to C1's values.Reproduction
A reproduction example can be found in branch issue-708 of https://github.com/semiaddict/vue-i18n-transition-bug/tree/issue-708
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: