We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e70bdc commit 1567da7Copy full SHA for 1567da7
src/Mariuzzo/LaravelJsLocalization/Generators/LangJsGenerator.php
@@ -103,7 +103,7 @@ protected function getMessages()
103
$key = str_replace('\\', '.', $key);
104
$key = str_replace('/', '.', $key);
105
106
- $messages[$key] = include "${path}/${pathName}";
+ $messages[$key] = include $path.DIRECTORY_SEPARATOR.$pathName;
107
}
108
109
return $messages;
@@ -136,6 +136,8 @@ protected function isMessagesExcluded($filePath)
136
return false;
137
138
139
+ $filePath = str_replace(DIRECTORY_SEPARATOR,'/',$filePath);
140
+
141
$localeDirSeparatorPosition = strpos($filePath, '/');
142
$filePath = substr($filePath, $localeDirSeparatorPosition);
143
$filePath = ltrim($filePath, '/');
0 commit comments