You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
The project should be able to read the language JSON files when compiled for AOT.
Actual/Current Behavior
When compiling for production compiles for AOT, the project cannot find the language JSON files. This results in showing the JSON keys instead of values:
Steps to Implement This Feature
Add @ngneat/transloco-optimize as a dev dependency.
Explicitly enable the aot flag for production builds.
Add transloco:optimize script and use in build and deploy scripts.
Pre-Testing TODOs
What needs to be done before testing.
Run yarn install to install the new @ngneat/transloco-optimize dependency.
Testing Steps
If you are not a member of this project, skip this step
How do the users test this change?
Run ng serve --prod locally OR run yarn run build:prod and then run http-server dist/boilerplate-client-angular after installing http-server.
Load the webapp in a browser.
Confirm that the language values show, not the language keys
Try changing languages.
Confirm that the language changes to the new selected language successfully.
Desired Use Case
The project should be able to read the language JSON files when compiled for AOT.
Actual/Current Behavior
When compiling for production compiles for AOT, the project cannot find the language JSON files. This results in showing the JSON keys instead of values:
Steps to Implement This Feature
@ngneat/transloco-optimize
as a dev dependency.transloco:optimize
script and use in build and deploy scripts.Pre-Testing TODOs
What needs to be done before testing.
yarn install
to install the new@ngneat/transloco-optimize
dependency.Testing Steps
If you are not a member of this project, skip this step
How do the users test this change?
ng serve --prod
locally OR runyarn run build:prod
and then runhttp-server dist/boilerplate-client-angular
after installing http-server.Learning
https://ngneat.github.io/transloco/docs/tools/optimize/
https://github.com/Shift3/bakersfield-goals/pull/87
The text was updated successfully, but these errors were encountered: