learninglocker icon indicating copy to clipboard operation
learninglocker copied to clipboard

Browser language vs Language map viewing preferences

Open ht2 opened this issue 8 years ago • 2 comments

Current behaviour

If your browser language does not match an entry in the language map, default to first in list

Expected behaviour

If we don't have a direct match, take a "best guess" based on the first two letters of your language code and look for that in the language map.

e.g.

Browser preference = en-GB Language map includes es-ES and en-US

Should be clever enough to use the en-US language map over the es-ES

ht2 avatar Oct 11 '17 15:10 ht2

Did we fix this @ht2?

ryasmi avatar Sep 28 '18 08:09 ryasmi

Note to self: I believe we can use browser behaviour to fix this with spans like so...

<div>
  <span lang="en-ES">hola</span>
  <span lang="en-US">hello</span>
</div>

Pretty sure the browser only renders one of those, seen this behaviour used in Moodle.

ryasmi avatar Dec 07 '18 11:12 ryasmi