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

Linked message does not resolve if one of the key in path contains hyphen (-) #170

Closed
kashiif opened this issue Jun 3, 2017 · 0 comments
Labels
Type: Bug Bug or Bug fixes

Comments

@kashiif
Copy link

kashiif commented Jun 3, 2017

vue & vue-i18n version

2.3.3, 7.0.0

Reproduction Link

https://github.com/kashiif/vue-intl-test

Steps to reproduce

  1. Run the app in above repo
  2. See heading Linked Message (Item 2 fails)

What is Expected?

The second item under heading Linked Message (Item 2 fails) should have displayed:

**topLevel.linked2:** linked2: error-message (Hyphen)

What is actually happening?

If a linked message is defined as

{
topLevel: {
  'error-message': '...',
},
linked2: 'linked2: @:topLevel.error-message',
}

with a hyphen in the path, it does not resolve to correct translation. Instead, it shows:

linked2: null-message 
@kazupon kazupon added the Type: Bug Bug or Bug fixes label Jun 4, 2017
@kazupon kazupon closed this as completed in 6e9f151 Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

2 participants