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

Add Spanish translation and update FilamentEditEnv plugin and component #2

Closed
wants to merge 1 commit into from

Conversation

edeoliv
Copy link
Collaborator

@edeoliv edeoliv commented Jun 23, 2024

Modified English language file. Added Spanish language file. Updated FilamentEditEnvPlugin and ChangeEnvFileComponent to handle default icon.

Icon configuration in ChangeEnvFileComponent

With this modification the FilamentEditEnvPlugin plugin allows you to set a custom icon to be used in the ChangeEnvFileComponent. By default, the icon is heroicon-o-command-line. However, you can customize this icon using the setIcon method.

Example of use

To set a custom icon, use the setIcon method. In the following example, the icon is set to heroicon-o-cube-transparent

FilamentEditEnvPlugin::make()
    ->setIcon(fn () => 'heroicon-o-cube-transparent');

Modified English language file. Added Spanish language file. Updated FilamentEditEnvPlugin and ChangeEnvFileComponent to handle default icon.
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