decide.nolog.cz/app/components/language-select.hbs

8 lines
307 B
Handlebars
Raw Normal View History

{{! template-lint-disable require-input-label }}
<select class='language-select' {{on 'change' this.handleChange}}>
{{#each-in this.locales as |localeKey localeName|}}
<option value={{localeKey}} selected={{eq localeKey this.currentLocale}}>
{{localeName}}
</option>
{{/each-in}}
</select>