Skip to content

Commit

Permalink
Merge pull request #789 from MadhuMosip/develop
Browse files Browse the repository at this point in the history
MOSIP-38626 resolved language change issue
  • Loading branch information
aranaravi authored Jan 4, 2025
2 parents b7cac94 + 6d4b61d commit 44422db
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 44422db

Please sign in to comment.