farhan048
2 years ago
1 changed files with 1 additions and 1 deletions
@ -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…
Reference in new issue