diff --git a/src/util/file-system.ts b/src/util/file-system.ts index 3256963..be33dff 100644 --- a/src/util/file-system.ts +++ b/src/util/file-system.ts @@ -48,7 +48,7 @@ export const loadTranslations = ( fileType: FileType = 'auto', withArrays = false, ) => - globSync(`${directory}/*.json`, { ignore: exclude }).map((f) => { + globSync(`${directory}/*.json`, { ignore: exclude, cwd: directory }).map((f) => { const json = require(path.resolve(directory, f)); const type = fileType === 'auto' ? detectFileType(json) : fileType;