Related to #325890: Add a country select for block configuration.

As we do elsewhere, we shd form_alter i18nblocks to show only valid - 2-digit - languages. We can use country_code_languages() to fetch all languages registered to countries and then use array_intersect_key to filter the existing #options in the form element.

Comments

nedjo’s picture