-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translations not working inside layout (App.vue) #93
Comments
Hey @hazj will investigate that ASAP |
Hey @hazj did you already try this with inertia |
Hello, |
Yea me too, I don't think it should affect.
Also if you want to try fix this, I would be glad to review it.
Thanks.
…On Sat, Jan 21, 2023 at 9:00 PM Haz ***@***.***> wrote:
Hello,
Not yet. I will try it soon. I didn't see anything in the v1 changelog
that would have an affect on this. I could be wrong though. I'll keep you
posted.
—
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGI6MCIRJMSF4SY36HGHDLWTRE6TANCNFSM6AAAAAATJ3RK5U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It made no difference. I'll try to spend some time looking into it. |
@hazj do u find any solution how to fix it?? I have the same problem. |
For me the problem only occurred on initial page load just like @kovinet . I think this was because the translations where loaded after vue had mounted the page. When logging something inside the onMounted callback of vue, and logging something inside the onLoad callback of this package, the onMounted log was shown first. What I ended up doing was mounting the vue instance inside the onLoad callback of this package. I hope I don't destroy something by doing it this way :).
Maybe this comment helps some people that are having the same issue. |
Hello @xiCO2k,
Great package! It works really well, I have been using it for my upcoming project and it's been a breeze. Though I am running into a weird issue that I'm not sure how to solve. Translations don't seem to be working inside a layout (including nested components within). Everything inside the
<slot />
seems to work perfectly. I have a feeling it's something to do with how I am using layouts with Inertia.The same translations that work elsewhere don't work here.
My
App.vue
just contains the usual boilerplate code (nav, global search, etc) so I won't paste it here.What's weird is that for pages that use the default layout (Base.vue), the translations work just fine.
I did some more digging... Could it be related to the workaround?
inertiajs/inertia#651
Maybe you could give some light on this.
The text was updated successfully, but these errors were encountered: