Browse Source

reload

pull/2/head
farhan048 2 years ago
parent
commit
0de4173924
  1. 2
      src/utils/LangUtils.js

2
src/utils/LangUtils.js

@ -1,7 +1,7 @@
import i18n from "../const/i18n"; import i18n from "../const/i18n";
export const handleChangeLng = (lng) => { export const handleChangeLng = (lng) => {
console.log("Changing language to:", lng);
i18n.changeLanguage(lng); i18n.changeLanguage(lng);
localStorage.setItem("lng", lng); localStorage.setItem("lng", lng);
window.location.reload();
}; };

Loading…
Cancel
Save