translate base

This commit is contained in:
Mekan1206
2026-07-31 18:08:08 +05:00
parent a794dacd39
commit 581cb8241c
413 changed files with 9087 additions and 428 deletions

View File

@@ -19,7 +19,7 @@ class UserForm
->required()
->maxLength(255),
TextInput::make('email')
->label('Email address')
->label(__('hr.fields.email_address'))
->email()
->required()
->maxLength(255)
@@ -34,7 +34,14 @@ class UserForm
->relationship('department', 'name')
->searchable()
->preload()
->label('Department (for managers)'),
->label(__('hr.fields.department_for_managers')),
Select::make('locale')
->label(__('hr.fields.locale'))
->options(collect(config('hr.supported_locales'))
->mapWithKeys(fn (string $locale): array => [$locale => config('hr.locale_labels')[$locale]])
->all())
->required()
->default(config('hr.default_locale')),
Select::make('roles')
->relationship('roles', 'name')
->multiple()