This commit is contained in:
parent
cbf249fb9c
commit
55675c2d24
|
|
@ -11,7 +11,7 @@ export function UserContextProvider({ children }) {
|
|||
const localLanguage = localStorage.getItem("userLanguage") || "FR";
|
||||
const localCountry = JSON.parse(localStorage.getItem("userCountry")) || {
|
||||
name: "belgique",
|
||||
iso: "BE",
|
||||
iso: "be",
|
||||
label: "Belgique",
|
||||
};
|
||||
const localProfile = localStorage.getItem("userProfile") || "lhoist_employee";
|
||||
|
|
@ -21,6 +21,7 @@ export function UserContextProvider({ children }) {
|
|||
const [profile, setProfile] = useState(localProfile);
|
||||
const [screensTranslations, setScreensTranslations] = useState({});
|
||||
|
||||
console.log("country", country);
|
||||
useEffect(() => {
|
||||
if (!language) return;
|
||||
const loadTranslations = async (language) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user