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

Translating Widget and Custom Permission Labels in filament shield #479

Open
Parsa-Biazar opened this issue Jan 2, 2025 · 1 comment · May be fixed by #473
Open

Translating Widget and Custom Permission Labels in filament shield #479

Parsa-Biazar opened this issue Jan 2, 2025 · 1 comment · May be fixed by #473
Assignees
Labels
bug Something isn't working

Comments

@Parsa-Biazar
Copy link

Hello and thank you for this amazing package!

I’ve been using your package to manage role permissions, and it’s incredibly helpful. However, I’ve encountered an issue while listing widgets on the dedicated page for roles.
I want to translate the names of widgets to display them properly in the UI. Unfortunately, I couldn’t find anything in the documentation about how to achieve this.
I’ve tried setting a custom heading for widgets using:

protected $heading = 'something for heading';

While this works, it also displays the label above the widget itself, which makes the UI look inconsistent, and I would prefer not to use this approach.
I’m looking for a way to define widget names or labels in the lang folder for better localization.
Additionally, I’d like to create custom labels for custom permissions in a similar way. Could you please guide me on how to achieve this?
photo_2025-01-02_09-22-54

Thank you for your time and support!

@Parsa-Biazar Parsa-Biazar added the bug Something isn't working label Jan 2, 2025
@bezhanSalleh bezhanSalleh linked a pull request Jan 2, 2025 that will close this issue
@bezhanSalleh
Copy link
Owner

appreciate the kind words, the fix has been PRd will do a release when i can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants