Skip to content

Commit ed53b61

Browse files
committed
fix LanguageFileService
1 parent 536718d commit ed53b61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Services/LanguageFileService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ private function buildFileContent()
2626
$translation = include $this->naming->getFile();
2727
}
2828

29+
if (!isset($translation)) {
30+
$translation = [];
31+
}
32+
2933
$translation = array_add($translation, $this->naming->getName(), [
3034
'singular' => $this->naming->getSingular(),
3135
'plural' => $this->naming->getPlural(),

0 commit comments

Comments
 (0)