diff options
author | 2020-08-11 17:09:19 -0400 | |
---|---|---|
committer | 2020-08-11 17:09:29 -0400 | |
commit | b2b4c24300ae6c929ee1996b23b1277fc66498cf (patch) | |
tree | acd786174fab52e70b227e8b5b94588008a0f77e /portal-FE-common/src/app/shared | |
parent | 560c13ca93cafcc163c5c139bc1324212c2dd54f (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')
-rw-r--r-- | portal-FE-common/src/app/shared/services/menus/menus.service.ts | 12 | ||||
-rw-r--r-- | portal-FE-common/src/app/shared/services/sidebar/sidebar.service.ts | 4 |
2 files changed, 16 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) { diff --git a/portal-FE-common/src/app/shared/services/sidebar/sidebar.service.ts b/portal-FE-common/src/app/shared/services/sidebar/sidebar.service.ts index b0b21b3b..5060534e 100644 --- a/portal-FE-common/src/app/shared/services/sidebar/sidebar.service.ts +++ b/portal-FE-common/src/app/shared/services/sidebar/sidebar.service.ts @@ -50,5 +50,9 @@ export class SidebarService { return this.http.get(this.api.leftmenuItems); } + + getAllLanguages() { + return this.http.get(this.api.getLanguages); + } } |