diff --git a/packages/rmw-shell/package-lock.json b/packages/rmw-shell/package-lock.json index 75b9419d1..16793e691 100644 --- a/packages/rmw-shell/package-lock.json +++ b/packages/rmw-shell/package-lock.json @@ -1,12 +1,12 @@ { "name": "rmw-shell", - "version": "11.2.22", + "version": "11.2.23", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "rmw-shell", - "version": "11.2.22", + "version": "11.2.23", "license": "MIT", "devDependencies": { "@emotion/react": "^11.10.4", diff --git a/packages/rmw-shell/package.json b/packages/rmw-shell/package.json index aa9030c1d..9bfd9f803 100644 --- a/packages/rmw-shell/package.json +++ b/packages/rmw-shell/package.json @@ -1,6 +1,6 @@ { "name": "rmw-shell", - "version": "11.2.22", + "version": "11.2.23", "description": "React template with Material UI, Firebase, routing...", "main": "lib/index.js", "module": "es/index.js", diff --git a/packages/rmw-shell/src/containers/FirebaseContainer/FirebaseContainer.js b/packages/rmw-shell/src/containers/FirebaseContainer/FirebaseContainer.js index de81aed7d..fde2b7030 100644 --- a/packages/rmw-shell/src/containers/FirebaseContainer/FirebaseContainer.js +++ b/packages/rmw-shell/src/containers/FirebaseContainer/FirebaseContainer.js @@ -11,6 +11,7 @@ import { initializeApp, getApps, getApp } from "firebase/app"; import { getAuth, onAuthStateChanged } from "firebase/auth"; import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider"; import { AdapterMoment as DateAdapter } from "@mui/x-date-pickers/AdapterMoment"; +import { useLocale } from "base-shell/lib/providers/Locale"; export default function ({ children }) { const { appConfig } = useConfig(); @@ -18,6 +19,7 @@ export default function ({ children }) { const { firebase: firebaseConfig, auth: authConfig = {} } = appConfig || {}; const { prod = {}, dev = {} } = firebaseConfig || {}; const { onAuthStateChanged: internalOnAuthStateChanged } = authConfig || {}; + const { locale = "en" } = useLocale(); if (getApps().length === 0) { initializeApp( @@ -46,7 +48,10 @@ export default function ({ children }) { - + {children}