MohmmedAshraf / laravel-translations

Laravel Translations UI package provides a user-friendly interface for managing translations in your Laravel application. It simplifies tasks such as adding, editing, deleting, and exporting translations. The package also includes a handy search feature and the ability to invite collaborators for easy translation management
MIT License
649 stars 91 forks source link

Incorrect work with subfolders #7

Closed Aqamarine228 closed 1 year ago

Aqamarine228 commented 1 year ago

Description:

All language files are imported in database correctly, files from lang subfolders also, for example: lang/en/email/layout.php. After any pushed changes all files not from subfolders are changed correctly. All files from subfolders, even if their changes have been pushed, remain untouched, but their changed copy is created inside lang/{language} folder.

Detailed steps to reproduce the issue on a fresh laravel project with installed package:

Create subfolder inside your lang/{language} folder and add there any non empty translation file. Import translations and publish any changes.

MohmmedAshraf commented 1 year ago

Hi @Aqamarine228, at the moment subfolders within the language folder are not supported. Additionally, having subfolders within each language folder may not be considered the best approach. However, I am considering adding support for this in the future, specifically with the vendor folder support release, Thanks for your feedback