From 8dcbdd91e737ea6933172f0107e480b5de309a25 Mon Sep 17 00:00:00 2001 From: Leo Bernard Date: Fri, 15 Nov 2019 14:57:27 +0100 Subject: [PATCH] :bug: Fix missing files leading to access errors --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 23b1990..64f6e5d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -283,7 +283,7 @@ const translate = async ( const cachePath = path.resolve( resolvedCacheDir, sourceLang, - languageFile.name, + languageFile ? languageFile.name : '', ); let cacheDiff: string[] = []; if (fs.existsSync(cachePath)) {