( basePath: string, translationPath: string )
| 24 | } |
| 25 | |
| 26 | export async function hasEnglishSource( |
| 27 | basePath: string, |
| 28 | translationPath: string |
| 29 | ) { |
| 30 | const englishRoot = resolve(__dirname, basePath, 'english'); |
| 31 | return await access(join(englishRoot, translationPath), constants.F_OK) |
| 32 | .then(() => true) |
| 33 | .catch(() => false); |
| 34 | } |
no outgoing calls
no test coverage detected