learninglocker
learninglocker copied to clipboard
Browser language vs Language map viewing preferences
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
Did we fix this @ht2?
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.