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)) {