We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f78e32a + 57fd7e5 commit e758be8Copy full SHA for e758be8
Translation/Import/FileImport.php
@@ -52,7 +52,7 @@ public function import(SplFileInfo $file)
52
$domainMessages = $messageCatalogue->all($domain);
53
54
if (!empty($domainMessages)) {
55
- $path = pathinfo($file->getPathname(), PATHINFO_DIRNAME);
+ $path = substr(pathinfo($file->getPathname(), PATHINFO_DIRNAME), strlen(getcwd()) + 1);
56
$translations[$path][$domain]['format'] = $file->getExtension();
57
foreach ($domainMessages as $key => $content) {
58
$translations[$path][$domain]['translations'][$key][$locale] = $content;
0 commit comments