mobile version supports rtl

This commit is contained in:
MaysWind
2025-08-19 23:56:28 +08:00
parent efe39c7390
commit 13d5759e84
44 changed files with 534 additions and 219 deletions
+14
View File
@@ -13,6 +13,7 @@ import {
} from '@/core/setting.ts';
const settingsLocalStorageKey: string = 'ebk_app_settings';
const currentLanguageSessionStorageKey: string = 'ebk_current_language';
function getStoredApplicationSettings(): BaseApplicationSetting {
try {
@@ -101,3 +102,16 @@ export function isEnableAnimate(): boolean {
export function clearSettings(): void {
localStorage.removeItem(settingsLocalStorageKey);
}
export function getSessionCurrentLanguageKey(): string {
return sessionStorage.getItem(currentLanguageSessionStorageKey) || '';
}
export function setSessionCurrentLanguageKey(languageKey: string): void {
if (!languageKey) {
sessionStorage.removeItem(currentLanguageSessionStorageKey);
return;
}
sessionStorage.setItem(currentLanguageSessionStorageKey, languageKey);
}