decide.nolog.cz/app/components/language-select.hbs
2023-11-05 20:57:52 +01: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>