code: function(library, locale) {
      this.base(arguments);
      this.setLibrary(library);
      if (locale) {
        this.setLocale(locale);
      }
      this.__translations = {};
      this.__headers = {};
    }
docs: Constructor
  @param library {Library}
  @param locale {String}