You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.
👍 good catch! Tbh I pulled this out quickly from RCMP project which had a bunch of language stuff hard coded in by doing the language query.
What would you think of a solution where the language is passed as a prop? Although there would still need to be some logic passed in somehow to do language switching 🤔
I think a prop makes the most sense for a quick fix and to move things forward.
Ultimately I think the end user is going to need more control overall.
i.e to control a language desktop vs mobile + when more languages possibly a dropdown menu. Accepting a child prop etc...
Kent C Dodds has some interesting patterns of Egghead for building components that allow a lot of flexibility .... that's a much larger discussion for later.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Unable to set the Language link in the top banner.
The text was updated successfully, but these errors were encountered: