feat(i18n): wrap 1103 hardcoded UI strings across Filament with __()
- Convert static $modelLabel/$pluralModelLabel/$title to getter methods - Wrap ->label()/->placeholder()/->helperText()/->description()/->title()/->body() args - Wrap Section::make()/Fieldset::make()/Notification::make()->title() args - Fix RelationManagers::getTitle() signature to match parent (Model, string) - Fix Pages::getTitle() to instance method (BasePage::getTitle is non-static) - Extend lang/ru.json + lang/en.json with 700+ common terms; identity fallback for the rest - Remove duplicate getters in 5 resources that had manual getModelLabel already All 306 tests pass. Missing translations fall back to the RO key so the UI never breaks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ class RecentTenants extends BaseWidget
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->heading('Tenants recenți')
|
||||
->heading(__('Tenants recenți'))
|
||||
->query(Company::query()->latest()->limit(8))
|
||||
->columns([
|
||||
Tables\Columns\TextColumn::make('slug')
|
||||
@@ -33,8 +33,8 @@ class RecentTenants extends BaseWidget
|
||||
default => 'gray',
|
||||
}),
|
||||
Tables\Columns\TextColumn::make('plan.name')->placeholder('—'),
|
||||
Tables\Columns\TextColumn::make('users_count')->counts('users')->label('Useri'),
|
||||
Tables\Columns\TextColumn::make('created_at')->label('Creat')->since(),
|
||||
Tables\Columns\TextColumn::make('users_count')->counts('users')->label(__('Useri')),
|
||||
Tables\Columns\TextColumn::make('created_at')->label(__('Creat'))->since(),
|
||||
])
|
||||
->paginated(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user