### What problem does this PR solve? change language Issue link: #245 - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -38,6 +38,12 @@ const storage = {
|
||||
localStorage.removeItem(x);
|
||||
});
|
||||
},
|
||||
setLanguage: (lng: string) => {
|
||||
localStorage.setItem('lng', lng);
|
||||
},
|
||||
getLanguage: (): string => {
|
||||
return localStorage.getItem('lng') as string;
|
||||
},
|
||||
};
|
||||
|
||||
export default storage;
|
||||
|
||||
Reference in New Issue
Block a user