Skip to content

Comments

[1.x] Move translation files from src/ to the root/lang directory#123

Merged
milwad-dev merged 1 commit intomilwad-dev:1.xfrom
mra9994:refactor/lang
Feb 12, 2026
Merged

[1.x] Move translation files from src/ to the root/lang directory#123
milwad-dev merged 1 commit intomilwad-dev:1.xfrom
mra9994:refactor/lang

Conversation

@mra9994
Copy link
Contributor

@mra9994 mra9994 commented Feb 10, 2026

Summary

Moved translation files from src/ to the root lang/ directory.

Reason

  • src/ is reserved for PSR-4 autoloadable PHP code and should contain only classes/interfaces.
  • Composer scans this directory based on PSR-4 autoloading.
  • Translation files are not PSR-4 PHP classes; they are language resources (arrays).
  • To follow Laravel conventions and keep a clear separation between source code and resources, translations were moved to the lang/ directory.

Testing

  • All tests were executed successfully.

Copy link
Owner

@milwad-dev milwad-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@milwad-dev milwad-dev merged commit cb3bd0f into milwad-dev:1.x Feb 12, 2026
25 checks passed
@milwad-dev milwad-dev changed the title refactor: Move translation files from src/ to the root/lang directory [1.x] Move translation files from src/ to the root/lang directory Feb 12, 2026
@milwad-dev milwad-dev changed the title [1.x] Move translation files from src/ to the root/lang directory [1.x] Move translation files from src/ to the root/lang directory Feb 12, 2026
@mra9994 mra9994 deleted the refactor/lang branch February 13, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants