summaryrefslogtreecommitdiffstats
path: root/portal-FE-common/src/app/shared/services/menus
diff options
context:
space:
mode:
authorSri Balaji Marripud <sri.balaji.marripud@att.com>2020-08-11 17:09:19 -0400
committerSri Balaji Marripud <sri.balaji.marripud@att.com>2020-08-11 17:09:29 -0400
commitb2b4c24300ae6c929ee1996b23b1277fc66498cf (patch)
treeacd786174fab52e70b227e8b5b94588008a0f77e /portal-FE-common/src/app/shared/services/menus
parent560c13ca93cafcc163c5c139bc1324212c2dd54f (diff)
Internationalization code
Issue-ID: PORTAL-975 Change-Id: I4d4e25b883f36ee6ee1e16d98e75773636b1ee5b Signed-off-by: Sri Balaji Marripud <sri.balaji.marripud@att.com>
Diffstat (limited to 'portal-FE-common/src/app/shared/services/menus')
-rw-r--r--portal-FE-common/src/app/shared/services/menus/menus.service.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/portal-FE-common/src/app/shared/services/menus/menus.service.ts b/portal-FE-common/src/app/shared/services/menus/menus.service.ts
index f0c16d68..392527ae 100644
--- a/portal-FE-common/src/app/shared/services/menus/menus.service.ts
+++ b/portal-FE-common/src/app/shared/services/menus/menus.service.ts
@@ -61,7 +61,19 @@ export class MenusService {
setFavoriteItem(menuId) {
return this.http.post(this.apiUrl.setFavoriteItem, menuId);
+ }
+
+ getAllLanguages() {
+ return this.http.get(this.apiUrl.getLanguages);
+ }
+
+ setLanguage(langId, loginId) {
+ const body = { languageId: langId}
+ return this.http.post(this.apiUrl.updateLang.replace(':loginId',loginId ), body);
+ }
+ getCurrentLang(loginId) {
+ return this.http.get(this.apiUrl.getCurrentLang.replace(':loginId',loginId ));
}
removeFavoriteItem(menuId) {