feat(translation): Order translastable entities ordered alphabetically (#14451)

Order translastable entities ordered alphabetically
<img width="1178" height="759" alt="Screenshot 2026-01-06 at 08 41 43" src="https://github.com/user-attachments/assets/2eaa2f9c-07c7-46b1-b2ff-3a0660b575d8" />
This commit is contained in:
Adrien de Peretti
2026-01-06 11:35:06 +01:00
committed by GitHub
parent d9bc2767c1
commit 0490a1c67f
2 changed files with 30 additions and 21 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/dashboard": patch
---
feat(translation): Order translastable entities ordered alphabetically

View File

@@ -60,7 +60,8 @@ export const TranslationList = () => {
return []
}
return Object.entries(translatable_fields)
return (
Object.entries(translatable_fields)
.filter(
([entity]) =>
!["product_option", "product_option_value"].includes(entity)
@@ -82,6 +83,9 @@ export const TranslationList = () => {
totalCount: entityStatistics.expected,
}
})
// sort by label alphabetically
.sort((a, b) => a.label.localeCompare(b.label))
)
}, [translatable_fields, statistics])
const isReady =