File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353 "@angular/platform-browser" : " ^7.2.16" ,
5454 "@angular/platform-browser-dynamic" : " ^7.2.16" ,
5555 "@angular/router" : " ^7.2.16" ,
56+ "brfs" : " ^2.0.2" ,
5657 "@ng-bootstrap/ng-bootstrap" : " ^3.0.0" ,
5758 "@ngx-translate/core" : " ^11.0.1" ,
5859 "@ngx-translate/http-loader" : " 4.0.0" ,
9899 "@types/jquery" : " 3.3.31" ,
99100 "@types/lodash" : " 4.14.116" ,
100101 "@types/node" : " ^8.0.10" ,
101- "brfs" : " ^2.0.2" ,
102102 "htmlhint" : " ^0.11.0" ,
103103 "https-proxy-agent" : " ^2.2.3" ,
104104 "install" : " ^0.13.0" ,
Original file line number Diff line number Diff line change @@ -20,12 +20,14 @@ import { CachingInterceptor } from './core/http/http.cache.interceptor';
2020// import ngx-translate and the http loader
2121import { TranslateLoader , TranslateModule } from '@ngx-translate/core' ;
2222import { TranslateHttpLoader } from '@ngx-translate/http-loader' ;
23+ import { environment } from '../environments/environment' ;
24+
2325
2426const log = new Logger ( 'AppModule' ) ;
2527
2628// AoT requires an exported function for factories
2729export function HttpLoaderFactory ( http : HttpClient ) {
28- return new TranslateHttpLoader ( http ) ;
30+ return new TranslateHttpLoader ( http , environment . i18nPath ) ;
2931}
3032@NgModule ( {
3133 imports : [
Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ export const environment = {
1111 'en-US' ,
1212 'fr-FR'
1313 ] ,
14- imgPath :'../templates/datacube'
14+ imgPath :'../templates/datacube' ,
15+ i18nPath :'/templates/datacube/assets/i18n/'
1516} ;
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ export const environment = {
1313 'en-US' ,
1414 'fr-FR'
1515 ] ,
16- imgPath :''
16+ imgPath :'' ,
17+ i18nPath :'/assets/i18n/'
1718} ;
You can’t perform that action at this time.
0 commit comments