journaly icon indicating copy to clipboard operation
journaly copied to clipboard

🌎 Explicitly set `lang` (language) attribute in J-Editor and on rendered post content

Open robin-macpherson opened this issue 1 year ago • 0 comments

Perceived Problem

  • Some users still report issues typing accented characters and other IME-related input

Ideas / Proposed Solution(s)

  • One thing that may help with this is setting the lang attribute on the editor and post content
  • This will require storing a mapping to BCP47 language tags for each language that we support and then setting the attribute value based on the language the user selects

Bonus

  • It would be nice to set the top-level html element's lang attribute to be the user's UI language as well, mostly for screenreader users

robin-macpherson avatar Apr 13 '23 14:04 robin-macpherson