Skip to content

Commit

Permalink
Update LangListService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AidasK authored Apr 11, 2022
1 parent 0aa235f commit 9c77648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LangListService.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function loadLangList($locale, $group, $excludeGroups = '')
if ($this->isGroupList($group)) {
$groups = explode(',', $group);
} else {
$path = resource_path('lang/' . $locale . '/');
$path = lang_path($locale . '/');
$files = $this->getAllFiles($path);
$groups = [];
foreach ($files as $file) {
Expand Down Expand Up @@ -111,7 +111,7 @@ private function writeLangFile($locale, $group, $new_translations)

$header = "<?php\n\nreturn ";

$language_file = resource_path("lang/{$locale}/{$group}.php");
$language_file = lang_path("{$locale}/{$group}.php");

if (!file_exists(dirname($language_file))) {
mkdir(dirname($language_file), 0777, true);
Expand Down

0 comments on commit 9c77648

Please sign in to comment.