feat(admin-*,dashboard): i18n labels for menu item extensions (#13843)

* i18n menu item labels

* changeset

* changeset
This commit is contained in:
Leonardo Benini
2025-11-06 13:42:32 +01:00
committed by GitHub
parent 3095b63784
commit 3852efbcff
8 changed files with 104 additions and 9 deletions

View File

@@ -30,6 +30,17 @@ export interface RouteConfig {
* The nested route to display under existing route in the sidebar.
*/
nested?: NestedRoutePosition
/**
* An optional i18n namespace for translating the label. When provided, the label will be treated as a translation key.
* @example
* ```ts
* label: "menuItems.customFeature"
* translationNs: "my-plugin"
* // Will translate using: t("menuItems.customFeature", { ns: "my-plugin" })
* ```
*/
translationNs?: string
}
export type CustomFormField<