diff --git a/resources/lang/pt_BR/default.php b/resources/lang/pt_BR/default.php index 08a356b..51eedeb 100644 --- a/resources/lang/pt_BR/default.php +++ b/resources/lang/pt_BR/default.php @@ -35,6 +35,9 @@ "request_another" => "clique aqui para solicitar reenvio.", ], "profile" => [ + "account" => "Conta", + "profile" => "Perfil", + "my_profile" => "Meu Perfil", "personal_info" => [ "heading" => "Informações pessoais", "subheading" => "Gerencie suas informações pessoais.", diff --git a/src/Http/Livewire/Auth/Register.php b/src/Http/Livewire/Auth/Register.php index de9d648..f904749 100644 --- a/src/Http/Livewire/Auth/Register.php +++ b/src/Http/Livewire/Auth/Register.php @@ -34,20 +34,20 @@ protected function getFormSchema(): array { return [ Forms\Components\TextInput::make("name") - ->label(__("filament-breezy.fields.name")) + ->label(__("filament-breezy::default.fields.name")) ->required(), Forms\Components\TextInput::make("email") - ->label(__("filament-breezy.fields.email")) + ->label(__("filament-breezy::default.fields.email")) ->required() ->email() ->unique(table: config('filament-breezy.user_model')), Forms\Components\TextInput::make("password") - ->label(__("filament-breezy.fields.password")) + ->label(__("filament-breezy::default.fields.password")) ->required() ->password() ->rules(config('filament-breezy.password_rules')), Forms\Components\TextInput::make("password_confirm") - ->label(__("filament-breezy.fields.password_confirm")) + ->label(__("filament-breezy::default.fields.password_confirm")) ->required() ->password() ->same("password"), diff --git a/src/Http/Livewire/Auth/ResetPassword.php b/src/Http/Livewire/Auth/ResetPassword.php index 769f10b..ff8d76c 100644 --- a/src/Http/Livewire/Auth/ResetPassword.php +++ b/src/Http/Livewire/Auth/ResetPassword.php @@ -36,10 +36,12 @@ protected function getFormSchema(): array if ($this->isResetting) { return [ Forms\Components\TextInput::make("password") + ->label(__("filament-breezy::default.fields.password")) ->required() ->password() ->rules(config("filament-breezy.password_rules")), Forms\Components\TextInput::make("password_confirm") + ->label(__("filament-breezy::default.fields.password_confirm")) ->required() ->password() ->same("password"), @@ -47,7 +49,7 @@ protected function getFormSchema(): array } else { return [ Forms\Components\TextInput::make("email") - ->label(__("filament-breezy.fields.email")) + ->label(__("filament-breezy::default.fields.email")) ->required() ->email() ->exists(table: config('filament-breezy.user_model')), diff --git a/src/Pages/MyProfile.php b/src/Pages/MyProfile.php index 0152190..0688edf 100644 --- a/src/Pages/MyProfile.php +++ b/src/Pages/MyProfile.php @@ -57,12 +57,12 @@ protected function getUpdatePasswordFormSchema(): array { return [ Forms\Components\TextInput::make("new_password") - ->label(__('filament-breezy::default.profile.password.fields.new_password')) + ->label(__('filament-breezy::default.fields.new_password')) ->password() ->rules(config('filament-breezy.password_rules')) ->required(), Forms\Components\TextInput::make("new_password_confirmation") - ->label(__('filament-breezy::default.profile.password.fields.new_password_confirmation')) + ->label(__('filament-breezy::default.fields.new_password_confirmation')) ->password() ->same("new_password") ->required(),