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