Reads package.json and returns i18n directory and module type info.
Directory to start from (e.g. process.cwd())
Object with i18nDir, isEsm, useTypeScript
Error if package.json not found or missing directories.i18n
Reads package.json and returns i18n directory and module type info.