Add translations

This commit is contained in:
Barry vd. Heuvel
2024-12-29 19:26:20 +01:00
parent 1353c67516
commit 701cf67ba0
2 changed files with 165 additions and 1 deletions
+22 -1
View File
@@ -192,7 +192,7 @@ class MetaCommand extends Command
'configs' => $this->loadTemplate('configs')->pluck('name')->filter(),
'routes' => $this->loadTemplate('routes')->pluck('name')->filter(),
'views' => $this->loadTemplate('views')->pluck('key')->filter(),
'translations' => $this->loadTemplate('translations')->filter()->keys(),
];
}
@@ -217,9 +217,30 @@ class MetaCommand extends Command
'\route()' => [
0 => 'routes',
],
'\Illuminate\Support\Facades\Route::get()' => [
0 => 'routes',
],
'\Illuminate\Routing\Router::get()' => [
0 => 'routes',
],
'\view()' => [
0 => 'views',
],
'\Illuminate\Support\Facades\View::make()' => [
0 => 'views',
],
'\Illuminate\View\Factory::make()' => [
0 => 'views',
],
'\__()' => [
0 => 'translations',
],
'\trans()' => [
0 => 'translations',
],
'\Illuminate\Contracts\Translation\Translator::get()' => [
0 => 'translations',
],
];
}