Closed muhammedkaraoglu closed 2 years ago
Is this a problem or is it my fault? @xiCO2k
Hey @muhammedkaraoglu can't find any relating with that delay, what is the filesize for that lang file?
@xiCO2k public/build/assets/php_tr.32683819.js 11.00 KiB / gzip: 2.62 KiB
The important thing is the "components" and "app.js" loading before the lang file.
if you want to make sure it is not a "lazyLoad" you can use the globEager
instead.
Check the SSR import suggestion: https://github.com/xiCO2k/laravel-vue-i18n#ssr-server-side-rendering
This worked for me, thanks a lot @xiCO2k .
no problem anytime.
Hello, first of all sorry for my English, I use google translate.
When I use "npm run dev", the translation process is done quickly without any problems, but when I do "npm run build", the file
"php_tr.32683819.js
" loads quite late depending on the internet speed. This causes "keys" to appear in the first opening of the page.As seen in the picture, "php_tr.32683819.js" file is loaded 2000ms after the page is opened.
Dependencies "laravel-vue-i18n": "^2.2.2", "vite": "^3.0.0", "vue": "^3.2.31"
Laravel 9+
vite.config.js
app.js