Skip to content

Publish translations #59

@DenTray

Description

@DenTray

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?

  1. Set up a fresh Laravel >= 11 installation OR remove the lang folder in the app.

  2. Run the initialization process.

  3. Confirm that the lang folder is created with the appropriate translation files.

  4. Verify that translation functions return correct values using the published files.

  5. Ensure no errors occur during initialization related to localization.

  6. Test the app for correct translation display where applicable.

  7. Ensure no debug information or errors in the console.


Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions