shortenUUID = (longId, translator, paddingParams) => {
  const translated = translator(longId.toLowerCase().replace(/-/g, ''));

  if (!paddingParams || !paddingParams.consistentLength) return translated;

  return translated.padStart(
    paddingParams.shortIdLength,
    paddingParams.paddingChar,
  );
}
Takes a UUID, strips the dashes, and translates.
@param {string} longId
@param {function(string):string} translator
@param {Object} [paddingParams]
@returns {string}