code: function(localeCode, data) {
          var localeMessages = messages[localeCode];
          var originData, newData;
  
          if (!localeMessages && !data) {
              throw new Error('You should set messages to map the locale code.');
          }
  
          newData = flattenMessageMap(data);
  
          if (localeMessages) {
              originData = flattenMessageMap(localeMessages);
              messageMap = _.extend(originData, newData);
          } else {
              messageMap = newData;
          }
      }
docs: Set messages
  @param {string} localeCode - Code to set locale messages and
  this is the language or language-region combination. (ex: en-US)
  @param {object} [data] - Messages using in Grid