useLanguage
torifat opened this issue · 3 comments
torifat commented
https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language
const language = useLanguage();
jamiebuilds commented
What benefit does this have over just accessing navigator.language
? Is there an event for the user changing their language?
torifat commented
Is there an event for the user changing their language?
Officially there is but I have to check the browser support.
jamiebuilds commented
Ah, looks like its in a few places: https://developer.mozilla.org/en-US/docs/Web/Events/languagechange