App.SettingsLocaleComponent = Ember.Component.extend
  layoutName: 'settings/locale'
  classNames: 'settings-locale'
  classNameBindings: ['current']
  current: (-> @get('locale') is $locale ).property('controller.locale')
  localeFlag: (->
    "<img src=\"#{$assets_path}user/flags/flag-#{@get('locale')}.png\">".htmlSafe()
  ).property('locale')
  click: ->
    setLocale @get('locale')
    @set 'controller.locale', @get('locale')
