New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since 8.9.0, parsing is ignoring files outside the configuration file folder. #939
Comments
refs i18next/i18next-parser#939 - a bug in the parser means that files outside of the package are not being parsed
We've also run into this at Ghost - the commit above is the revert back to v8.8.0 |
refs i18next/i18next-parser#939 - a bug in the parser means that files outside of the package are not being parsed
@karellm Is this issue a bug, or an intentional breaking change? We've had to pause all updates to i18next-parser due to this |
Such a problem also appeared. Any progress? |
Also bumped into this issue. |
Same issue. I had to downgrade to 8.8.0 |
To follow up, I use a monorepo. module.exports = {
contextSeparator: '_',
createOldCatalogs: false,
defaultNamespace: 'translation',
defaultValue: (locale, namespace, key) => {
if (locale === 'en-US') {
return key;
}
return '__NOT_TRANSLATED__';
},
indentation: 2,
keepRemoved: false
keySeparator: false,
lexers: {
js: ['JavascriptLexer'],
ts: ['JavascriptLexer'],
jsx: ['JsxLexer'],
tsx: ['JsxLexer'],
default: ['JavascriptLexer'],
},
lineEnding: 'auto',
locales: ['en-US', 'nl-NL'],
namespaceSeparator: false,
output: '../../locales/$LOCALE.json',
pluralSeparator: '____',
input: '../*/src/**/*.{js,ts,jsx,tsx}',
sort: false,
skipDefaultValues: false,
useKeysAsDefaultValue: false,
verbose: false,
failOnWarnings: false,
customValueTemplate: null,
}; |
It's not intentional but have limited time to look at it currently. If someone can open a PR that would be greatly appreciated. |
馃挜 Regression Report
I'm using NextJS, with Turborepo
My file structure is like:
My configuration file:
Before 8.9.0, running
i18next -c ./i18next-parser.app.config.js
was parsing all related files in apps and packages folders. Now, only files intoi18n
folder are parsed.Last working version
Worked up to version: 8.8.0
Stopped working in version: 8.9.0
Expected behavior
The
input
parameter should allow me to parse files outside the configuration file folder.Your Environment
The text was updated successfully, but these errors were encountered: