-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description
What needs to be done?
Since Laravel 11 no longer includes the lang
folder by default, implement a step in the app's initialization process to run the php artisan lang:publish
command automatically. This ensures the translation files are available and the translation feature continues to work in our internal solutions.
Expected Outcome
What is the expected result?
After initialization, the translation files must be published to the lang
folder, allowing the application to use the translation feature without manual intervention.
Verification Scenarios
How can this be tested?
Set up a fresh Laravel >= 11 installation OR remove the
lang
folder in the app.Run the initialization process.
Confirm that the
lang
folder is created with the appropriate translation files.Verify that translation functions return correct values using the published files.
Ensure no errors occur during initialization related to localization.
Test the app for correct translation display where applicable.
Ensure no debug information or errors in the console.