docs: function (locale, cb) {
              var err = false;
              if (locale == null) {
                  err = true;
              } else {
                  var s = locale.split("_");
                  if (locale === "" || (locale.length === 5 && s !== null && s.length === 2) || locale.length == 2) {
                      ariaCoreAppEnvironment.setEnvironment({
                          "language" : {
                              "primaryLanguage" : s[0],
                              "region" : s[1]
                          }
                      }, cb);
                      // setEnvironment will automatically call ResMgr.changeLocale, so there is no need to do it here
                      // aria.core.ResMgr.changeLocale(locale, cb);
                  } else {
                      err = true;
                  }
              }
              if (err) {
                  this.$logError(this.INVALID_LOCALE, [locale]);
                  this.$callback(cb, true);
              }
          }