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
It works fine when I use nested syntax
const messages = { en: { message: { hello: 'Hello', hello_link: '@:message.hello' } } } <div>{{ $t('message.hello_link') }}</div> // Hello
It shows nothing when I use non-nested syntax
const messages = { en: { 'message.hello': 'Hello', 'message.hello_link': '@:message.hello' } } <div>{{ $t('message.hello_link') }}</div> // Nothing is shown
It works normally in version 8.x
N/A
No response
The text was updated successfully, but these errors were encountered:
Thank you for your reporting!
when you use the key of object path, you need to put flatJson: true to createI18n. Then vue-i18n will flatten the message.
flatJson: true
createI18n
message
Thanks!
Sorry, something went wrong.
No branches or pull requests
Reporting a bug?
It works fine when I use nested syntax
It shows nothing when I use non-nested syntax
Expected behavior
It works normally in version 8.x
Reproduction
N/A
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: