Skip to content

Commit

Permalink
Merge pull request #8042 from ever-co/fix/translate-service-injector
Browse files Browse the repository at this point in the history
[Fix]: Translate Service Null Injector
  • Loading branch information
EverTechDevOps authored Aug 9, 2024
2 parents 098318a + 73b76ac commit ffc9187
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/desktop-timer/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
import { HTTP_INTERCEPTORS, HttpClient, HttpClientModule } from '@angular/common/http';
import { APP_INITIALIZER, ErrorHandler, Injector, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -17,6 +17,7 @@ import {
ElectronService,
ErrorHandlerService,
GAUZY_ENV,
HttpLoaderFactory,
ImageViewerModule,
LanguageInterceptor,
LanguageModule,
Expand Down Expand Up @@ -53,6 +54,7 @@ import {
NbToastrModule
} from '@nebular/theme';
import { NgSelectModule } from '@ng-select/ng-select';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
import * as Sentry from '@sentry/angular-ivy';
import { environment } from '../environments/environment';
import { AppRoutingModule } from './app-routing.module';
Expand Down Expand Up @@ -101,6 +103,14 @@ if (environment.SENTRY_DSN) {
SplashScreenModule,
ServerDownModule,
AlwaysOnModule,
TranslateModule.forRoot({
extend: true,
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps: [HttpClient]
}
}),
LanguageModule.forRoot(),
NbDatepickerModule.forRoot(),
AboutModule,
Expand Down

0 comments on commit ffc9187

Please sign in to comment.