Open Nobody9512 opened 9 months ago
Hi, have you solved this problem? I have the same.
No, I could not solve this problem. I used the i18n instead.
I ran into the same issue and realized it was happening because the translation map was still loading and empty when I tried to use it. You can check the loading
state to track when it's ready.
const { t, loading } = useLaravelReactI18n();
This way, you can ensure your component waits until the translations are fully loaded before rendering them.
Sometimes texts that need to be translated are not visible when the page is refreshed. How can I fix this error? ssr.tsx
Version: php: 8.2 laravel: 10 inertiajs/inertia-laravel": "^0.6.3" "laravel-react-i18n": "^2.0.4"
app.tsx
Dashboard.tsx