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 do all my translations using Laravel to avoid duplication of work, but make use of these in a React frontend. When I post stuff to production, I store the content of window.LARAVEL_TRANSLATIONS in a file (let's say "resources/js/translations.js") and have a condition that, if I am running in prod, I load messages from the translations.js file because once my frontend is built I'm no longer relying on vite; otherwise, I'm loading window.LARAVEL_TRANSLATIONS.
Today I forgot that step, and my customer wasn't happy at all, but that's another story.
Is it possible to add this option? I could try adding such a feature (although I don't know much about TypeScript), but wanted to discuss with you all. I've searched for a solution, but came empty handed on that.
The text was updated successfully, but these errors were encountered:
Here is my use case:
I do all my translations using Laravel to avoid duplication of work, but make use of these in a React frontend. When I post stuff to production, I store the content of window.LARAVEL_TRANSLATIONS in a file (let's say "resources/js/translations.js") and have a condition that, if I am running in prod, I load messages from the translations.js file because once my frontend is built I'm no longer relying on vite; otherwise, I'm loading window.LARAVEL_TRANSLATIONS.
Today I forgot that step, and my customer wasn't happy at all, but that's another story.
Is it possible to add this option? I could try adding such a feature (although I don't know much about TypeScript), but wanted to discuss with you all. I've searched for a solution, but came empty handed on that.
The text was updated successfully, but these errors were encountered: