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. By customizing the dictionary, you can:

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

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

Version: 0.7.0-beta

Default keys and values

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

{
"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",
"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.",
"emptyRequisitionList": " Requisition List is empty",
"show": "Show",
"itemsCounter": "Items {from}-{to} of {total}",
"productListTable": {
"headers": {
"productName": "Product name",
"sku": "SKU",
"price": "Price",
"quantity": "Quantity",
"subtotal": "Subtotal",
"actions": "Actions"
},
"itemQuantity": "Item quantity"
},
"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"
},
"PageSizePicker": {
"itemsPerPage": "Items per page"
}
}
}

How to customize

You can override any of these dictionary values by creating a custom dictionary file and loading it during drop-in initialization. The drop-in will automatically deep-merge your custom values with these defaults.

For complete step-by-step instructions, see the Dictionary customization guide.

Quick example:

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