We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
useBrowserLang
Get user locale from browser settings. This is GB specific feature on how we handle the param. What we do is this.
import { useNavigatorLanguage } from '@vueuse/core' const { language: browserLang } = useNavigatorLanguage() return (browserLang.value === 'ja' || browserLang.value === 'ja-JP') ? 'ja' : 'en'
// API function useBrowserLang(): Ref<Lang>
The text was updated successfully, but these errors were encountered:
feat(lang): add useBrowserLang function (#422) (#432)
4af35d0
close #422
Successfully merging a pull request may close this issue.
Get user locale from browser settings. This is GB specific feature on how we handle the param. What we do is this.
The text was updated successfully, but these errors were encountered: