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

Suport for laravel translation directory #90

Open
robov opened this issue Dec 24, 2020 · 3 comments
Open

Suport for laravel translation directory #90

robov opened this issue Dec 24, 2020 · 3 comments

Comments

@robov
Copy link

robov commented Dec 24, 2020

Would be awesome if it would support the laravel resources/lang directories that hold the php arrays for translations in their file/directory structure

@nyavro
Copy link
Owner

nyavro commented Dec 24, 2020

Hi
Could you share a link to some project demonstrating the problem? Or create one? That would be very helpful: I'm not familiar with php arrays translations.

@robov
Copy link
Author

robov commented Dec 24, 2020

Sure..
Laravel project stucture:

|...
| resources
  |.. lang
    |.. en
      |.. auth.php
      |.. validation.php
    |.. de
      |.. auth.php
      |.. validation.php

the auth and validation are the files that contain php arrays with the actual keys and translations
However they could also be nested directories
\en\module1\submodule\file.php

Or they could be json objects

php array:

'translation of key1' ]; These can also be multidimentional arrays Would be awesome to see support for this so I can see the actual translated text of the key in the ide Let me know what you need and how I can support

nyavro added a commit that referenced this issue Dec 24, 2020
@nyavro
Copy link
Owner

nyavro commented Dec 24, 2020

Here is the pull request with demo project: #91
Could you please contribute to it and provide possible cases of translations (php arrays, nested folders, jsons) and its usages?

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