-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add documentation on how to change language #43
Comments
Ok! For the simple way as possible, you don't need any API of this lib to change the language. You can do it directly with
We can provide some examples in the docs. But there isn't a |
I came up with this function to change the language, I might do a PR to the lib to add this function to
It would also be good to have a This is my custom Link Component:
|
Ok @BjoernRave, if you do a PR of Ex of possible imports: import Link from 'next-translate/Link'
import changeLanguage from 'next-translate/changeLanguage' |
It would be good if you could explain somewhere what is the best way to switch between languages, maybe even expose a
changeLang
function in theuseTranslation
hookThe text was updated successfully, but these errors were encountered: