/* globals Twitch */

import Component from 'ember-component';

export default Component.extend({
  tagName: 'select',
  attributeBindings: ["name"],
  classNames: ['form__input'],
  name: 'language',
  layoutName: "components/language-select",

  init: function () {
    this._super();
    let self = this;
    Twitch.geo.then(function (info) {
      self.$().val(info.received_language);
    });
  }

});
