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

@@ -12,7 +12,7 @@ class FeedbacksRelationManager extends RelationManager
{
protected static string $relationship = 'feedbacks';
protected static ?string $title = 'Feedback History';
protected static ?string $title = 'app.feedback_history';
public function table(Table $table): Table
{
@@ -23,8 +23,8 @@ class FeedbacksRelationManager extends RelationManager
->searchable()
->url(fn ($record) => FeedbackResource::getUrl('edit', ['record' => $record])),
TextColumn::make('customerProduct.product.name')
->label('Product')
->placeholder('General'),
->label(__('app.product'))
->placeholder(__('app.general')),
TextColumn::make('status')
->badge()
->color(fn (string $state): string => match ($state) {
@@ -37,10 +37,10 @@ class FeedbacksRelationManager extends RelationManager
TextColumn::make('tags.name')
->badge(),
TextColumn::make('feedbackChannel.name')
->label('Channel'),
->label(__('app.channel')),
TextColumn::make('interactions_count')
->counts('interactions')
->label('Interactions'),
->label(__('app.interactions')),
TextColumn::make('created_at')
->dateTime('d/m/Y')
->sortable(),
@@ -48,10 +48,10 @@ class FeedbacksRelationManager extends RelationManager
->filters([
SelectFilter::make('status')
->options([
'pending' => 'Pending',
'processing' => 'Processing',
'resolved' => 'Resolved',
'closed' => 'Closed',
'pending' => __('app.status_pending'),
'processing' => __('app.status_processing'),
'resolved' => __('app.status_resolved'),
'closed' => __('app.status_closed'),
]),
SelectFilter::make('tags')
->relationship('tags', 'name'),