Skip to content

Commit 69eef1b

Browse files
authored
Make sure export uses basename #417
1 parent c86849a commit 69eef1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Manager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public function missingKey($namespace, $group, $key)
252252

253253
public function exportTranslations($group = null, $json = false)
254254
{
255+
$group = basename($group);
255256
$basePath = $this->app['path.lang'];
256257

257258
if (! is_null($group) && ! $json) {
@@ -270,6 +271,7 @@ public function exportTranslations($group = null, $json = false)
270271
->get());
271272

272273
foreach ($tree as $locale => $groups) {
274+
$locale = basename($locale);
273275
if (isset($groups[$group])) {
274276
$translations = $groups[$group];
275277
$path = $this->app['path.lang'];

0 commit comments

Comments
 (0)