diff --git a/src/locales/helpers.ts b/src/locales/helpers.ts index d5700918..340dd715 100644 --- a/src/locales/helpers.ts +++ b/src/locales/helpers.ts @@ -1970,17 +1970,19 @@ export function useI18n() { services.setLocale(languageKey); document.querySelector('html')?.setAttribute('lang', languageKey); - if (document.querySelector('html')?.getAttribute('data-dir-mode') === 'isolate') { + if (document.querySelector('html')?.getAttribute('data-dir-mode') === 'static') { if (languageInfo && languageInfo.textDirection === TextDirection.LTR) { if (location.search.includes('rtl')) { const url = new URL(window.location.href); url.search = ''; + url.hash = '#/'; window.location.replace(url.toString()); } } else if (languageInfo && languageInfo.textDirection === TextDirection.RTL) { if (!location.search.includes('rtl')) { const url = new URL(window.location.href); url.searchParams.set('rtl', ''); + url.hash = '#/'; window.location.replace(url.toString()); } } diff --git a/src/mobile.html b/src/mobile.html index 11ca6984..9e286f08 100644 --- a/src/mobile.html +++ b/src/mobile.html @@ -1,5 +1,5 @@ - + @@ -60,8 +60,6 @@