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:
1 parent
d9bc2767c1
commit
0490a1c67f
2 files changed
+10
-1
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/dashboard": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
feat(translation): Order translastable entities ordered alphabetically
|
||||||
+5
-1
@@ -60,7 +60,8 @@ export const TranslationList = () => {
|
|||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
return Object.entries(translatable_fields)
|
return (
|
||||||
|
Object.entries(translatable_fields)
|
||||||
.filter(
|
.filter(
|
||||||
([entity]) =>
|
([entity]) =>
|
||||||
!["product_option", "product_option_value"].includes(entity)
|
!["product_option", "product_option_value"].includes(entity)
|
||||||
@@ -82,6 +83,9 @@ export const TranslationList = () => {
|
|||||||
totalCount: entityStatistics.expected,
|
totalCount: entityStatistics.expected,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// sort by label alphabetically
|
||||||
|
.sort((a, b) => a.label.localeCompare(b.label))
|
||||||
|
)
|
||||||
}, [translatable_fields, statistics])
|
}, [translatable_fields, statistics])
|
||||||
|
|
||||||
const isReady =
|
const isReady =
|
||||||
|
|||||||
Reference in new issue
Block a user