App.LanguageSwitcherComponent = Ember.Component.extend
  classNames: ['language-switcher-container']
  locales: (-> ['en', 'nl']).property()
  actions:
    switchTo: (locale)->
      setLocale locale
      @set 'globals.locale', locale
      @store.peekAll("page").invoke 'reload'
