10x-media plugins
Undo/Redo

i18n

Override or localize the undo/redo admin strings.

Every admin-facing string (the button labels, the tooltips, and the debug overlay) is a typed translation under the undoRedo: namespace. English and German ship built in. Override or extend through the translations option:

payload.config.ts
import { undoRedo } from '@10x-media/undo-redo'
import { keys } from '@10x-media/undo-redo/i18n'

undoRedo({
  translations: {
    en: { [keys.undo]: 'Step back' },
    uk: { [keys.undo]: 'Скасувати', [keys.redo]: 'Повторити' },
  },
})

@10x-media/undo-redo/i18n exports keys (constants like keys.undo, keys.debugTitle), the built-in translations, and the TranslationKey / TranslationsOption types. Misspell a key and the build fails.

The button tooltips are composed from the label and the bound shortcut, so overriding keys.undo changes both the button and its tooltip; the key notation is rendered by the plugin and needs no translation. See Shortcuts.

For merge order, adding locales, and app-level overrides, see Translations; the pattern is identical in every plugin.