Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Requisition List Dictionary

The Requisition List dictionary contains all user-facing text, labels, and messages displayed by this drop-in. Customize the dictionary to:

  • Localize the drop-in for different languages and regions
  • Customize labels and messages to match your brand voice
  • Override default text without modifying source code for the drop-in

Dictionaries use the i18n (internationalization) pattern, where each text string is identified by a unique key path.

Version: 1.0.0-beta4

How to customize

Override dictionary values during drop-in initialization. The drop-in deep-merges your custom values with the defaults.

import { initialize } from '@dropins/storefront-requisition-list';
await initialize({
langDefinitions: {
en_US: {
"RequisitionList": {
"containerTitle": {
"0": "Custom value",
"1": "Custom value"
}
}
}
}
});

You only need to include the keys you want to change. For multi-language support and advanced patterns, see the Dictionary customization guide.

Default keys and values

Below are the default English (en_US) strings provided by the Requisition List drop-in:

{
"RequisitionList": {
"containerTitle": "Requisition Lists",
"RequisitionListWrapper": {
"name": "Name & Description",
"itemsCount": "Items",
"lastUpdated": "Latest activity",
"actions": "Actions",
"loginMsg": "Please login",
"deleteRequisitionListTitle": "Are you sure you want to delete this Requisition List?",
"deleteRequisitionListMessage": "Requisition List will be permanently deleted. This action can not be undone.",
"confirmAction": "Confirm",
"cancelAction": "Cancel",
"emptyList": "No Requisition Lists found"
},
"AddNewReqList": {
"addNewReqListBtn": "Add new Requisition List"
},
"RequisitionListItem": {
"actionUpdate": "Update",
"actionDelete": "Delete"
},
"RequisitionListForm": {
"actionCancel": "Cancel",
"actionSave": "Save",
"requiredField": "This is a required field.",
"nameMinLength": "Name must be at least {min} characters long.",
"nameInvalidCharacters": "Name contains invalid characters. Only letters, numbers, spaces, and basic punctuation are allowed.",
"floatingLabel": "Requisition List Name *",
"placeholder": "Requisition List Name",
"label": "Description",
"updateTitle": "Update Requisition List",
"createTitle": "Create Requisition List",
"addToRequisitionList": "Add to Requisition List"
},
"RequisitionListSelector": {
"addToNewRequisitionList": "Add to New Requisition List",
"addToSelected": "Add to Selected List"
},
"RequisitionListAlert": {
"errorCreate": "Error creating requisition list.",
"successCreate": "Requisition list created successfully.",
"errorAddToCart": "Error adding item to cart.",
"successAddToCart": "Item(s) added to cart successfully.",
"errorUpdateQuantity": "Error updating quantity.",
"successUpdateQuantity": "Item quantity updated successfully.",
"errorUpdate": "Error updating requisition list.",
"successUpdate": "Requisition list updated successfully.",
"errorDeleteItem": "Error deleting item.",
"successDeleteItem": "Item(s) deleted successfully.",
"errorDeleteReqList": "Error deleting requisition list.",
"successDeleteReqList": "Requisition list deleted successfully.",
"errorMove": "Error moving item(s) to cart.",
"successMove": "Item(s) successfully moved to cart.",
"errorAddToRequisitionList": "Error adding item(s) to requisition list.",
"successAddToRequisitionList": "Item(s) successfully added to requisition list."
},
"RequisitionListView": {
"actionDelete": "Delete",
"statusDeleting": "Deleting...",
"actionDeleteSelected": "Delete Selected",
"actionDeleteSelectedItems": "Delete selected items",
"actionSelectAll": "Select All",
"actionSelectNone": "Select None",
"actionAddToCart": "Add to Cart",
"statusAddingToCart": "Adding...",
"actionAddSelectedToCart": "Add Selected to Cart",
"statusBulkAddingToCart": "Adding to Cart...",
"actionUpdateQuantity": "Update",
"statusUpdatingQuantity": "Updating...",
"errorUpdateQuantity": "Error updating quantity",
"successUpdateQuantity": "Item quantity updated successfully.",
"actionBackToRequisitionListsOverview": "Back to requisition lists overview",
"actionBackToRequisitionLists": "Back to Requisition Lists",
"actionRename": "Rename",
"actionDeleteList": "Delete List",
"deleteListTitle": "Delete Requisition List?",
"deleteListMessage": "Are you sure you want to delete this requisition list? This action cannot be undone.",
"deleteItemsTitle": "Delete Item(s)?",
"deleteItemsMessage": "Are you sure you want to delete the selected item(s) from this requisition list? This action cannot be undone.",
"confirmAction": "Delete",
"cancelAction": "Cancel",
"emptyRequisitionList": " Requisition List is empty",
"productListTable": {
"headers": {
"productName": "Product name",
"sku": "SKU",
"price": "Price",
"quantity": "Quantity",
"subtotal": "Subtotal",
"actions": "Actions"
},
"itemQuantity": "Item quantity",
"outOfStock": "Out of stock",
"onlyXLeftInStock": "Only {count} left in stock"
},
"errorLoadPage": "Failed to load page",
"errorLoadingProducts": "Failed to load product data",
"notFoundTitle": "Requisition List Not Found",
"notFoundMessage": "The requisition list you are looking for does not exist or you do not have access to it.",
"notFoundActionLabel": "Back to Requisition Lists"
},
"RequisitionListsNotEnabled": {
"title": "Requisition Lists Not Available",
"message": "Requisition Lists are not available. Please contact your administrator for more information.",
"actionLabel": "Go to My Account"
},
"PageSizePicker": {
"show": "Show",
"itemsPerPage": "Items per page"
},
"PaginationItemsCounter": {
"itemsCounter": "Items {from}-{to} of {total}"
}
}
}