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

not working with `JsonResource::withoutWrapping();` #78

Closed SalemCode8 closed 7 months ago

SalemCode8 commented 9 months ago

If the laravel application is using JsonResource::withoutWrapping(); the whole translation ui won't work.

after a little of checking looks like in the translations main page the code is accessing the translations as follows translations.data which is in case of JsonResource::withoutWrapping(); It will be just translations.

tried to do this change as PR but as the package only have the compiled JS code it'll be so hard to do so

SalemCode8 commented 9 months ago

after another look it looks like this affecting every page in the ui not only the main page

MohmmedAshraf commented 7 months ago

This should be fixed in the latest release.