Skip to content

Commit

Permalink
fix: Fix issue where the label is not translated (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarJose123 authored May 22, 2024
2 parents cab3ae0 + 2ae082b commit 0b1f02c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/lang/fr/default.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

return [
'heading' => 'Verouillé',
'user_menu_title' => 'Vérouiller',
'heading' => 'Verrouillé',
'user_menu_title' => 'Verrouiller',
'fields' => [
'password' => 'Mot de passe',
],
Expand Down
2 changes: 1 addition & 1 deletion src/Lockscreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function boot(Panel $panel): void

$panel->userMenuItems([
'lockscreen' => MenuItem::make()
->label(__('filament-lockscreen::default.user_menu_title'))
->label(fn () => __('filament-lockscreen::default.user_menu_title'))
->url(route("lockscreen.{$panel->getId()}.page"))
->icon(config('filament-lockscreen.icon')),
]);
Expand Down

0 comments on commit 0b1f02c

Please sign in to comment.