@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
14 lines (13 loc) • 422 B
JavaScript
// packages/widget-dashboard/src/components/widget-settings/utils/get-widget-settings.ts
import { sprintf, __ } from "@wordpress/i18n";
function getWidgetSettingsTitle(widgetType) {
return widgetType?.title ? sprintf(
/* translators: %s: Widget title. */
__("%s settings"),
widgetType.title
) : __("Widget settings");
}
export {
getWidgetSettingsTitle
};
//# sourceMappingURL=get-widget-settings.mjs.map