@carbon/ibmdotcom-services 2.57.3 → 2.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
12
12
  import axios from 'axios';
13
13
  import { LocaleAPI } from '../Locale';
14
14
  import root from 'window-or-global';
15
+ import usenData from './masthead-footer-usen.js';
15
16
 
16
17
  /**
17
18
  * @constant {string | string} Host for the Translation API call
@@ -178,6 +179,9 @@ var TranslationAPI = /*#__PURE__*/function () {
178
179
  var sessionTranslation = this.getSessionCache(itemKey);
179
180
  if (sessionTranslation) {
180
181
  resolve(sessionTranslation);
182
+ } else if (country === 'us' && lang === 'en' && (!endpoint || endpoint === _c4dEndpointDefault)) {
183
+ _requestsTranslation['us-en'] = _requestsTranslation['us-en'] || Promise.resolve(this.transformData(JSON.parse(JSON.stringify(usenData))));
184
+ _requestsTranslation['us-en'].then(resolve, reject);
181
185
  } else {
182
186
  var key = country !== 'undefined' ? "".concat(country, "-").concat(lang) : "".concat(lang);
183
187
  if (!_requestsTranslation[key]) {