localgovdrupal / localgov_core

LocalGovDrupal Core module, for helper functions and core dependencies.
GNU General Public License v2.0
3 stars 6 forks source link

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

Open msayoung opened 1 month ago

msayoung commented 1 month 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 3 weeks ago

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

msayoung commented 3 weeks ago

It's in core now

markconroy commented 4 days ago

PR https://github.com/localgovdrupal/localgov_core/pull/260