Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lang files in sub-directories of the app not handled (non-vendor) #90

Open
prageeth opened this issue Jun 28, 2019 · 1 comment
Open

Comments

@prageeth
Copy link

  • Laravel Version: 5.8.0
  • PHP Version: 7.2.0
  • Database Driver & Version: mysql

Description:

Language files under sub-directories are not taken into consideration.

e.g.:

/en
   /menu
       menu.php

The above is valid and can be accessed using __('menu/nav.some-key').

However, this package doesn't recognise them.

Steps to reproduce:

Add a language file in the file structure above (with some keys).

Then run php artisan langman:show menu/nav

Excepted Result
See the keys and their translations

Actual Result
No keys are shown

@lauhakari
Copy link

lauhakari commented Jun 5, 2020

Hey @prageeth .

Don't know if you get this solved, but I tried your setup and for me it worked when I just run php artisan langman:show menu instead of php artisan langman:show menu/menu. So seems like you don't have to put in the whole path.

The only problem is, if you have two files that are named the same, so if you have /en/menu.php and /en/menu/menu.php. The command langman:show will pick the first one.

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

No branches or pull requests

2 participants