aleksdish
12/14/2021, 3:36 PM'posts' => [
'title' => twillTrans('menu.posts'),
'module' => true,
],
And it returns menu.posts not the real translation, not sure what I am doing wrong.pboivin
12/14/2021, 3:37 PMconfig/twill-navigation.php?aleksdish
12/14/2021, 3:39 PMaleksdish
12/14/2021, 3:39 PMconfig()->set('twill-navigation', [
'posts' => [
'title' => twillTrans('menu.posts'),
'module' => true,
],delta107
12/14/2021, 3:40 PMpboivin
12/14/2021, 3:40 PMresources/lang/en/menu.php? (and all other locales)aleksdish
12/14/2021, 3:42 PMpboivin
12/14/2021, 3:42 PMdelta107
12/14/2021, 3:44 PMdelta107
12/14/2021, 3:54 PMdelta107
12/14/2021, 3:54 PMpboivin
12/14/2021, 3:58 PMCrops::SETTINGS)aleksdish
12/14/2021, 3:59 PMdelta107
12/14/2021, 3:59 PMaleksdish
12/14/2021, 4:03 PMaleksdish
12/14/2021, 4:06 PMpboivin
12/14/2021, 4:06 PMconfig()->set('twill', [ ... ]), not what you want.pboivin
12/14/2021, 4:07 PMconfig()->set('twill.block_editor.blocks', [ ... ])aleksdish
12/14/2021, 4:07 PMaleksdish
12/14/2021, 4:08 PMaleksdish
12/14/2021, 4:09 PMpboivin
12/14/2021, 4:11 PMconfig()->set('twill', ...). This will replace all the default configuration, I think this is where your error comes from. Does that make sense?aleksdish
12/14/2021, 4:12 PMaleksdish
12/14/2021, 4:12 PMaleksdish
12/14/2021, 4:15 PMconfig()->set('twill.dashboard', [
'modules' => [
'App\Models\Page' => [
'name' => 'pages',
'routePrefix' => '',
'count' => false,
'create' => true,
'activity' => true,
'draft' => true,
'search' => true,
'label_singular' => twillTrans('block.pages'),
'search_fields' => ['title', 'description']
],
'App\Models\Post' => [
'name' => 'posts',
'routePrefix' => '',
'count' => false,
'create' => true,
'activity' => true,
'draft' => true,
'search' => true,
'label_singular' => twillTrans('block.posts'),
'search_fields' => ['title', 'description']
],
],
]);pboivin
12/14/2021, 4:17 PMconfig()->set('twill.dashboard.modules', [
'App\Models\Page' => [
'name' => 'pages',
'routePrefix' => '',
'count' => false,
'create' => true,
'activity' => true,
'draft' => true,
'search' => true,
'label_singular' => twillTrans('block.pages'),
'search_fields' => ['title', 'description']
],
'App\Models\Post' => [
'name' => 'posts',
'routePrefix' => '',
'count' => false,
'create' => true,
'activity' => true,
'draft' => true,
'search' => true,
'label_singular' => twillTrans('block.posts'),
'search_fields' => ['title', 'description']
],
]);aleksdish
12/14/2021, 4:29 PMconfig()->set('twill-navigation', [
'home' => [
'title' => twillTrans('menu.home'),
'route' => 'home',
],aleksdish
12/14/2021, 4:30 PMRoute::get('/', [App\Http\Controllers\HomeController::class, 'index'])->name('home');pboivin
12/14/2021, 4:31 PMaleksdish
12/14/2021, 4:31 PM