function pruneLocale(goldenLhl, localeLhl) {
  // Suppress logging by adding all message ids to the already-logged set.
  const loggedPrunes = new Set(Object.keys(localeLhl));

  const goldenLocaleArgumentIds = pruneObsoleteLhlMessages.getGoldenLocaleArgumentIds(goldenLhl);
  return pruneObsoleteLhlMessages.pruneLocale(goldenLocaleArgumentIds, localeLhl, loggedPrunes);
}
Prune `localeLhl` based on `goldenLhl`.
@param {Record<string, {message: string}>} goldenLhl
@param {Record<string, {message: string}>} localeLhl