Skip to content
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

Feature(ng add): create files in the public folder instead of assets #818

Open
1 task done
scurk1415 opened this issue Dec 9, 2024 · 0 comments
Open
1 task done

Comments

@scurk1415
Copy link

scurk1415 commented Dec 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Which Transloco package(s) will this feature affect?

Schematics

Is your feature request related to a problem? Please describe

The Angular CLI (18+) generates a public directory instead of an assets directory. This directory is meant for the public/static files.

Describe the solution you'd like

Your ng add schematics should probably take this into account and create the i18n directory in the public directory.
The TranslocoHttpLoader should also point to /i18n/${ lang }.json instead of assets/i18n/${ lang }.json

Describe alternatives you've considered

No alternatives needed?

Additional context

Not sure if this is a Feature request or a Bug

I would like to make a pull request for this feature

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant