decide.nolog.cz/app/components/language-select.hbs
2023-10-15 20:37:03 +02:00

8 lines
No EOL
307 B
Handlebars

{{! 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>