diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 2336115..2ac0dd4 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -112,7 +112,8 @@ options_for_select(@site.everything_of(:materiales_requeridos), @post.get_front_matter(:materiales_requeridos)), { class: 'form-control select2', multiple: 'multiple' } %small.text-muted.form-text= t('posts.materiales_requeridos_help') - - %w[es en ar].each do |lang| + - I18n.available_locales.map(&:to_s).each do |lang| + - next if lang == @lang .form-group = label_tag 'post_lang', t("posts.lang.#{lang}") = select_tag "post[lang][#{lang}]",