msic: migrate translation from json to xml

This commit is contained in:
KOWX712
2025-05-18 20:51:22 +08:00
parent 90f7e79f1e
commit 4947d00f9d
38 changed files with 2391 additions and 2357 deletions

View File

@@ -85,8 +85,7 @@ function checkMagisk() {
// Function to show the prompt with a success or error message
export function showPrompt(key, isSuccess = true, duration = 3000) {
const message = key.split('.').reduce((acc, k) => acc && acc[k], translations) || key;
prompt.textContent = message;
prompt.textContent = translations[key];
prompt.classList.toggle('error', !isSuccess);
if (window.promptTimeout) {
clearTimeout(window.promptTimeout);