joedixon / laravel-translation

Translation management for your Laravel application.
MIT License
698 stars 231 forks source link

Use `/lang` instead of `/resources/lang` #246

Closed efectn closed 1 year ago

efectn commented 2 years ago

Describe the bug If laravel-translation package shares languages to resources/lang, Laravel uses resources/lang as default langPath (you can check it by using app()->langPath()). And then, it causes problem if we don't put any language files in resources/lang.

Expected behavior Package should use lang as default language path.

Screenshots 2022-09-02_20-57

Desktop (please complete the following information):

If you're OK, i can create a PR for this :rocket:

ProfConsulting commented 1 year ago

True. Vote +1

HayderThamer92 commented 1 year ago

True. Vote +1

joedixon commented 1 year ago

A PR would be great 🙌

ruwad-co commented 1 year ago

True. Vote +1

riomigal commented 1 year ago

Just as an info, since I had similiar issue. You need just to delete the directory /resources/lang (copy existing files if needed in /lang). Laravel and the plugin use automatically the /lang folder...