function getLocaleForFileName(locale) {
  return locale.toLowerCase().replace(/-/g, '_');
}
Normalizes a locale ID for use in a file name (e.g. en-GB -> en_gb).
@param {string} locale
@return {string} The normalized locale ID.