diff --git a/src/adapter/index.ts b/src/adapter/index.ts index 23716e29..2d61e89d 100644 --- a/src/adapter/index.ts +++ b/src/adapter/index.ts @@ -1,4 +1,4 @@ -import { api, client, getConfig, init, initialise, logout, resetConfig, updateInstanceUrl, updateToken } from '@hotwax/oms-api' +import { api, client, getConfig, init, initialise, logout, resetConfig, updateInstanceUrl, updateToken, setUserLocale } from '@hotwax/oms-api' export { api, @@ -9,5 +9,6 @@ export { logout, resetConfig, updateInstanceUrl, - updateToken + updateToken, + setUserLocale } \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index a1c97d4c..ee03fb04 100644 --- a/src/main.ts +++ b/src/main.ts @@ -34,7 +34,7 @@ import permissionRules from '@/authorization/Rules'; import permissionActions from '@/authorization/Actions'; import { dxpComponents } from '@hotwax/dxp-components' import { login, logout, loader } from './user-utils'; -import { getConfig, initialise } from '@/adapter' +import { getConfig, initialise, setUserLocale } from '@/adapter' import localeMessages from './locales'; @@ -60,7 +60,8 @@ const app = createApp(App) appLoginUrl: process.env.VUE_APP_LOGIN_URL as string, getConfig, initialise, - localeMessages + localeMessages, + setUserLocale }); // Filters are removed in Vue 3 and global filter introduced https://v3.vuejs.org/guide/migration/filters.html#global-filters