Skip to content

Commit

Permalink
品牌资源字段和描述的国际化更新
Browse files Browse the repository at this point in the history
- 为品牌资源的父级字段添加了中文名称
- 更新了品牌字段的描述,增加了父级品牌的翻译
- 修正了选择树和表格列的标签,使其使用新的国际化名称
  • Loading branch information
liushoukun committed Oct 9, 2024
1 parent 2ba050e commit 2f96d87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Clusters/Product/Resources/BrandResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public static function form(Form $form) : Form
return $form
->schema([
SelectTree::make('parent_id')
->label(__('red-jasmine-product::brand.fields.parent.name'))
->relationship(
relationship: 'parent',
titleAttribute: 'name',
Expand Down Expand Up @@ -94,7 +95,7 @@ public static function table(Table $table) : Table
return $table
->columns([
Tables\Columns\TextColumn::make('id'),
Tables\Columns\TextColumn::make('parent.name'),
Tables\Columns\TextColumn::make('parent.name')->label(__('red-jasmine-product::brand.fields.parent.name')),
Tables\Columns\TextColumn::make('name')
->label(__('red-jasmine-product::brand.fields.name'))
->searchable(),
Expand Down

0 comments on commit 2f96d87

Please sign in to comment.