xiCO2k / laravel-vue-i18n

Allows to connect your `Laravel` Framework translation files with `Vue`.
MIT License
584 stars 49 forks source link

Key name flashes on screen before translation is displayed #141

Closed travisricks closed 1 year ago

travisricks commented 1 year ago

I've noticed that when the page first loads I see a flash of all the key names, e.g. 'microsite.nav-home' and then the translation, 'Home', displays. I'm not sure how to fix this.

laravel-vue-i18n: 2.6.1 vite: 4.4.1 vue: 3.3.4 @inertiajs/vue3: 1.0.9

Screenshot-001894-2023-07-13at11 08 49

Thanks for any help you can provide!

xiCO2k commented 1 year ago

The solution for that, is this:

https://github.com/xiCO2k/laravel-vue-i18n/issues/117#issuecomment-1627295319