---
title: "undoMenuTitle(forUndoActionName:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/undomanager/undomenutitle(forundoactionname:)"
---

# undoMenuTitle(forUndoActionName:)

Returns the localized title of the Undo menu command for the identified action.

## Declaration

```swift
func undoMenuTitle(forUndoActionName actionName: String) -> String
```

## Parameters

- `actionName`: The name of the undo action.

## Return Value

Return Value The localized title of the undo menu item.

## Discussion

Discussion Override this method if you want to customize the localization behavior. This method is invoked by undoMenuItemTitle.

## See Also

### Getting and localizing the menu item title

- [undoMenuItemTitle](foundation/undomanager/undomenuitemtitle.md)
- [redoMenuItemTitle](foundation/undomanager/redomenuitemtitle.md)
- [redoMenuTitle(forUndoActionName:)](foundation/undomanager/redomenutitle(forundoactionname:).md)
