Skip to content

Translation does not work because request is not sent from C# controller to Angular #350

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

Closed
dobrinsky opened this issue Aug 2, 2017 · 3 comments

Comments

@dobrinsky
Copy link

dobrinsky commented Aug 2, 2017

Hi,

I am really struggling for a week now and I do not know what I am doing wrong. I am trying to combine your template with one of mine. I managed to get it done and make the app start with no errors, but the translation does not work.

In the html I get only the json tokens, but not what is in the json files(e.g. HOME_FEATURE_LIST_TITLE, not "What does this Starter offer?").

The problem is that I get "cannot read property "request" of null" in temporary-aspnetcore-engine.ts for

{
provide: REQUEST,
useValue: options.request.data.request
}

I really don't know what I am doing wrong. Can you please help me?

My project is here https://github.com/dobrinsky/AngularDefault

@isaacrlevin
Copy link
Contributor

@dobrinsky have you tried since #376 was merged?

@dobrinsky
Copy link
Author

Hi,

I have given up on this. I was too deep into problems. I deleted the project, created it again with . NET Core 2 and Angular 4.3.6.

I also had problems with it:

ngx-translate/core#649

But with the help of @icehowler I managed to solve it.

My project can be found here:

https://github.com/dobrinsky/AngularDefault

Hope this helps others.

@isaacrlevin
Copy link
Contributor

@dobrinsky thanks for the link, I am going to close this issue

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

2 participants