feat(admin-*,dashboard): i18n labels for menu item extensions (#13843)
* i18n menu item labels * changeset * changeset
This commit is contained in:
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user