feat: apply custom fonts directly in custom font panel (#1870)

This commit is contained in:
Huang Xin
2025-08-22 18:17:57 +08:00
committed by GitHub
parent 45b805dcd4
commit dbee054838
25 changed files with 102 additions and 34 deletions
@@ -176,9 +176,12 @@ const TranslatorPopup: React.FC<TranslatorPopupProps> = ({
className='bg-gray-600 text-white/75'
value={targetLang}
onChange={handleTargetLangChange}
options={Object.entries(translatorLangs)
.sort((a, b) => a[1].localeCompare(b[1]))
.map(([code, name]) => ({ value: code, label: name }))}
options={[
{ value: '', label: _('System Language') },
...Object.entries(translatorLangs)
.sort((a, b) => a[1].localeCompare(b[1]))
.map(([code, name]) => ({ value: code, label: name })),
]}
/>
</div>
{loading ? (