feat: add source/target language selectors to edit glossary dialog
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m24s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m24s
Users can now change the language pair when editing a glossary: - EditGlossaryDialog has source/target language dropdowns - Default target_language changed from 'en' to 'multi' in create dialog - onSave passes source_language and target_language to the backend - Backend PATCH endpoint already supports updating these fields Also fixes: - CreateGlossaryDialog defaults to 'multi' instead of 'en' - SUPPORTED_LANGUAGES now includes 'multi' option for target Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -185,7 +185,7 @@ export default function GlossariesPage() {
|
||||
}
|
||||
};
|
||||
|
||||
const handleSaveGlossary = async (id: string, data: { name: string; terms: GlossaryTermInput[] }) => {
|
||||
const handleSaveGlossary = async (id: string, data: { name: string; source_language: string; target_language: string; terms: GlossaryTermInput[] }) => {
|
||||
try {
|
||||
await updateGlossary(id, data);
|
||||
setEditDialogOpen(false);
|
||||
|
||||
Reference in New Issue
Block a user