Skip to content

Commit

Permalink
Merge pull request #14 from felipe-balloni/fix-translations
Browse files Browse the repository at this point in the history
Fix translations
  • Loading branch information
jeffgreco13 authored Feb 9, 2022
2 parents 6a8679c + 9af6434 commit 09cf046
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions resources/lang/pt_BR/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
8 changes: 4 additions & 4 deletions src/Http/Livewire/Auth/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
4 changes: 3 additions & 1 deletion src/Http/Livewire/Auth/ResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,20 @@ 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"),
];
} 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')),
Expand Down
4 changes: 2 additions & 2 deletions src/Pages/MyProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 09cf046

Please sign in to comment.