mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
feat(email): use friendly lang display name
This commit is contained in:
parent
a837a752a6
commit
f7cbaf83e2
|
|
@ -130,9 +130,10 @@ const EmailTemplateEditor: React.FC<EmailTemplateEditorProps> = ({ value, onChan
|
|||
scrollButtons="auto"
|
||||
sx={{ flexGrow: 1 }}
|
||||
>
|
||||
{templates.map((template, index) => (
|
||||
<Tab key={index} label={template.language} />
|
||||
))}
|
||||
{templates.map((template, index) => {
|
||||
const lang = languages.find((l) => l.code === template.language);
|
||||
return <DraggableTab key={index} index={index} label={lang ? lang.displayName : template.language} />;
|
||||
})}
|
||||
</Tabs>
|
||||
<Button
|
||||
startIcon={<Add />}
|
||||
|
|
|
|||
Loading…
Reference in New Issue