-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Missing documentation about useSyncLanguage #149
Comments
@aabmets A use case I know of is to switch the language via a dropdown.
|
@rherwig is correct here. I thought this was documented, but it seems it isn't. All the types/functions should be properly documented in code though, so if you are using a typescript capable editor it should pick it up. I'll try to add it to the docs when I get more time. Feel free to add it yourself as well if you want. :) |
Hi @JCQuintas, |
i18n.changeLanguage(newLanguageCode).then(() => {
console.log('should work');
}); |
What is the hook
import {useSyncLanguage} from 'ni18n'
used for?The text was updated successfully, but these errors were encountered: