From aead67be9751ec7dd70e3e57f1ea647e964bcf6b Mon Sep 17 00:00:00 2001 From: kwaroran Date: Mon, 8 Apr 2024 22:03:56 +0900 Subject: [PATCH] Add language string for activeTabChange --- src/lang/en.ts | 1 + src/ts/storage/globalApi.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lang/en.ts b/src/lang/en.ts index fb3081e7..4837fe2b 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -559,4 +559,5 @@ export const languageEnglish = { updateRealm: "Update to RisuRealm", updateRealmDesc: "You are trying to update your character to RisuRealm. this will update your character to RisuRealm, and you can't revert it back.", antiClaudeOverload: "Anti-Claude Overload", + activeTabChange: "Current tab is inactivated since other tab is active. to activate this tab, click OK" } \ No newline at end of file diff --git a/src/ts/storage/globalApi.ts b/src/ts/storage/globalApi.ts index cd82f7e0..dc50359c 100644 --- a/src/ts/storage/globalApi.ts +++ b/src/ts/storage/globalApi.ts @@ -29,6 +29,7 @@ import { save } from "@tauri-apps/api/dialog"; import type { RisuModule } from "../process/modules"; import { listen } from '@tauri-apps/api/event' import { registerPlugin } from '@capacitor/core'; +import { language } from "src/lang"; //@ts-ignore export const isTauri = !!window.__TAURI__ @@ -267,7 +268,7 @@ export async function saveDb(){ } if(!gotChannel){ gotChannel = true - await alertNormalWait("Current tab is inactivated since other tab is active. to activate this tab, click OK") + await alertNormalWait(language.activeTabChange) gotChannel = false } }