Skip to content

Commit 5177fea

Browse files
committed
Fix tag resource
1 parent 8aba535 commit 5177fea

File tree

3 files changed

+22
-25
lines changed

3 files changed

+22
-25
lines changed

resources/lang/en/filament-flexible-content-block-pages.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
return [
44
'pages' => [
5-
'lbl' => 'Page',
6-
'plural_lbl' => 'Pages',
5+
'lbl' => 'page',
6+
'plural_lbl' => 'pages',
77
'nav_group' => 'Website',
88
'tabs' => [
99
'lbl' => 'Page',
@@ -17,15 +17,15 @@
1717
],
1818
],
1919
'redirects' => [
20-
'redirects_lbl' => 'Redirect',
21-
'redirects_plural_lbl' => 'Redirects',
20+
'redirects_lbl' => 'redirect',
21+
'redirects_plural_lbl' => 'redirects',
2222
'redirect_old_url' => 'Old URL',
2323
'redirect_new_url' => 'New URL',
2424
'redirect_status_code' => 'Status code',
2525
],
2626
'settings' => [
27-
'settings_lbl' => 'Setting',
28-
'settings_plural_lbl' => 'Settings',
27+
'settings_lbl' => 'setting',
28+
'settings_plural_lbl' => 'settings',
2929
'navigation_group' => 'Settings',
3030
'settings_tab_site_general' => 'General',
3131
'settings_site_title' => 'Website title',
@@ -44,14 +44,14 @@
4444
],
4545
'tag_types' => [
4646
'navigation_group' => 'Settings',
47-
'tag_type_plural_lbl' => 'Tag types',
48-
'tag_type_lbl' => 'Tag type',
47+
'tag_type_plural_lbl' => 'tag types',
48+
'tag_type_lbl' => 'tag type',
4949
'tag_type_is_default_type_lbl' => 'Is default tag type',
5050
],
5151
'tags' => [
5252
'navigation_group' => 'Settings',
53-
'tag_plural_lbl' => 'Tags',
54-
'tag_lbl' => 'Tag',
53+
'tag_plural_lbl' => 'tags',
54+
'tag_lbl' => 'tag',
5555
'tag_type_lbl' => 'Tag type',
5656
'tag_type_hint' => 'You can assign a type to use this tag only on certain page types.',
5757
],

resources/lang/nl/filament-flexible-content-block-pages.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
return [
44
'pages' => [
5-
'lbl' => 'Pagina',
6-
'plural_lbl' => 'Pagina\'s',
5+
'lbl' => 'pagina',
6+
'plural_lbl' => 'pagina\'s',
77
'nav_group' => 'Website',
88
'tabs' => [
99
'lbl' => 'Pagina',
@@ -17,15 +17,15 @@
1717
],
1818
],
1919
'redirects' => [
20-
'redirects_lbl' => 'Redirect',
21-
'redirects_plural_lbl' => 'Redirects',
20+
'redirects_lbl' => 'redirect',
21+
'redirects_plural_lbl' => 'redirects',
2222
'redirect_old_url' => 'Oude URL',
2323
'redirect_new_url' => 'Nieuwe URL',
2424
'redirect_status_code' => 'Status code',
2525
],
2626
'settings' => [
27-
'settings_lbl' => 'Instelling',
28-
'settings_plural_lbl' => 'Instellingen',
27+
'settings_lbl' => 'instelling',
28+
'settings_plural_lbl' => 'instellingen',
2929
'navigation_group' => 'Instellingen',
3030
'settings_tab_site_general' => 'Algemeen',
3131
'site_title' => 'Titel van de website',
@@ -44,14 +44,14 @@
4444
],
4545
'tag_types' => [
4646
'navigation_group' => 'Instellingen',
47-
'tag_type_plural_lbl' => 'Tagtypes',
48-
'tag_type_lbl' => 'Tagtype',
47+
'tag_type_plural_lbl' => 'tagtypes',
48+
'tag_type_lbl' => 'tagtype',
4949
'tag_type_is_default_type_lbl' => 'Is standaard tagtype',
5050
],
5151
'tags' => [
5252
'navigation_group' => 'Instellingen',
53-
'tag_plural_lbl' => 'Tags',
54-
'tag_lbl' => 'Tag',
53+
'tag_plural_lbl' => 'tags',
54+
'tag_lbl' => 'tag',
5555
'tag_type_lbl' => 'Tag type',
5656
'tag_type_hint' => 'Je kunt een type toewijzen om deze tag alleen op bepaalde paginatypes te gebruiken.',
5757
],

src/Resources/TagResource.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,9 @@ public static function table(Table $table): Table
8585
->columns([
8686
TextColumn::make('name')
8787
->label(flexiblePagesTrans('form_component.name_lbl')),
88-
TextColumn::make('type')
88+
TextColumn::make('tagType.name')
8989
->label(flexiblePagesTrans('tags.tag_type_lbl'))
90-
->badge()
91-
->formatStateUsing(function ($state): string {
92-
return $state['name'];
93-
}),
90+
->badge(),
9491
])
9592
->filters([
9693
//

0 commit comments

Comments
 (0)