old_contents: var Messages = require('./messages');
  
  require('./lang/en');
  
  var container = {
  
    messages: {},
  
    /**
     * Set messages for language
     *
     * @param {string} lang
     * @param {object} rawMessages
     * @return {void}
     */
    _set: function(lang, rawMessages) {
      this.messages[lang] = rawMessages;
    },
  
    /**
     * Set message for given language's rule.
     *
     * @param {string} lang
     * @param {string} attribute
     * @param {string|object} message
     * @return {void}
     */
    _setRuleMessage: function(lang, attribute, message) {
      this._load(lang);
      if (message === undefined) {
        message = this.messages[lang].def;
      }
  
      this.messages[lang][attribute] = message;
    },
  
    /**
     * Load messages (if not already loaded)
     *
     * @param  {string} lang
     * @return {void}
     */
    _load: function(lang) {
        var langs = {
          en : './lang/en',
          de : './lang/de'
          }
      if (!this.messages[lang]) {
          var load = langs[lang];
        var rawMessages = require(load);
        this._set(lang, rawMessages);
      }
    },
  
    /**
     * Get raw messages for language
     *
     * @param  {string} lang
     * @return {object}
     */
    _get: function(lang) {
      this._load(lang);
      return this.messages[lang];
    },
  
    /**
     * Make messages for given language
     *
     * @param  {string} lang
     * @return {Messages}
     */
    _make: function(lang) {
      this._load(lang);
      return new Messages(lang, this.messages[lang]);
    }
  
  };
  
  module.exports = container;
  
new_contents: var Messages = require('./messages');
  
  require('./lang/en');
  
  var container = {
  
    messages: {},
  
    /**
     * Set messages for language
     *
     * @param {string} lang
     * @param {object} rawMessages
     * @return {void}
     */
    _set: function(lang, rawMessages) {
      this.messages[lang] = rawMessages;
    },
  
    /**
     * Set message for given language's rule.
     *
     * @param {string} lang
     * @param {string} attribute
     * @param {string|object} message
     * @return {void}
     */
    _setRuleMessage: function(lang, attribute, message) {
      this._load(lang);
      if (message === undefined) {
        message = this.messages[lang].def;
      }
  
      this.messages[lang][attribute] = message;
    },
  
    /**
     * Load messages (if not already loaded)
     *
     * @param  {string} lang
     * @return {void}
     */
    _load: function(lang) {
      if (!this.messages[lang]) {
          // TODO: make dynamic require possible to support other languages
        var rawMessages = require('./lang/en');
        this._set(lang, rawMessages);
      }
    },
  
    /**
     * Get raw messages for language
     *
     * @param  {string} lang
     * @return {object}
     */
    _get: function(lang) {
      this._load(lang);
      return this.messages[lang];
    },
  
    /**
     * Make messages for given language
     *
     * @param  {string} lang
     * @return {Messages}
     */
    _make: function(lang) {
      this._load(lang);
      return new Messages(lang, this.messages[lang]);
    }
  
  };
  
  module.exports = container;
  
subject: make static require to support react native packager