diff --git a/frontend/angular.json b/frontend/angular.json index f67ccb2384..13da219ee6 100644 --- a/frontend/angular.json +++ b/frontend/angular.json @@ -13,6 +13,7 @@ "builder": "@angular-devkit/build-angular:browser", "options": { "preserveSymlinks": true, + "aot": true, "outputPath": "../public/assets/frontend/", "index": "src/index2.html", "main": "src/main.ts", diff --git a/frontend/legacy/typings/open-project-legacy.typings.d.ts b/frontend/legacy/typings/open-project-legacy.typings.d.ts index 0ba7ed65d6..a8422bd2dd 100644 --- a/frontend/legacy/typings/open-project-legacy.typings.d.ts +++ b/frontend/legacy/typings/open-project-legacy.typings.d.ts @@ -34,6 +34,7 @@ import * as TAngular from 'angular'; import * as TLodash from 'lodash'; import {State} from "reactivestates"; +import {GlobalI18n} from "../../src/app/modules/common/i18n/i18n.service"; export interface IPluginContext { classes:any; @@ -52,4 +53,5 @@ declare global { } const angular:typeof TAngular; const _:typeof TLodash; + const I18n:GlobalI18n; }