Skip to content

Commit

Permalink
Merge pull request #790 from MadhuMosip/release-0.9.x
Browse files Browse the repository at this point in the history
MOSIP-38626 resolved language change issue
  • Loading branch information
Prafulrakhade authored Jan 6, 2025
2 parents 1e0dbe2 + 000dee8 commit cdb4bdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resident-ui/src/app/app-config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export class AppConfigService {
// Load additional config from remote endpoint
const response = await this.http.get(this.appConfig.baseUrl + '/proxy/config/ui-properties').toPromise();
const responseData = response["response"];
localStorage.setItem("langCode", responseData["mosip.mandatory-languages"]);
if(!localStorage.getItem("langCode")){
localStorage.setItem("langCode", responseData["mosip.mandatory-languages"]);
}
this.appConfig["supportedLanguages"] = responseData["mosip.mandatory-languages"] + ","+ responseData["mosip.optional-languages"];
this.appConfig["mosip.iam.adapter.clientid"] = responseData["mosip.iam.adapter.clientid"];
this.appConfig["mosip.resident.api.id.otp.request"] = responseData["mosip.resident.api.id.otp.request"];
Expand Down

0 comments on commit cdb4bdb

Please sign in to comment.