Skip to content

Commit f880dc0

Browse files
Fix #142 Relative Path resolution in LoadTranslations (#143)
1 parent c4be700 commit f880dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/file-system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const loadTranslations = (
4848
fileType: FileType = 'auto',
4949
withArrays = false,
5050
) =>
51-
globSync(`${directory}/*.json`, { ignore: exclude }).map((f) => {
51+
globSync(`${directory}/*.json`, { ignore: exclude, cwd: directory }).map((f) => {
5252
const json = require(path.resolve(directory, f));
5353
const type = fileType === 'auto' ? detectFileType(json) : fileType;
5454

0 commit comments

Comments
 (0)