Skip to content

Commit eb50023

Browse files
committed
french translations + add translatable nav group
1 parent 2b3fddd commit eb50023

5 files changed

+15
-2
lines changed

config/filament-flexible-blocks-asset-manager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
| Navigation group
1717
|--------------------------------------------------------------------------
1818
|
19-
| Sets the navigation group label to which the assets table is added.
19+
| Sets the navigation group label to which the assets table is added. Or if you use translations, set it in this
20+
| translation key: filament-flexible-blocks-asset-manager.navigation_group
2021
*/
2122
'navigation_group' => null,
2223

resources/lang/en/filament-flexible-blocks-asset-manager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
'asset_plural_lbl' => 'Assets',
77
'form_component.name_lbl' => 'Name',
88
'form_component.asset_media_lbl' => 'File',
9+
'navigation_group' => 'Settings',
910
];
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
return [
4+
'asset_nav_lbl' => 'Ressources multimédia',
5+
'asset_lbl' => 'Ressource multimédia',
6+
'asset_plural_lbl' => 'Ressources multimédia',
7+
'form_component.name_lbl' => 'Nom',
8+
'form_component.asset_media_lbl' => 'Fichier',
9+
'navigation_group' => 'Preferences',
10+
];

resources/lang/nl/filament-flexible-blocks-asset-manager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
'asset_plural_lbl' => 'Bestanden',
77
'form_component.name_lbl' => 'Naam',
88
'form_component.asset_media_lbl' => 'Bestand',
9+
'navigation_group' => 'Instellingen',
910
];

src/FilamentFlexibleBlocksAssetManagerConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static function getImageEditor(): ?array
4646

4747
public static function getNavigationGroup(): ?string
4848
{
49-
return self::getConfig('navigation_group');
49+
return self::getConfig('navigation_group') ?? trans('filament-flexible-blocks-asset-manager::filament-flexible-blocks-asset-manager.navigation_group');
5050
}
5151

5252
public static function getAssetRoutePrefix(): ?string

0 commit comments

Comments
 (0)