From 3b102ddd3f8715e81bb7189da418fa3280faae3b Mon Sep 17 00:00:00 2001 From: Eran Sakal Date: Sun, 17 Sep 2017 11:43:38 +0300 Subject: [PATCH] feat: support language file hash to bypass browser cache upon application upgrade --- src/app-config/index.ts | 1 + src/shared/kmc-shell/auth/app-bootstrap.service.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app-config/index.ts b/src/app-config/index.ts index aed22056b4..0581f77438 100644 --- a/src/app-config/index.ts +++ b/src/app-config/index.ts @@ -1,5 +1,6 @@ export const environment = { "shell": { + "languageHash": "12", /* this value is set manually at the moment and should be replaced with the published app version */ "defaultRoute": "/content/entries", "loginRoute" : "/login", "errorRoute" : "/error", diff --git a/src/shared/kmc-shell/auth/app-bootstrap.service.ts b/src/shared/kmc-shell/auth/app-bootstrap.service.ts index f9b4095686..8dfce61e35 100644 --- a/src/shared/kmc-shell/auth/app-bootstrap.service.ts +++ b/src/shared/kmc-shell/auth/app-bootstrap.service.ts @@ -93,7 +93,7 @@ export class AppBootstrap implements CanActivate { this._bootstrapConfig = appBootstrapConfig; // init localization, wait for localization to load before continuing - + this.appLocalization.setFilesHash(environment.shell.languageHash); const language = this.getCurrentLanguage(); this.appLocalization.load(language,'en').subscribe( () => {