Feature modules: a feature ported from a plugin keeps that plugin's words (words), so nothing is retranslated; the keep-my-changes question takes its own line

This commit is contained in:
CRTkafa 2026-09-30 19:53:11 +07:00
parent 1f95d27018
commit 6d3f91bf2e
3 changed files with 27 additions and 6 deletions

View file

@ -137,7 +137,7 @@ function ModeSettingsOf({ table, notify }: { table: FeatureTable; notify: Notify
return <Section title={t('wb.modes.section')} hint={t('wb.modes.sectionHint')} id="modes">
{table.modes.map(mode => {
const current = state.mode === mode.id;
return <Row key={mode.id} label={name(mode.id)} hint={tx(mode.description, undefined, '')} keywords={`mode preset ${mode.id}`}
return <Row key={mode.id} label={name(mode.id)} hint={tx(mode.description, undefined, '')} keywords={`mode preset ${mode.id}`} wide={asking?.to === mode.id}
badge={<>{current && <Badge tone="accent">{t('wb.modes.current')}</Badge>}{mode.recommended && <Badge>{t('wb.modes.recommended')}</Badge>}</>}>
{asking?.to === mode.id
? <span className="wbf-ask" role="alertdialog">{t('wb.modes.keepQuestion')} <small>{t('wb.modes.keepHint', { count: asking.changes })}</small>