function requireLocale (locale) {
  try {
    require('../locales/' + locale + '.js');
  } catch (error) {
    throw Error('Failed to load the following locale: ' + locale);
  }
}
/**
 * Tries to load the specified locale.
 *
 * @param {string} locale
 */
Tries to load the specified locale.
@param {string} locale
Tries to load the specified locale . @param { string } locale
function requireLocale (locale) {
  try {
    require('../locales/' + locale + '.js');
  } catch (error) {
    throw Error('Failed to load the following locale: ' + locale);
  }
}
function requireLocale ( locale ) { try { require ( '../locales/' + locale + '.js' ) ; } catch ( error ) { throw Error ( 'Failed to load the following locale: ' + locale ) ; } }
Tries to load the specified locale.
Tries to load the specified locale .