Change rule translation interface to display english name and populate empty translations (#35170)

This commit is contained in:
Claire 2025-06-25 12:02:19 +02:00 committed by GitHub
parent 72f2f35bfb
commit 0a7418e6d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 2 deletions

View file

@ -5,7 +5,7 @@
= f.input :language,
collection: ui_languages,
include_blank: false,
label_method: ->(locale) { native_locale_name(locale) }
label_method: ->(locale) { "#{native_locale_name(locale)} (#{standard_locale_name(locale)})" }
.fields-row__column.fields-group
= f.hidden_field :id if f.object&.persisted? # Required so Rails doesn't put the field outside of the <tr/>