Skip to content

Auto detect lang directories in module root#117

Open
gehrisandro wants to merge 2 commits into
InterNACHI:mainfrom
gehrisandro:feat/auto-detect-lang-directories-in-module-root
Open

Auto detect lang directories in module root#117
gehrisandro wants to merge 2 commits into
InterNACHI:mainfrom
gehrisandro:feat/auto-detect-lang-directories-in-module-root

Conversation

@gehrisandro

Copy link
Copy Markdown

First, thanks a lot for the package @inxilpro 🥳

This PR allows the lang directory to be in the module root besides the currently required nesting within the resources directory.

With this change, we can have the same directory structure as Laravel has introduced in version 9: https://laravel.com/docs/9.x/upgrade#the-lang-directory

Before:

resources/
  lang/
    en/
      page-1.php
      page-2.php

After:

lang/
  en/
    page-1.php
    page-2.php

// or

resources/
  lang/
    en/
      page-1.php
      page-2.php

This is a non-breaking change.

@inxilpro

Copy link
Copy Markdown
Contributor

Great idea. I'll review as soon as v3 is out next week!

@roble

roble commented Jun 10, 2026

Copy link
Copy Markdown

Would be great to have this feature. Looking forward to it!

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.

3 participants