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

Permission label translation #454

Closed
wants to merge 1 commit into from

Conversation

abdosaeedelhassan
Copy link

Allow permission label to be translated directly from laravel json file translation.

Copy link

what-the-diff bot commented Dec 2, 2024

PR Summary

  • Improved Translation Accuracy
    Adjusted the processing of the headline string inside the getLocalizedResourcePermissionLabel method. This guarantees a proper transformation into string format through the use of toString(). As a result, the handling and presentation of localized data will become more accurate and clear, enhancing user experience in different regions.

@bezhanSalleh
Copy link
Owner

bezhanSalleh commented Dec 5, 2024

Permissions are already localized/translated. And if you want to use the json localization, then you can create them for your locales in the resources/lang/vendor/filament-shield/yourLocals*.json.

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

Successfully merging this pull request may close these issues.

2 participants