Generate experiences with Puck AI
Read docs
CloudAPI referenceplugin-pagesDictionary

Pages Plugin Dictionary

Puck Pages is experimental and may change in a future release.

The Pages Plugin extends Puck’s dictionary prop to enable localization.

Tokens

Tokens follow a plugin-pages-{area}-{name}-{variant} format.

Some tokens set an element’s HTML title attribute, a tooltip that only appears on hover, rather than always-visible text. These are marked (tooltip) below.

Panel

TokenDefaultUsed for
plugin-pages-panel-title"Pages"Sidebar title
plugin-pages-panel-search"Search pages"Search button and input (screen readers)
plugin-pages-panel-search-placeholder-singular"Search {count} page"Search input placeholder for one page
plugin-pages-panel-search-placeholder-plural"Search {count} pages"Search input placeholder
plugin-pages-panel-search-close"Close search"Close search button (screen readers)
plugin-pages-panel-search-empty-title"No matches"Search without results title
plugin-pages-panel-search-empty-description"No pages match “{query}”"Search without results message
plugin-pages-panel-new"New page"New page button (screen readers)
plugin-pages-panel-new-path"New page path"New page path input (screen readers)
plugin-pages-panel-loading"Loading pages…"Page list while it loads (screen readers)
plugin-pages-panel-error-title"Couldn't load pages"Page list that failed to load
plugin-pages-panel-error-description"Check your connection and try again."Page list that failed to load
plugin-pages-panel-error-retry"Retry"Retry button for the page list

Pages

TokenDefaultUsed for
plugin-pages-row-path"Path for {path}"Rename path input (screen readers)
plugin-pages-row-current"You're editing this page"Current page (tooltip)
plugin-pages-row-edit"Edit {path}"Other pages (tooltip)
plugin-pages-row-actions"Actions for {path}"Page actions menu (screen readers)
plugin-pages-path-error-empty"Enter a path"Submitting an empty path
plugin-pages-path-error-exists"A page with this path already exists"Submitting a path in use

Status

TokenDefaultUsed for
plugin-pages-status-draft"Draft"Unpublished page badge
plugin-pages-status-draft-description"Not published yet"Draft badge (tooltip)
plugin-pages-status-published"Published"Published version badge
plugin-pages-status-published-description"Published"Published badge (tooltip)
plugin-pages-status-unsaved"Unsaved"Unsaved changes badge
plugin-pages-status-unsaved-description"Unsaved changes"Unsaved badge (tooltip)
TokenDefaultUsed for
plugin-pages-header-save"Save"Save draft button
plugin-pages-header-publish"Publish"Publish button
plugin-pages-header-save-publish"Save & publish"Publish button with unsaved changes
plugin-pages-header-actions"More page actions"Page actions menu (screen readers)

Page actions

TokenDefaultUsed for
plugin-pages-actions-publish"Publish"Publish menu item
plugin-pages-actions-unpublish"Unpublish"Unpublish menu item
plugin-pages-actions-view"View page"View page menu item
plugin-pages-actions-delete"Delete page"Delete page menu item

Versions

TokenDefaultUsed for
plugin-pages-versions-title"Version history"Version history title and button
plugin-pages-versions-label"v{number}"Version number
plugin-pages-versions-count-singular"{count} version"Version count for one version
plugin-pages-versions-count-plural"{count} versions"Version count
plugin-pages-versions-list"Versions"Version list (screen readers)
plugin-pages-versions-loading"Loading versions"Version list while it loads (screen readers)
plugin-pages-versions-loading-version"Loading version"Version button while it loads (screen readers)
plugin-pages-versions-empty"No saved versions yet"Page without versions
plugin-pages-versions-error"Failed to load versions"Versions that failed to load
plugin-pages-versions-error-more"Failed to load more. Retry"Retry button for more versions
plugin-pages-versions-today"Today"Versions saved today
plugin-pages-versions-yesterday"Yesterday"Versions saved yesterday

Confirmations

TokenDefaultUsed for
plugin-pages-confirm-cancel"Cancel"Cancel button
plugin-pages-confirm-unsaved-title"Unsaved changes"Leaving unsaved changes
plugin-pages-confirm-unsaved-message"You have unsaved changes. Are you sure you want to proceed?"Leaving unsaved changes
plugin-pages-confirm-unsaved-confirm"Proceed"Leaving unsaved changes
plugin-pages-confirm-delete-title"Delete page"Deleting the open page
plugin-pages-confirm-delete-title-path"Delete {path}"Deleting a page from the sidebar
plugin-pages-confirm-delete-message"This will permanently delete the page and all of its versions."Deleting a page
plugin-pages-confirm-delete-confirm"Delete page"Deleting a page
plugin-pages-confirm-unpublish-title"Unpublish page"Unpublishing the open page
plugin-pages-confirm-unpublish-title-path"Unpublish {path}"Unpublishing a page from the sidebar
plugin-pages-confirm-unpublish-message"Are you sure you want to unpublish this page?"Unpublishing a page
plugin-pages-confirm-unpublish-confirm"Unpublish"Unpublishing a page
plugin-pages-confirm-rename-title"Rename {from} to {to}"Renaming a published page
plugin-pages-confirm-rename-message"This page is already published."Renaming a published page
plugin-pages-confirm-rename-confirm"Rename"Renaming a published page
plugin-pages-confirm-conflict-title"A newer version was saved"Saving over a newer version
plugin-pages-confirm-conflict-message"Someone saved a new version of the page while you were editing. Do you want to save yours or load the latest version?"Saving over a newer version
plugin-pages-confirm-conflict-discard"Discard & reload"Loading the newer version
plugin-pages-confirm-conflict-publish"Publish anyway"Publishing over the newer version
plugin-pages-confirm-conflict-save"Save anyway"Saving over the newer version

Toasts

TokenDefaultUsed for
plugin-pages-toast-region"Notifications"Toast list (screen readers)
plugin-pages-toast-close"Close"Close button (screen readers)
plugin-pages-toast-published-title"Published"Published a page
plugin-pages-toast-published-description"The page was published successfully."Published a page
plugin-pages-toast-published-view"View"Published page link
plugin-pages-toast-draft-title"Draft saved"Saved a draft
plugin-pages-toast-draft-description"The draft was saved successfully."Saved a draft
plugin-pages-toast-unpublished-title"Unpublished"Unpublished a page
plugin-pages-toast-unpublished-description"The page was unpublished successfully."Unpublished a page
plugin-pages-toast-deleted-title"Deleted"Deleted a page
plugin-pages-toast-deleted-description"The page was deleted successfully."Deleted a page
plugin-pages-toast-newer-title"Newer version available"Someone saved a newer version
plugin-pages-toast-newer-description"v{number} of this page was saved since you opened it."Someone saved a newer version
plugin-pages-toast-newer-reload"Reload"Load the newer version

Errors

TokenDefaultUsed for
plugin-pages-toast-error-title"Error"Error toast title
plugin-pages-toast-error-description"An unexpected error occurred."Unexpected errors
plugin-pages-toast-error-rename"The page couldn't be renamed."Failed rename
plugin-pages-toast-error-save"The draft couldn't be saved."Failed draft save
plugin-pages-toast-error-save-publish"The page couldn't be saved and published."Failed save and publish
plugin-pages-toast-error-create"The page couldn't be created."Failed create
plugin-pages-toast-error-publish"The page couldn't be published."Failed publish
plugin-pages-toast-error-unpublish"The page couldn't be unpublished."Failed unpublish
plugin-pages-toast-error-delete"The page couldn't be deleted."Failed delete
plugin-pages-toast-error-undo"Undo"Undo button on failed changes