Skip to content

Commit

Permalink
reafactor: change the folder that languages are loaded from
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Apr 23, 2022
1 parent d227d80 commit c480185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Loaders/LocalizationLoaderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait LocalizationLoaderTrait
{
public function loadLocalsFromContainers($containerPath): void
{
$containerLocaleDirectory = $containerPath . '/Resources/Languages';
$containerLocaleDirectory = $containerPath . '/Languages';
$containerName = basename($containerPath);
$pathParts = explode(DIRECTORY_SEPARATOR, $containerPath);
$sectionName = $pathParts[count($pathParts) - 2];
Expand All @@ -32,7 +32,7 @@ private function buildLocaleNamespace(?string $sectionName, string $containerNam

public function loadLocalsFromShip(): void
{
$shipLocaleDirectory = base_path('app/Ship/Resources/Languages');
$shipLocaleDirectory = base_path('app/Ship/Languages');
$this->loadLocals($shipLocaleDirectory, 'ship');
}
}

0 comments on commit c480185

Please sign in to comment.