Add language string for activeTabChange

This commit is contained in:
kwaroran
2024-04-08 22:03:56 +09:00
parent 4e8e6a6f70
commit aead67be97
2 changed files with 3 additions and 1 deletions

View File

@@ -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"
}

View File

@@ -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
}
}