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

Key path should parse if sub path contain spaces #532

Closed
exoego opened this issue Mar 13, 2019 · 0 comments
Closed

Key path should parse if sub path contain spaces #532

exoego opened this issue Mar 13, 2019 · 0 comments

Comments

@exoego
Copy link
Collaborator

exoego commented Mar 13, 2019

Note

This is basically duplicate a of #502.
I think it should be fixed so I opened a new issue.

vue & vue-i18n version

vue: 2.5.17
vue-i18n: 8.9.0

Reproduction Link

http://jsfiddle.net/vshjg5bq/

Steps to reproduce

<div>{{ $t('PopupMenu.Play Now') }}</div>
<div>{{ $t('Hello World') }}</div>
new VueI18n({
  locale: 'en',
  messages: {
    en: {
      'PopupMenu': {
        'Play Now': 'Play Now'
      },
      'Hello World':'Hello World'
    }
  }
})

What is Expected?

Play Now
Hello World

What is actually happening?

PopupMenu.Play Now
Hello World

Cannot translate the value of keypath 'PopupMenu.Play Now'. Use the value of keypath as default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant