EQ 批量管理窗口支持多语言
This commit is contained in:
@@ -208,13 +208,13 @@ export function PeqPresetManageDialog({
|
||||
>
|
||||
<div className="flex items-center justify-between mb-4">
|
||||
<h3 className="text-[18px] font-semibold leading-tight text-white/90">
|
||||
管理 EQ 预设
|
||||
{eqUi.managePresetTitle}
|
||||
</h3>
|
||||
<button
|
||||
type="button"
|
||||
className="rounded-full p-1.5 text-white/45 transition-colors hover:bg-white/10 hover:text-white/80"
|
||||
onClick={onClose}
|
||||
aria-label="Close"
|
||||
aria-label={eqUi.closeDrawer}
|
||||
>
|
||||
<X size={20} />
|
||||
</button>
|
||||
@@ -223,7 +223,7 @@ export function PeqPresetManageDialog({
|
||||
<div className="flex items-center justify-between gap-3 mb-3">
|
||||
<label className="flex items-center gap-2.5 text-[13px] text-white/70 select-none cursor-pointer">
|
||||
<Checkbox checked={allChecked} onChange={toggleAll} />
|
||||
全选
|
||||
{eqUi.selectAll}
|
||||
</label>
|
||||
|
||||
<button
|
||||
@@ -238,7 +238,7 @@ export function PeqPresetManageDialog({
|
||||
onClick={() => void confirmAndDelete(checkedIdxs)}
|
||||
>
|
||||
{deleting && <Loader2 size={13} className="animate-spin" />}
|
||||
批量删除
|
||||
{eqUi.batchDelete}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -252,7 +252,7 @@ export function PeqPresetManageDialog({
|
||||
>
|
||||
{items.length === 0 ? (
|
||||
<div className="py-10 text-center text-[13px] text-white/30">
|
||||
暂无预设
|
||||
{eqUi.noPresets}
|
||||
</div>
|
||||
) : (
|
||||
items.map((item, idx) => {
|
||||
@@ -293,7 +293,7 @@ export function PeqPresetManageDialog({
|
||||
onClick={() => void commitRename()}
|
||||
>
|
||||
{renaming && <Loader2 size={13} className="animate-spin" />}
|
||||
保存
|
||||
{eqUi.save}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
@@ -307,7 +307,7 @@ export function PeqPresetManageDialog({
|
||||
setEditingName("");
|
||||
}}
|
||||
>
|
||||
取消
|
||||
{eqUi.cancel}
|
||||
</button>
|
||||
</div>
|
||||
<PeqPresetNameLengthHint value={editingName} />
|
||||
@@ -331,7 +331,7 @@ export function PeqPresetManageDialog({
|
||||
background: "rgba(255,255,255,0.06)",
|
||||
border: "1px solid rgba(255,255,255,0.1)",
|
||||
}}
|
||||
title="重命名"
|
||||
title={eqUi.renamePreset}
|
||||
onClick={() => beginRename(idx)}
|
||||
>
|
||||
<Pencil size={14} />
|
||||
@@ -343,7 +343,7 @@ export function PeqPresetManageDialog({
|
||||
background: "rgba(239,68,68,0.08)",
|
||||
border: "1px solid rgba(239,68,68,0.2)",
|
||||
}}
|
||||
title="删除"
|
||||
title={eqUi.deletePreset}
|
||||
onClick={() => void confirmAndDelete([idx])}
|
||||
>
|
||||
<Trash2 size={14} />
|
||||
|
||||
Reference in New Issue
Block a user