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 trying to use vue-i18n programatically in my app, directly in Javascript. As you can see in the first image, when I run in dev, I have that source data which contains the key that I need, so if I do attribute.source, I get types, awesome.
The problem is that when I use npm run build, that attribute changes to the second image and I no longer have the source data, so my attribute.source is now undefined as you can see in the second image here:
How can I get that "types" value that is specified in "attribute" key?
Expected behavior
I feel that .source should keep sending us the same data in build and dev.
We need a solution to this issue, but we need the minimue reproduction code that can actually confirm the issue with anyone. we need a github repo or stackbliz where anyone can reproduce the issue.
If you would be faced this issue agina, please you would open the new issue.
thanks!
This is a repost of this, I didn't notice I posted on 2.x while I was using 3.x, my bad 馃槶
Original post:
Reporting a bug?
Hi! I'm not sure if this is the right way to talk about my situation. I'm really sorry if it isn't.
I have a file which contains my locale data, one of them contains something like this:
I'm trying to use vue-i18n programatically in my app, directly in Javascript. As you can see in the first image, when I run in
dev
, I have thatsource
data which contains the key that I need, so if I doattribute.source
, I gettypes
, awesome.The problem is that when I use
npm run build
, that attribute changes to the second image and I no longer have thesource
data, so myattribute.source
is nowundefined
as you can see in the second image here:How can I get that "types" value that is specified in "attribute" key?
Expected behavior
I feel that
.source
should keep sending us the same data inbuild
anddev
.Reproduction
I have no data ):
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: