Skip to content

Commit

Permalink
Merge pull request #520 from Madhuravas/develop
Browse files Browse the repository at this point in the history
MOSIP-29802 passing local time request headers only in english
  • Loading branch information
aranaravi authored Oct 12, 2023
2 parents 9d79909 + bf9b390 commit f9419b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resident-ui/src/app/core/services/httpinterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ export class AuthInterceptor implements HttpInterceptor {
request = request.clone({ withCredentials: true });
if(localStorage.getItem("langCode")){
request = request.clone({
setHeaders: { 'time-zone-offset': this.localTimeZoneOffset, 'locale': defaultJson['languages'][localStorage.getItem("langCode")]['locale'] }
setHeaders: { 'time-zone-offset': this.localTimeZoneOffset, 'locale': defaultJson['languages']['eng']['locale'] }
});
}else{
request = request.clone({
setHeaders: { 'time-zone-offset': this.localTimeZoneOffset, 'locale': defaultJson['languages']["eng"]['locale']}
setHeaders: { 'time-zone-offset': this.localTimeZoneOffset, 'locale': defaultJson['languages']['eng']['locale']}
});
}
return next.handle(request).pipe(
Expand Down

0 comments on commit f9419b1

Please sign in to comment.