fulls1z3 / ngx-i18n-router

Route internationalization utility for Angular
MIT License
35 stars 2 forks source link

implement universal-loader w/caching #6

Open fulls1z3 opened 7 years ago

fulls1z3 commented 7 years ago

I'm submitting a ... (check one with "x")

[ ] bug report => check the README and search github for a similar issue or PR before submitting
[ ] support request => check the README and search github for a similar issue or PR before submitting
[X] feature request

Current behavior @nglibs/i18n-router does not have a loader for Angular Universal, using the fs to retrieve data.

Expected/desired behavior The universal-loader must be implemented - retrieving the data using the fs on the server platform, and then caching the result when it will be requested again on the client platform.

Related issue: https://github.com/nglibs/universal-example-app/issues/5

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment: