Skip to content

Commit 638e378

Browse files
authored
Fixed issue with exporting vendor translations #393 (#425)
1 parent d0d4c14 commit 638e378

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Manager.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ public function exportTranslations($group = null, $json = false)
294294
}
295295
}
296296

297-
$path = $path.DIRECTORY_SEPARATOR.$locale.DIRECTORY_SEPARATOR.$group.'.php';
297+
if ($vendor) {
298+
$path = $path.DIRECTORY_SEPARATOR.'messages.php';
299+
} else {
300+
$path = $path.DIRECTORY_SEPARATOR.$locale.DIRECTORY_SEPARATOR.$group.'.php';
301+
}
298302

299303
$output = "<?php\n\nreturn ".var_export($translations, true).';'.\PHP_EOL;
300304
$this->files->put($path, $output);

0 commit comments

Comments
 (0)