We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using below code for transkation. It's totally working fine on localhost but when I deploy this on dev environment it's giving me below error.
Build created for publish also showing the json files and uloaded succesfully on server. Can anyone help me with this issue.
angular 12 ngx-translate/core@13.0.0 @ngx-translate/http-loader@6.0.0 .... import { HttpClient } from '@angular/common/http'; import { TranslateLoader, TranslateModule, TranslateService } from '@ngx-translate/core'; import { TranslateHttpLoader } from '@ngx-translate/http-loader';
export function HttpLoaderFactory(http: HttpClient) { return new TranslateHttpLoader(http); }
@NgModule({ declarations: [ ... ], imports: [ ... ... TranslateModule.forRoot( { loader: { provide: TranslateLoader, useFactory: HttpLoaderFactory, deps: [HttpClient] } } ) ], providers: [ HttpClient, { provide: LocationStrategy, useClass: HashLocationStrategy, }, { provide: HTTP_INTERCEPTORS, useClass: MyInterceptor, multi: true } ], bootstrap: [AppComponent], }) ...
The text was updated successfully, but these errors were encountered:
If you can't access the file when entering the given url into your browser by hand, its a config issue of your webserver
Sorry, something went wrong.
No branches or pull requests
I am using below code for transkation.
It's totally working fine on localhost but when I deploy this on dev environment it's giving me below error.
Build created for publish also showing the json files and uloaded succesfully on server.
Can anyone help me with this issue.
angular 12
ngx-translate/core@13.0.0
@ngx-translate/http-loader@6.0.0
....
import { HttpClient } from '@angular/common/http';
import { TranslateLoader, TranslateModule, TranslateService } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http);
}
@NgModule({
declarations: [
...
],
imports: [
...
...
TranslateModule.forRoot(
{
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps: [HttpClient]
}
}
)
],
providers: [ HttpClient,
{
provide: LocationStrategy,
useClass: HashLocationStrategy,
},
{ provide: HTTP_INTERCEPTORS, useClass: MyInterceptor, multi: true } ],
bootstrap: [AppComponent],
})
...
The text was updated successfully, but these errors were encountered: