<NME> messages.js
<BEF> ADDFILE
<MSG> clean up list messages

<DFF> @@ -0,0 +1,44 @@
+import React from 'react';
+
+const messages = {
+  moveBack: 'Navigate back',
+  moveForward: 'Navigate forward',
+
+  dateButton: 'Select date',
+  timeButton: 'Select time',
+
+  openCombobox: 'open combobox',
+  openDropdown: 'open dropdown',
+
+  placeholder: '',
+  filterPlaceholder: '',
+
+  emptyList:   'There are no items in this list',
+  emptyFilter: 'The filter returned no results',
+
+  createNewTag: ({ searchTerm }) => [
+    <strong key='_'>{`"${searchTerm}"`}</strong>,
+    ' (create new tag)'
+  ],
+  tagsLabel: 'Selected items',
+  removeLabel: 'Remove selected item',
+  noneSelected:  'no selected items',
+  selectedItems: labels => `Selected items: ${labels.join(', ')}`,
+
+  // number
+  increment: 'Increment value',
+  decrement:  'Decrement value',
+}
+
+export function getMessages(defaults = {}) {
+  let processed = {}
+  Object.keys(messages).forEach(message => {
+    let value = defaults[message]
+    if (value == null) value = messages[message]
+
+    processed[message] = typeof value === 'function'
+      ? value : (() => value)
+  })
+
+  return processed;
+}

clean up list messages