-
Notifications
You must be signed in to change notification settings - Fork 47
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
Bug: transloco-keys-manager find not working #127
Comments
@vshende2 Please provide a reproduction. |
@shaharkazaz sorry I don't have any demo project to repro. Could you please provide any sample where we can test transloco-keys-manager find command? |
@vshende2 Just create a new Angular project and add Transloco and the Transloco keys manager. |
I have a similar issue where it just outputs "Translations path provided doesn't exists!" even though the path exists. The extract function works with the settings I have, only the find function doesn't work. My config: module.exports = {
rootTranslationsPath: 'src/assets/i18n/',
langs: ['de', 'en'],
keysManager: {
defaultValue: 'MissingTranslation',
sort: true,
},
}; Edit: |
@HitomiTenshi This isn't related to this issue. you are welcome to create a new issue and provide a reproduction, otherwise, it won't be resolved. |
@shaharkazaz Unfortunately I am not able to create repro sample. I am just trying to use transloco key manager in my project. Please check if below full logs helps to guess the issue: e [SyntaxError]: Expected " " or "]" but "c" found. |
@vshende2 Please run the command in debug mode |
@shaharkazaz I did "i18n:extract": "set DEBUG=* & transloco-keys-manager extract", and it throw same error after below
馃悶 DEBUG - Config: 馃悶 DEBUG - Configuration Paths: 馃悶 DEBUG - Scopes: } +0ms 馃暤 馃攷 Starting Search For Missing Keys 馃攳 馃暤 |
@vshende2 Please update the package to v3.3.5 and run: |
@shaharkazaz Thanks. Above solution works for me. 馃挴 ( Is there way to skip problematic file ) |
@vshende2 Not sure I fully understood your issue, happy it's resolved. |
Is there an existing issue for this?
Is this a regression?
No
Current behavior
npm run i18n:find
馃暤 馃攷 Starting Search For Missing Keys 馃攳 馃暤
C:\UI_POC\UI\node_modules\esquery\dist\esquery.min.js:1
.....
......
e [SyntaxError]: Expected " " or "]" but "c" found.
at Object.parse (C:\UI_POC\UI\node_modules\esquery\dist\esquery.min.js:1:29413)
........
\UI\node_modules@ngneat\transloco-keys-manager\keys-builder\typescript\index.js:1:721) {
expected: [
{ type: 'literal', text: ' ', ignoreCase: false },
{ type: 'literal', text: ']', ignoreCase: false }
],
found: 'c',
location: {
start: { offset: 46, line: 2, column: 9 },
end: { offset: 47, line: 2, column: 10 }
}
}
Expected behavior
It should return missing keys.
Please provide a link to a minimal reproduction of the bug
no-link
Transloco Config
Debug Logs
No response
Please provide the environment you discovered this bug in
Additional context
No response
I would like to make a pull request for this bug
No
The text was updated successfully, but these errors were encountered: