You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Composition API. I have some global i18n messages as well as some messages that are specific to a component (SFC).
I'm preparing i18n in every component like this:
//myLocalSFC.vueimport{useI18n}from"vue-i18n";importmessagesfrom"./myLocalSFC.i18n.json";const{ t }=useI18n({ messages });
When calling the translation function t, I can successfully retrieve messages from global scope as long as they're not contained inside my local i18n messages.
However, if my local messages contain links to global messages like
//myLocalSFC.i18n.json
{
"en": {
"helloWorld": "Message from global @:myGlobalKey.myGlobalMessage"
}
}
the global link cannot be resolved and comes up empty.
Expected behavior
If global fallback exists by default in any capacity, I would also expect global resolution of linked messages to work.
Reporting a bug?
I'm using Composition API. I have some global i18n messages as well as some messages that are specific to a component (SFC).
I'm preparing i18n in every component like this:
When calling the translation function
t
, I can successfully retrieve messages from global scope as long as they're not contained inside my local i18n messages.However, if my local messages contain links to global messages like
the global link cannot be resolved and comes up empty.
Expected behavior
If global fallback exists by default in any capacity, I would also expect global resolution of linked messages to work.
Reproduction
trivial
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: