localgovdrupal / localgov

Installation profile for the LocalGov Drupal distribution.
GNU General Public License v2.0
83 stars 18 forks source link

Add the Language widget to the default Text editor profile #789

Open msayoung opened 3 weeks ago

msayoung commented 3 weeks ago

In order to meet the WCAG criteria 3.1.2 : Language of Parts authors need to be able to identify phrases of content that are written in different (human) language from the surrounding text.

This allows assistive technology to process it properly - for example a screen reader will attempt to pronounce it correctly.

An example on our demo site: https://demo.localgovdrupal.org/national-parks-uk/pembrokeshire-coast . The Welsh name: Parc Cenedlaethol Arfordir Penfro could be wrapped in a <span lang="cy-GB">

(Note: proper names are an exception on the criteria so don't have to conform, but they should)

Recommendation: Add the language switcher to the Text editor by default. I suggest we allow Drupal's 107 predefined languages.

markconroy commented 6 days ago

@msayoung Is there a module for this? Or is it configuration in Drupal core?

msayoung commented 3 days ago

It's in core now