feat(SW-66, SW-348): search functionality and ui
This commit is contained in:
@@ -12,11 +12,13 @@ const getRef = cache(() => ({ current: Lang.en }))
|
||||
*
|
||||
* @param newLang
|
||||
*/
|
||||
export const setLang = (newLang: Lang) => {
|
||||
export function setLang(newLang: Lang) {
|
||||
getRef().current = newLang
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the global language set for the current request
|
||||
*/
|
||||
export const getLang = () => getRef().current
|
||||
export function getLang() {
|
||||
return getRef().current
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user