Skip to content
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

fix: global locale is not respected by useI18n #1316

Conversation

Csszabi98
Copy link
Contributor

Given the following config:

  • allowComposition: true
  • legacy: true

Calling useI18n() always results in
translations using the default language
"en-US".

Fixes: #1315

Given the following config:
- `allowComposition: true`
- `legacy: true`

Calling `useI18n()` always results in
translations using the default language
"en-US".

(intlify#1315)
@kazupon kazupon added the Type: Improvement Includes backwards-compatible fixes label Jan 29, 2023
Copy link
Member

@kazupon kazupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

That's good work!
Thanks!

@kazupon kazupon merged commit e826508 into intlify:master Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Includes backwards-compatible fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Locale returned by useI18n is incorrect when legacy mode is enabled
2 participants