Assets Plugin Dictionary
Puck Assets is in early access. Request access.
The Assets Plugin extends Puck’s dictionary prop to enable localization.
Tokens
Tokens follow a plugin-assets-{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
| Token | Default | Used for |
|---|---|---|
plugin-assets-panel-title | "Assets" | Panel title |
plugin-assets-panel-upload | "Upload" | Upload button |
plugin-assets-panel-search | "Search assets" | Search input (screen readers) |
plugin-assets-panel-search-placeholder | "Search" | Search input placeholder |
plugin-assets-panel-search-clear | "Clear search" | Clear search button (tooltip) |
plugin-assets-panel-results | "Asset results" | Results area (screen readers) |
plugin-assets-panel-grid | "Assets" | Asset grid (screen readers) |
plugin-assets-panel-loading | "Loading assets…" | Asset grid while it loads (screen readers) |
Filters
| Token | Default | Used for |
|---|---|---|
plugin-assets-filter-toggle | "Filters" | Filters button (screen readers) |
plugin-assets-filter-value | "{label}: {value}" | Filter with a value, such as Type: PNG |
plugin-assets-filter-clear | "Clear" | Clear filters button |
plugin-assets-select-toggle | "Select" | Multi-select toggle |
plugin-assets-filter-type | "Type" | Type filter |
plugin-assets-filter-type-clear | "Clear type filter" | Clear type filter button (tooltip) |
plugin-assets-filter-type-all | "All types" | Type filter option for all types |
plugin-assets-filter-type-video | "Video" | Type filter option |
plugin-assets-filter-type-audio | "Audio" | Type filter option |
plugin-assets-filter-type-documents | "Documents" | Type filter option |
plugin-assets-filter-tags | "Tags" | Tags filter |
plugin-assets-filter-tags-clear | "Clear tags filter" | Clear tags filter button (tooltip) |
plugin-assets-filter-tags-search | "Search tags" | Tag search input (screen readers) |
plugin-assets-filter-tags-search-placeholder | "Search" | Tag search input placeholder |
plugin-assets-filter-tags-search-clear | "Clear tag search" | Clear tag search button (tooltip) |
plugin-assets-filter-tags-loading | "Loading tags…" | Tags filter while tags load |
plugin-assets-filter-tags-empty | "No tags yet." | Tags filter without tags |
plugin-assets-filter-tags-no-matches | "No tags found." | Tag search without results |
plugin-assets-filter-tags-clear-all | "Clear tags" | Tags filter option that clears the selected tags |
Sort
| Token | Default | Used for |
|---|---|---|
plugin-assets-sort-menu | "Sort" | Sort menu (screen readers) |
plugin-assets-sort-toggle | "Sort: {sort}" | Sort button (screen readers) |
plugin-assets-sort-newest | "Newest" | Sort option |
plugin-assets-sort-oldest | "Oldest" | Sort option |
plugin-assets-sort-name | "Name A–Z" | Sort option |
plugin-assets-sort-largest | "Largest" | Sort option |
plugin-assets-sort-smallest | "Smallest" | Sort option |
Folders
| Token | Default | Used for |
|---|---|---|
plugin-assets-folder-new | "New folder" | New folder button (tooltip) |
plugin-assets-folder-open | "Open folder {name}" | Folder tile (screen readers) |
plugin-assets-folder-back | "Back to all assets" | Breadcrumb back to all assets (tooltip) |
plugin-assets-folder-root | "Assets" | Breadcrumb root |
plugin-assets-folder-fallback | "Folder" | Breadcrumb for a folder without a name |
plugin-assets-folder-actions | "Folder actions" | Folder actions button (tooltip) |
plugin-assets-folder-rename | "Rename folder" | Rename folder option |
plugin-assets-folder-delete | "Delete folder" | Delete folder option |
plugin-assets-folder-name | "Folder name" | Folder name input placeholder |
plugin-assets-folder-cancel | "Cancel" | Folder form cancel button |
plugin-assets-folder-create | "Create" | Folder form submit button when creating |
plugin-assets-folder-rename-confirm | "Rename" | Folder form submit button when renaming |
plugin-assets-folder-search | "Search folders" | Folder picker placeholder when moving assets |
plugin-assets-folder-picker | "Folder" | Folder picker (screen readers) |
plugin-assets-folder-picker-none | "Uncategorised" | Folder picker option for unfiled assets |
plugin-assets-folder-picker-loading | "Loading folders" | Folder picker while folders load |
plugin-assets-folder-picker-no-matches | "No folders found" | Folder search without results |
Empty states
| Token | Default | Used for |
|---|---|---|
plugin-assets-panel-error-title | "Couldn't load assets" | Assets that failed to load |
plugin-assets-panel-error-folders-title | "Couldn't load folders" | Folders that failed to load |
plugin-assets-panel-error-tags-title | "Couldn't load tags" | Tags that failed to load |
plugin-assets-panel-error-description | "Check your connection and try again." | Assets that failed to load |
plugin-assets-panel-error-retry | "Retry" | Retry button |
plugin-assets-panel-no-matches-title | "No matches" | Search or filters without results |
plugin-assets-panel-no-matches-description | "Try a different search or clear the filters." | Search or filters without results |
plugin-assets-panel-no-matches-clear | "Clear filters" | Clear filters button |
plugin-assets-panel-empty-folder-title | "This folder is empty" | Empty folder |
plugin-assets-panel-empty-library-title | "No assets yet" | Empty library |
plugin-assets-panel-empty-library-description | "Upload assets to use them across your pages." | Empty library |
plugin-assets-panel-empty-library-upload | "Upload assets" | Upload button in an empty library |
Selection
| Token | Default | Used for |
|---|---|---|
plugin-assets-dock-region | "Selected asset details" | Selected asset panel (screen readers) |
plugin-assets-dock-edit | "Edit details" | Edit details button (tooltip) |
plugin-assets-dock-delete | "Delete asset" | Delete asset button (tooltip) |
plugin-assets-summary-tags-more | "+{count} more" | Button that shows hidden tags |
plugin-assets-summary-tags-less | "Show less" | Button that hides extra tags |
Asset details
| Token | Default | Used for |
|---|---|---|
plugin-assets-details-form | "Edit asset details" | Details form (screen readers) |
plugin-assets-details-field-title | "Title" | Title input |
plugin-assets-details-field-alt | "Alt text" | Alt text input |
plugin-assets-details-field-folder | "Folder" | Folder picker label |
plugin-assets-details-field-tags | "Tags" | Tags input |
plugin-assets-details-cancel | "Cancel" | Cancel button |
plugin-assets-details-save | "Save" | Save button |
plugin-assets-details-error | "Save failed." | Failed save without a server message |
Bulk actions
| Token | Default | Used for |
|---|---|---|
plugin-assets-bulk-count | "{count} selected" | Number of selected assets |
plugin-assets-bulk-clear | "Clear" | Clear selection button |
plugin-assets-bulk-select-all | "Select all ({count})" | Select all button (tooltip) |
plugin-assets-bulk-move | "Move to folder" | Move button (tooltip) |
plugin-assets-bulk-tag | "Add tags" | Add tags button |
plugin-assets-bulk-delete | "Delete selected assets" | Delete button (tooltip) |
Tags
| Token | Default | Used for |
|---|---|---|
plugin-assets-tags-add | "Add tag" | Tag input (screen readers) |
plugin-assets-tags-add-placeholder | "Add tag…" | Tag input placeholder |
plugin-assets-tags-item-remove | "Remove {tag}" | Remove tag button (screen readers) |
plugin-assets-tags-loading | "Loading tags" | Tag input while tags load |
plugin-assets-tags-max | "Up to {max} tags per asset" | Tag input at the tag limit |
plugin-assets-tags-item-rename | "Rename tag {tag}" | Rename tag button (tooltip) and input (screen readers) |
Uploads
| Token | Default | Used for |
|---|---|---|
plugin-assets-tile-moving | "Moving…" | Asset that’s moving folder |
plugin-assets-upload-item-uploading | "Uploading…" | Upload in progress |
plugin-assets-upload-item-finishing | "Finishing…" | Upload that’s finishing |
plugin-assets-upload-item-failed | "Failed" | Failed upload |
plugin-assets-upload-item-status | "{name}: {status}" | Upload tile (screen readers) |
plugin-assets-upload-item-retry | "Retry {name}" | Retry upload button (tooltip) |
plugin-assets-upload-item-dismiss | "Dismiss" | Dismiss upload button (tooltip) |
plugin-assets-upload-drop | "Drop assets to upload" | Overlay when dragging files over the library |
plugin-assets-upload-drop-unsupported | "File type not supported" | Overlay when dragging unsupported files |
plugin-assets-canvas-uploading | "Uploading" | Upload on the canvas (screen readers) |
plugin-assets-upload-error | "Upload failed." | Failed upload without a server message |
plugin-assets-upload-error-skipped | "Some files aren't supported here and were skipped." | Uploading unsupported files |
plugin-assets-upload-error-max-files | "Upload up to {count} files at a time. The first {count} were added." | Uploading too many files |
Asset field
Shown in fields created with assetField.
| Token | Default | Used for |
|---|---|---|
plugin-assets-field-upload | "Upload asset" | Upload button |
plugin-assets-field-uploading | "Uploading…" | Upload in progress |
plugin-assets-field-browse | "Browse library" | Browse library button |
plugin-assets-field-replace | "Replace asset" | Replace button (tooltip) |
plugin-assets-field-choose | "Choose from library" | Choose from library button (tooltip) |
plugin-assets-field-remove | "Remove asset" | Remove button (tooltip) |
plugin-assets-field-focal-point | "Choose focal point" | Focal point picker (screen readers) |
plugin-assets-field-focal-point-hint | "Click or drag to set the focal point" | Focal point picker (tooltip) |
plugin-assets-field-alt | "Image alt text" | Alt text input (screen readers) |
plugin-assets-field-alt-placeholder | "Describe the image (alt text)" | Alt text input placeholder |
plugin-assets-field-drop-replace | "Drop asset to replace" | Overlay when dragging over a field with an asset |
plugin-assets-field-drop-use | "Drop asset to use" | Overlay when dragging over an empty field |
plugin-assets-field-error-type | "This file type isn't supported here." | Uploading an unsupported file |
plugin-assets-picker-title | "Asset library" | Library dialog title |
plugin-assets-picker-close | "Close asset library" | Close library button (tooltip) |
plugin-assets-picker-hint | "Select an asset to add" | Library dialog without a selection |
plugin-assets-picker-cancel | "Cancel" | Library dialog cancel button |
plugin-assets-picker-add | "Add" | Library dialog add button |
Image settings
| Token | Default | Used for |
|---|---|---|
plugin-assets-settings-toggle | "Adjust image" | Image settings toggle |
plugin-assets-settings-unavailable | "Adjustments are available for images uploaded to the library." | Images from outside the library |
plugin-assets-settings-width | "Width" | Width input |
plugin-assets-settings-height | "Height" | Height input |
plugin-assets-settings-auto | "Auto" | Width and height placeholder |
plugin-assets-settings-fit | "Fit" | Fit select |
plugin-assets-settings-fit-scale-down | "Scale down" | Fit option |
plugin-assets-settings-fit-contain | "Contain" | Fit option |
plugin-assets-settings-fit-cover | "Cover" | Fit option |
plugin-assets-settings-fit-crop | "Crop" | Fit option |
plugin-assets-settings-quality | "Quality" | Quality input |
plugin-assets-settings-quality-auto | "Auto ({quality})" | Quality placeholder |
plugin-assets-settings-focal-hint | "Click the preview to set the focal point. Cover and Crop only crop when both width and height are set." | Focal point and fit help |
plugin-assets-settings-effects | "Effects" | Effects heading |
plugin-assets-settings-effect-saturation | "Saturation" | Effect slider |
plugin-assets-settings-effect-brightness | "Brightness" | Effect slider |
plugin-assets-settings-effect-contrast | "Contrast" | Effect slider |
plugin-assets-settings-effect-gamma | "Gamma" | Effect slider |
plugin-assets-settings-effect-blur | "Blur" | Effect slider |
plugin-assets-settings-effect-sharpen | "Sharpen" | Effect slider |
plugin-assets-settings-rotate | "Rotate" | Rotate select |
plugin-assets-settings-flip | "Flip" | Flip select |
plugin-assets-settings-flip-none | "None" | Flip option |
plugin-assets-settings-flip-horizontal | "Horizontal" | Flip option |
plugin-assets-settings-flip-vertical | "Vertical" | Flip option |
plugin-assets-settings-flip-both | "Both" | Flip option |
plugin-assets-settings-orientation-hint | "Rotation and flip show in the page preview, not the thumbnail." | Rotate and flip help |
plugin-assets-settings-reset | "Reset to defaults" | Reset button |
Confirm dialogs
| Token | Default | Used for |
|---|---|---|
plugin-assets-confirm-cancel | "Cancel" | Cancel button |
plugin-assets-confirm-delete-title-singular | "Delete asset" | Deleting one asset |
plugin-assets-confirm-delete-title-plural | "Delete assets" | Deleting several assets |
plugin-assets-confirm-delete-message-singular | "{count} asset will be permanently deleted." | Deleting one asset |
plugin-assets-confirm-delete-message-plural | "{count} assets will be permanently deleted." | Deleting several assets |
plugin-assets-confirm-delete-warning-singular | "It will appear broken on pages that use it." | Warning when deleting one asset |
plugin-assets-confirm-delete-warning-plural | "They will appear broken on pages that use them." | Warning when deleting several assets |
plugin-assets-confirm-delete-confirm | "Delete" | Delete button |
plugin-assets-confirm-folder-title | "Delete folder" | Deleting a folder |
plugin-assets-confirm-folder-message | "“{name}” will be permanently deleted." | Deleting an empty folder |
plugin-assets-confirm-folder-message-assets-singular | "“{name}” and its {count} asset will be permanently deleted." | Deleting a folder with one asset |
plugin-assets-confirm-folder-message-assets-plural | "“{name}” and its {count} assets will be permanently deleted." | Deleting a folder with several assets |
plugin-assets-confirm-folder-warning | "Assets in this folder may appear broken on pages that use them." | Warning when deleting a folder with an unknown number of assets |
plugin-assets-confirm-folder-warning-singular | "This asset will appear broken on pages that use it." | Warning when deleting a folder with one asset |
plugin-assets-confirm-folder-warning-plural | "These assets will appear broken on pages that use them." | Warning when deleting a folder with several assets |
plugin-assets-confirm-folder-confirm | "Delete folder" | Delete button for an empty folder |
plugin-assets-confirm-folder-confirm-assets | "Delete folder and assets" | Delete button for a folder with assets |
Toasts
| Token | Default | Used for |
|---|---|---|
plugin-assets-toast-region | "Notifications" | Toast list (screen readers) |
plugin-assets-toast-close | "Close" | Close button (screen readers) |
plugin-assets-toast-error-title | "Error" | Error toast title |
plugin-assets-toast-error-delete | "Failed to delete assets." | Failed delete |
plugin-assets-toast-error-move | "Failed to move assets." | Failed move |
plugin-assets-toast-error-move-skipped-singular | "Failed to move {count} asset." | Move that skipped one asset |
plugin-assets-toast-error-move-skipped-plural | "Failed to move {count} assets." | Move that skipped several assets |
plugin-assets-toast-error-tag | "Failed to tag assets." | Failed tagging |
plugin-assets-toast-error-tag-skipped-singular | "Failed to tag {count} asset. An asset can have up to {max} tags." | Tagging that skipped one asset |
plugin-assets-toast-error-tag-skipped-plural | "Failed to tag {count} assets. An asset can have up to {max} tags." | Tagging that skipped several assets |
plugin-assets-toast-error-folder-save | "Failed to save folder." | Failed folder create or rename |
plugin-assets-toast-error-folder-delete | "Failed to delete folder." | Failed folder delete |
plugin-assets-toast-error-tag-rename | "Failed to rename tag." | Failed tag rename |