-
-
Notifications
You must be signed in to change notification settings - Fork 49
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto updating of main translation entries in Nx project does not work #125
Comments
I do not use nx, but it does not work for me, either. But if I change the file node_modules/@ngneat/transloco-keys-manager/webpack-plugin/generate-keys.js as following, new keys will be added to the translation files in the development time as well, no need to restart ng:
I will use this as a workaround till this issue is solved. |
This actually isn't an Nx specific issue but rather a Windows one, the cause of which is here: |
@austinw-fineart thank you, but I had the problem on MacOS. I don't know if it's still an issue, I'll test it soon. |
I added
It looks like the plugin is looking for that key on line 93 of the webpack-plugin file. Edit to add: |
I would like to use transloco-keys-manager in my angular projects. Each of the projects is a Nx mono repository. The problem: the auto-generation of translation entries doesn't work as expected: Only after a call of
npm start
the translation files are updated, but not while development. I followed the instructions and installed the package as follows:(I created a minimal project for easier reproduction of this issue: https://github.com/julianpoemp/nx-transloco-keys-manager)
nx add @ngneat/transloco
with defaults.nx g @ngneat/transloco:keys-manager
with option "both".webpack-dev.config.js
as follows:"start": "nx serve --extra-webpack-config webpack-dev.config.js",
because we're using Nx.transloco-root-module.ts
as follows:npm start
and checked if "test" was added to en.json and es.json. Yes it worked. If I added moret()
calls to the html file whilenx serve
is still running, the new keys are not added during run time. Only right after runningnpm start
again.general
scope are updated automatically.Expected behaviour
As far as I understand, the "main" translation files (outside the scope) should be updated automatically, too.
How can I solve this?
The text was updated successfully, but these errors were encountered: