Refactored layout. Added NavBar component.
This commit is contained in:
@@ -35,6 +35,8 @@ export default function useLocale() {
|
||||
|
||||
setItem(LOCALE_CONFIG, value);
|
||||
|
||||
document.getElementById('__next')?.setAttribute('dir', getTextDirection(value));
|
||||
|
||||
if (locale !== value) {
|
||||
setLocale(value);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user