feat: add i18n support for Vietnamese and English
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled

This commit is contained in:
2026-05-04 10:40:39 +00:00
parent 3a8db5cae6
commit 8c6b71cb8a
64 changed files with 4652 additions and 254 deletions

View File

@@ -14,16 +14,19 @@ class UserForm
return $schema
->components([
TextInput::make('name')
->label(__('app.name'))
->required()
->maxLength(255),
TextInput::make('email')
->label(__('app.email'))
->email()
->required()
->maxLength(255)
->unique(ignoreRecord: true),
TextInput::make('password')
->label(__('app.password'))
->password()
->revealable()
->required(fn (string $operation): bool => $operation === 'create')
@@ -33,7 +36,7 @@ class UserForm
->columnSpanFull(),
Select::make('role')
->label('Role')
->label(__('app.role'))
->options(Role::pluck('name', 'name')->toArray())
->required()
->searchable(),