diff --git a/src/plugin/index.ts b/src/plugin/index.ts index 023353a..63544ec 100644 --- a/src/plugin/index.ts +++ b/src/plugin/index.ts @@ -63,7 +63,7 @@ export interface I18nDetectorOptions { export async function i18nDetector(opts?: I18nDetectorOptions): Promise { const options = initOptions(opts) - debug('i18nDetector options:', options) + debug('User input i18nDetector options on init:', options) const localeDetector = new LocaleDetector({ root: options.root, diff --git a/src/plugin/locale-detector/LocaleDetector.ts b/src/plugin/locale-detector/LocaleDetector.ts index 4682499..7b98211 100644 --- a/src/plugin/locale-detector/LocaleDetector.ts +++ b/src/plugin/locale-detector/LocaleDetector.ts @@ -86,6 +86,14 @@ export class LocaleDetector { debug(`šŸ—ƒ Path Matcher: ${this._pathMatcher.matcher}`) } + debug(`\nšŸ’Æ The real i18nDetector options: `, { + root: this._rootPath, + localesPaths: this._localesPaths, + pathMatcher: this._pathMatcher.matcher, + parserPlugins: this.getParsers(), + namespace: this._namespace, + }) + await this.loadAll() debug(`šŸ“‚ Loaded files:`, this.files)