We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4be700 commit f880dc0Copy full SHA for f880dc0
src/util/file-system.ts
@@ -48,7 +48,7 @@ export const loadTranslations = (
48
fileType: FileType = 'auto',
49
withArrays = false,
50
) =>
51
- globSync(`${directory}/*.json`, { ignore: exclude }).map((f) => {
+ globSync(`${directory}/*.json`, { ignore: exclude, cwd: directory }).map((f) => {
52
const json = require(path.resolve(directory, f));
53
const type = fileType === 'auto' ? detectFileType(json) : fileType;
54
0 commit comments