feat(webui): optimize frontend terminology and i18n keys

This commit is contained in:
Wha1eChai
2026-01-09 19:55:34 +08:00
parent 07a9586aee
commit 8e221e3fc7
6 changed files with 65 additions and 61 deletions

View File

@@ -165,11 +165,9 @@ document.addEventListener('alpine:init', () => {
clearInterval(pollInterval);
Alpine.store('global').oauthProgress.active = false;
const actionKey = reAuthEmail ? 'reauthenticated' : 'added';
const action = Alpine.store('global').t(actionKey);
const successfully = Alpine.store('global').t('successfully');
const actionKey = reAuthEmail ? 'accountReauthSuccess' : 'accountAddedSuccess';
Alpine.store('global').showToast(
`${Alpine.store('global').t('accounts')} ${action} ${successfully}`,
Alpine.store('global').t(actionKey),
'success'
);
document.getElementById('add_account_modal')?.close();